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

How do I create menus in View

 [1/7] from: gunjan_karun::yahoo::com at: 8-Jan-2001 20:35


Hi Gurus, I am a kid wrt rebol and am trying out the possibility of using it in our organization. Right now I'm exploring the REBOL/View (0.10.38.3.1) I have two problems, Firstly - Does REBOL/View have the concept of menus (and menu items), if yes, can anyone kindly give me some pointers where I might explore. Secondly - Now that I have installed the REBOL/View on my m/c everytime I do about on its console, it shows me the version of the View and not of the core. Is there any way I can find out the version of the REBOL Core on my machine. Thanks Gunjan ----------------------------------------- Gunjan Karun Technical Presales Consultant Zycus, Mumbai, India URL: http://www.zycus.com

 [2/7] from: al:bri:xtra at: 9-Jan-2001 16:08


Gunjan Karun wrote:
> Hi Gurus, > I am a kid wrt rebol and am trying out the possibility of using it in our
organization.
> Right now I'm exploring the REBOL/View (0.10.38.3.1)
Welcome to the list!
> Firstly - Does REBOL/View have the concept of menus (and menu items), if
yes, can anyone kindly give me some pointers where I might explore. Menus aren't standard on View, but they can created. AllenK has done work on this. There might be more info on his site: http://www.rebolforces.com IIRC.
> Secondly - Now that I have installed the REBOL/View on my m/c everytime I
do about on its console, it shows me the version of the View and not of the core. Is there any way I can find out the version of the REBOL Core on my machine. Here's my Rebol/View: REBOL/View 0.10.38.3.1 28-Nov-2000 Copyright 2000 REBOL Technologies. All rights reserved.
>> rebol/version
== 0.10.38.3.1 And here's my Rebol/Core: REBOL/core (Experimental) 2.4.39.3.1 Copyright 1997-2000 REBOL Technologies REBOL is a Trademark of REBOL Technologies All rights reserved. Component: "Internet Protocols" (17-Nov-2000/0:30:07) Finger protocol loaded Whois protocol loaded Daytime protocol loaded SMTP protocol loaded POP protocol loaded HTTP protocol loaded FTP protocol loaded NNTP protocol loaded Script: "User Preferences" (13-Dec-2000) Script: "Units" (5-Nov-2000)
>> rebol/version
== 2.4.39.3.1 Note that the version number matches the variety of Rebol. It is possible to have several different versions of Rebol installed, and to choose which one of the several to use or run per script. This requires some knowledge of your machine OS, though. I hope that helps! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [3/7] from: allenk:powerup:au at: 9-Jan-2001 23:20


Hi Ganjan, Welcome to the list. REBOL/View does have menus, but they may not have the look and feel or operation that you are after, if you are trying to get the feel of an OS. And implementation of submenus is not something that I would not suggest for a beginner, (give it a week or two ;-) The magic function to look at is CHOOSE. ? 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 Here's a little example ; start example ; makes dealing with pairs easier as-pair: func [xy [block!]][ to-pair reduce xy ] choices: func [f [object!]][ choose/offset/window ["Time" "Save" "Quit" "Cancel"] func [fa e][ switch/default fa/text [ "Time" [hide-popup request/ok form now] "Save" [hide-popup request/confirm "Save?"] "Quit" [Quit] ][ hide-popup ] ] ; set the offset to draw at and the parent-face as-pair [f/offset/x f/offset/y + f/size/y] f/parent-face ] view layout [size 200x200 text "menu" white 40.100.130 center bold [choices face]] ; end example Hope this helps, Allen K ----- Original Message ----- From: "Gunjan Karun" <[gunjan_karun--yahoo--com]> To: <[rebol-list--rebol--com]> Sent: Tuesday, January 09, 2001 1:05 AM Subject: [REBOL] How do I create menus in View
> Hi Gurus, > I am a kid wrt rebol and am trying out the possibility of using it in our
organization.
> Right now I'm exploring the REBOL/View (0.10.38.3.1) > I have two problems, > Firstly - Does REBOL/View have the concept of menus (and menu items), if
yes, can anyone kindly give me some pointers where I might explore.
> Secondly - Now that I have installed the REBOL/View on my m/c everytime I
do about on its console, it shows me the version of the View and not of the core. Is there any way I can find out the version of the REBOL Core on my machine.

 [4/7] from: gunjan:ezeenet at: 10-Jan-2001 19:43


Thanks Allen, The menu thing was a real eye opener. I am aware of Choose, but I was looking for something called Menu... that was stupid of me :-P but I think that is how I learn... Thanks once again Gunjan ----------------------------------------- Gunjan Karun Technical Presales Consultant Zycus, Mumbai, India URL: http://www.zycus.com

 [5/7] from: gunjan:ezeenet at: 9-Jan-2001 13:29


Thanks Andrew for the prompt response, Sorry I did not find anything relevant to my problem at www.rebolforces.com. I have also tried the following links (pretty good places for beginners) * The rebol view users guide at http://www.rebol.com/view/docs/view-users.html * The rebol how-to at http://www.rebol.com/howto.html * The view FAQ at www.rebolforces.com * A rather crude beginners tutorial at http://home.pacifier.com/~mcginty/rebol_cuddle.html * Rebol for the shell [Article/Tutorial] at http://unixreview.com/development/articles/0009ds.shtml * Rebol the Rebel [Article/Tutorial] at http://www.linuxfocus.org/English/September2000/article169.shtml * And tons of Rebol scripts at www.rebol.org and http://www.rebol.com/library/library.html Is there anywhere else I might go. I tried the "rebol tutorial" query on google.com and got a zillion pages all taking me back to one of these... and most of these articles/tutorials/FAQ are for core and not for the view. Regarding my second problem of finding out the version of rebol core, how did you get the version for core? Do you have rebol core installed separate from rebol view, because on my m/c every time I start rebol (and I have only one rebol.exe on my win98 PC) I get rebol/view only and then I have to choose console from the main window. Here if I try about I get the version of rebol view. I tried help about and figured that the only way to use about is about with no parameters. Is there a special command for finding the version of core... should not be difficult because the view is supposed to work OVER the core and not replace it. Please help. Thanks again for your time Gunjan ----------------------------------------- Gunjan Karun Technical Presales Consultant Zycus, Mumbai, India Tel: +91-22-8730591/8760625/8717251 Extension: 120 Fax: +91-22-8717251 URL: http://www.zycus.com

 [6/7] from: arolls:bigpond:au at: 11-Jan-2001 14:06


> Regarding my second problem of finding out the version of rebol core, how > did you get the version for core? Do you have rebol core
<<quoted lines omitted: 8>>
> version of core... should not be difficult because the view is supposed to > work OVER the core and not replace it.
No. When you have View, you have only View. There's is no "Core mode" to drop into. Selecting console just means stop showing the demo window. Put this line into %user.r if you want View to start up straight into the console: start-view?: no View has all the functionality of Core, though (and more). That's why most of us don't bother with Core much, (unless you're doing cgi scripting.) You can get an older Core here http://www.rebol.com/platforms.html
>> about
REBOL/Core 2.3.0.3.1 24-Jun-2000 This is (should be) a stable release that I use as a reference. Installing it alongside View isn't too much hassle. I have two icons on my desktop, one for Core, the other for View. You can get the latest experimental versions of Core and View from: http://www.rebol.com/xpers/xpers.html Don't be frightened. They work pretty well. View diverged from the old release of Core a little bit, because most people jumped on it and stopped using Core. But some still wanted to use Core, so the Core parts of View were implemented in the new experimental Core. To find out which product you are using from within a script, use system/product: if system/product = 'view [...] Anton.

 [7/7] from: al:bri:xtra at: 11-Jan-2001 16:21


> Is there anywhere else I might go?
Have you got the Rebol Core .pdf? Also, there's the User (and Ally ?) lists, which is archived on http://www.rebol.org, IIRC.
> Regarding my second problem of finding out the version of rebol core, how
did you get the version for core? Do you have rebol core installed separate from rebol view, because on my m/c every time I start rebol (and I have only one rebol.exe on my win98 PC) I get rebol/view only and then I have to choose console from the main window. Here if I try about I get the version of rebol view. I tried help about and figured that the only way to use about is about with no parameters. Is there a special command for finding the version of core... should not be difficult because the view is supposed to work OVER the core and not replace it. I've got three copies of Rebol, one is Core, the second is View and the third is "something else" (I'm not allowed to talk about this one). The first two are experimentals available from Rebol's site. It's probably best to install View first, then Core. Let View run most things (as it's got 'browse which is nice), and Core for running command line stuff and to check if bugs are different from View. (View is older core than current Core). With a little care (and tweaking of the Windows registry and changing directory structure), you too can run several versions of Rebol. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted