Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [VID//menu]

From: carl:cybercraft at: 22-May-2004 0:50

>Hi all, > >since I am creating a REBOL program with a GUI, I needed to implement a menu >structure. > >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
USAGE: CHOOSE choices function /style styl /window winf /offset xy /across DESCRIPTION: Generates a choice selector menu, vertical or horizontal. CHOOSE is a function value. ARGUMENTS: choices -- Block of items to display (Type: block) function -- Function to call on selection (Type: function none) REFINEMENTS: /style styl -- The style choice button (Type: object) /window winf -- The parent window to appear in (Type: object) /offset 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 though. -- Carl Read