[ALLY] Re: View/Layout Styles
[1/2] from: larry::ecotope::com at: 3-Nov-2000 18:07
Hi Mike This should get you started:
>> st: stylize [red-text: text red]
Note the colon is required after red-text (stylize is creating a global variable).
>> view layout [
styles st ro: rotary "yes" "no" [print face/text] button "change rotary" [ro/data: ["up" "down"] show ro] red-text "hello" ] HTH -Larry
[2/2] from: mike:myers:cybarite at: 3-Nov-2000 20:08
I am trying to use the custom styles approach from the view-users viz: custom-styles: stylize [ ... back-button button [ ... ] next-button button [ ... ] head-button button [ ... ] tail-button button [ ... ] ... ] These buttons can be placed in the viewed layout: view layout [ styles custom-styles ... across head-button back-button next-button tail-button ... ] but I get that the style values are undefined when I try to use them. But specific style definitions work i.e. view layout [ style more-info-button button 10x20 "?" gray [print "More information to be supplied about this option"] style no-yes rotary 50 "No" "Yes" style yes-no rotary 50 "Yes" "No" ] Any obvious misteak anyone can help me with? ================================================================== And I want to be able to dynamically change the data in a rotary. Allen K has shown how to do this for a radio button on rebolforces.com but how does one do it for other user interface items such as a. rotary b. text-lists I am interested in knowing how to do this when working under layout and when accessing the element directly. Any hints?