Rebol Talk Forum  |  Getting Started  |  Code Examples, Tips & Advice  |  Topic: Adding menu & tool bars in REBOL view.
Pages: [1] Print
Author Topic: Adding menu & tool bars in REBOL view.  (Read 790 times)
DefiantPc
Administrator
Jr. Member
*
Offline Offline

Posts: 69


View Profile
Adding menu & tool bars in REBOL view.
« on: January 11, 2004, 08:32:05 PM »

Q. How can I add menu bars and tool bars to a REBOL view?

A. VID doesn't have menu or toolbar styles built in, though some people
have developed their own - take a loot at
folder "DocKimbel's" http://rebol.dhs.org/index.r icon site info {Home of
mySQL scheme, Win95 skin, Vector Balls demo, ...}

There are menus implemented in the "Win95 skin" demo.
(It works on Rebol/View 1.2.1 but I saw an error in a quite recent beta)
update :-)
Go to the rebsite called DocKimbel (without the 's)
(http://rebol.softinnov.org/index.r)  
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Adding menu & tool bars in REBOL view.
« Reply #1 on: January 12, 2004, 03:16:07 AM »

You could use CHOICE to give menu-like options.  ie, something like this...

Code:
menu-hit: func [face][
   print [face/text "Selected"]
   face/text: first head face/data
   show face
]

view layout [
   backdrop 80.80.200
   size 300x200
   space -20
   across
   style menu choice 80 blue edge [effect: none size: 0]
   menu "File" "Open" "Save" "Save As" "Quit" [
       menu-hit face
   ]
   menu "Edit" "Cut" "Copy" "Paste" [
       menu-hit face
   ]
]

To extend that so once a menu is open you don't have to click on the others to open them would require altering their FEEL functions and linking them together in some way.  This shouldn't be too difficult - touch wood.  To see CHOICE's default FEEL functions enter...

    layout [ch: choice] probe ch/feel

at the View Console.  There's a good tutorial on FEEL here...
    http://www.rebol.com/how-to/feel.html

Hope that helps.
 
« Last Edit: January 12, 2004, 03:26:02 AM by CarlRead » Logged

- Carl Read
Amanita
Newbie
*
Offline Offline

Posts: 19


View Profile
Adding menu & tool bars in REBOL view.
« Reply #2 on: January 13, 2004, 11:03:20 PM »

That was a great example...

                   Cheesy

Thank you for posting the code !
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Code Examples, Tips & Advice  |  Topic: Adding menu & tool bars in REBOL view.
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 24, 2008, 10:25:00 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2193 Posts in 573 Topics by 1685 Members
Latest Member: BupQuilegip

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc