[REBOL] Re: Dynamic resizing question
From: volker:nitsch:gm:ail at: 3-Feb-2006 21:12
On 2/3/06, Alberto <alberto-origen.com.mx> wrote:
> The word 'tabs is not part of graphic objects (faces)
> is just a command of the layout dialect
>
> If you don't want to regenerate the whole window every time
> is resized, you can change the 'offset field of the buttons to indicate
> it's new location inside the main face.
>
> something like:
>
> MAIN-CHOICE/offset: MAIN-CHOICE-LARGE-OFFSET
>
> or whatever.
And if regenerating the window is no problem, you can do this:
REBOL[title: "launched by sync"]
layo: [
style butn button button-sz font-size font-sz
butn "normal" [scale 1 view layout layo]
butn "big" [scale 2 view layout layo]
butn "very big" [scale 4 view layout layo]
]
butn-style: get-style 'button
scale: func[scale][
button-sz: scale * butn-style/size
font-sz: scale * butn-style/font/size
]
scale 1
view layout layo
> alberto
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
-Volker
Any problem in computer science can be solved with another layer of
indirection. But that usually will create another problem.
David
Wheeler