[REBOL] Re: [VID//menu]
From: carl:cybercraft at: 22-May-2004 0:50
>since I am creating a REBOL program with a GUI, I needed to implement a menu
>I've read "REBOL/View Developer's Guide" and "A Beginner's Guide to REBOL
>Visual Interfaces", but neither of them has the required info.
>Any hints where to look?
You can use choice for simple menus...
view layout [choice "aa" "bb" "cc" [probe face/text]]
Something I noticed recently though was the choose function...
>> ? choose
CHOOSE choices function /style styl /window winf /offset xy /across
Generates a choice selector menu, vertical or horizontal.
CHOOSE is a function value.
choices -- Block of items to display (Type: block)
function -- Function to call on selection (Type: function none)
styl -- The style choice button (Type: object)
winf -- The parent window to appear in (Type: object)
xy -- Offset of choice box (Type: pair)
/across -- Use horizontal layout
This is the most simple use of it...
choose ["aa" "bb" "cc"] func [face][probe face/text]
How you'd make use of it for more complex menus within a window I've not looked into
-- Carl Read