[info-mcl] Autoscaled-views

Octav Popescu octav at cmu.edu
Wed Sep 3 10:53:17 CDT 2008


Peter wrote:
> At 7:01 PM -0400 08/09/02, Octav Popescu wrote:
>   
>> (make-instance 'window
>>  :window-title "Dynamic window"
>>  :view-size #@(400 50)
>>  :theme-background t
>>  :view-subviews
>>  (list (make-dialog-item 'EDITABLE-TEXT-DIALOG-ITEM #@(20 15) #@(#%50-62
>> 18) "An editable text area")
>>        (make-dialog-item 'STATIC-TEXT-DIALOG-ITEM #@(#%50-32 15) #@(64
>> 18) "Some text")
>>        (make-dialog-item 'EDITABLE-TEXT-DIALOG-ITEM #@(#%50+42 15)
>> #@(#%50-62 18) "An editable text area")))
>>     
>
> I'm not familiar with the #%50 construction.
> Octav  can you expound?
>
>   

It's a construct that this utility offers as a way to specify the 
position and size of views in a window as a percentage of the size of 
the whole window. The big advantage being that the views will resize 
automatically when you resize the window. You could download the 
autoscaled-views file from the address in my previous message and read 
the comments for more details.

Octav





More information about the info-mcl mailing list