[REBOL] Re: Question on text formatting
From: andy:flyingcat at: 29-Aug-2002 17:52
Now, this is a _very_ interesting clue.
If I use a similar example,
view/new lay: layout [ button button button ]
lay/pane/1/text: "hithere"
show lay/pane/1
wait none
The text on the button changes. In fact, I can change it to anything I
like, again and again.
But if I do something like:
view/new lay: layout [ button "test" button "test1" button "test" ]
lay/pane/1/text: "hithere"
show lay/pane/1
wait none
Or
view/new lay: layout [ button copy "test" button copy "test1" button
copy "test" ]
lay/pane/1/text: "hithere"
show lay/pane/1
wait none
Then the text is fixed to be "test". Every time I show, Rebol changes
it back to the original text (which was test); Rebol must be storing
the original text in some hidden place when I created the button, and
always refreshing from that, rather than from the values stored I was
expecting.
(this also seems to apply to colors).
So if I create a grid of blank buttons (or possibly uncolored buttons),
I might be able to programatically change the appearance of the button
to simulate non-mouse highlighting.
Andy