CLIM mail archive

[Prev][Next][Index][Thread]

Specifying a number of device units in VERTICALLY or HORIZONTALLY



    Date: Sun, 23 Jan 1994 15:55 EST
    From: lgm@iexist.att.com


    CLIM 2.0 Beta on LispWorks 3.2.21-beta-4 and Allegro 4.2.beta2.0

    The CLIM 2.0 spec appears to say that CLIM:VERTICALLY and
    CLIM:HORIZONTALLY accept device-unit specifications (numbers greater
    than or equal to 1) for their constituent panes, as in the following
    example:

    -----
    (in-package :cl-user)

    (clim:define-application-frame gup-10 ()
      ()
      (:panes
       (gup-11 :application)
       (gup-12 :interactor))
      (:layouts
       (default
	(clim:vertically ()
			 (300 gup-11)
			 (200 gup-12)))))

    -----

    But this example signals an error.  Was this capability removed from
    the CLIM 2.0 spec?  Must I instead specify a :WIDTH (:HEIGHT) for the
    CLIM:HORIZONTALLY (CLIM:VERTICALLY) as a whole and then specify
    fractions for each constituent pane, as in the following?

In a word, yes.

    -----
    (in-package :cl-user)

    (clim:define-application-frame gup-10 ()
      ()
      (:panes
       (gup-11 :application)
       (gup-12 :interactor))
      (:layouts
       (default
	(clim:vertically (:height 500)
			 (3/5 gup-11)
			 (2/5 gup-12)))))

    -----


	    Lawrence G. Mayka
	    AT&T Bell Laboratories
	    lgm@iexist.att.com

    Standard disclaimer.

References:

Main Index | Thread Index