Re: Hierarchical Menus

2008-01-20 Thread Dave

Hi,
On 21 Jan 2008, at 00:20, Ken Ray wrote:


Thanks for the kind words, Stephen! In fact I ran into the same issue
and merged a field with an option button in a group and made my own
"combobox"... lets me put checkboxes next to items, full formatting on
the field, etc.


That sounds exactly what I want. Do you have some sample code I could  
look at to get an idea of how to go about it?


Thanks a lot
All the Best
Dave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hierarchical Menus

2008-01-20 Thread Ken Ray
On Sun, 20 Jan 2008 14:39:39 -0800, Stephen Barncard wrote:

> The best way to make the actual controls you really need is to make 
> them from scratch -- then they can do anything you want. And it's not 
> as hard as you might think. All a combobox is - is a popupMenu 
> coupled with a field in a group and some logic.
> 
> I ran into the same stumbling block a couple of years ago, just 
> before the last Revcon (I miss you guys) and then attended a 
> performance by the amazing Ken Ray, who showed how to 'think out of 
> the box' when it comes to making controls.   

Thanks for the kind words, Stephen! In fact I ran into the same issue 
and merged a field with an option button in a group and made my own 
"combobox"... lets me put checkboxes next to items, full formatting on 
the field, etc.

> I wish you could see his 
> demonstration online - he's probably saving it and more for the 
> upcoming conference in Las Vegas. 

I may end up doing a voiceover and putting it up on my site; as to Las 
Vegas, you'll have to just wait and see... ;-)

> I was quite inspired to come up 
> with my own solution, even before I left the conference that week!
> 
> http://houseofcubes.com/rev/multiBOX.png
> 
> my only graphics, the button, is just a screenshot of the combobox 
> button and stretched out and a round rectangle and the rest are stock 
> fields, and an invisible button.
> there are three of these, side by side, in the application.

Nicely done, Stephen!


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hierarchical Menus

2008-01-20 Thread Stephen Barncard

Dave,

Some kind of menus allow hierarchicals and some don't. I got tired of 
working around the stock offerings for serious custom interface work. 
Pulldown,popup, can do it,   option shows the levels all at once and 
returns different data  combobox shows a semi-hierarchial list and 
also has to be read differently, and cascade is just strange.


The best way to make the actual controls you really need is to make 
them from scratch -- then they can do anything you want. And it's not 
as hard as you might think. All a combobox is - is a popupMenu 
coupled with a field in a group and some logic.


I ran into the same stumbling block a couple of years ago, just 
before the last Revcon (I miss you guys) and then attended a 
performance by the amazing Ken Ray, who showed how to 'think out of 
the box' when it comes to making controls.   I wish you could see his 
demonstration online - he's probably saving it and more for the 
upcoming conference in Las Vegas.  I was quite inspired to come up 
with my own solution, even before I left the conference that week!


http://houseofcubes.com/rev/multiBOX.png

my only graphics, the button, is just a screenshot of the combobox 
button and stretched out and a round rectangle and the rest are stock 
fields, and an invisible button.

there are three of these, side by side, in the application.


 Thanks, Ken, for the inspiration.




Hi,

It is possible to have a Combo Box or (or Popup menu on Mac) with 
Hierarchical Menu's in it?


If so, how do I dynamically create a Submenu? I have a list of users:
Dave



--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: hierarchical menus

2002-03-31 Thread Jeanne A. E. DeVoto

At 5:57 AM -0800 3/27/2002, Ivers, Doug E wrote:
>Can the menu manager be used to create hierarchical menus?

Yes. There are a couple of buttons that will move the selected line within
the menu hierarchy. The simplest way to do this is to create your menu with
all the menu items (including items in submenus) it will contain, in order.
Then select the first menu item you want to put in a submenu, and look at
the horizontal row of four buttons to the left of the menu item name. Click
the second button, labeled "Make the selected menu item into a submenu
item". This shifts the selected menu item to the left. Repeat for each
submenu item.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



hierarchical menus

2002-03-28 Thread Pierre-Marie CARETTE

for "Ivers, Doug E"

on createPrefMenu
  -- this is called in preOpenStack
  -- create Preferences menu contents with tab in front of each font name
  --- (to make the font list a submenu)
  -- prerequisite: a button "Preferences" in group "menubar0"
---
put return &the fontNames into tabFontList
replace return with return & tab in tabFontList
 
  put "Font" & tabFontList into button "Preferences" of group
"menubar0"
end createPrefMenu

The tabkey use and doesn't use in  field-text-properties palette.
Solution  
Write the menu in a fld
copy
paste in the text of the properties palette
et hop !  it works

Revolution is very quick. You can build your menu in a handler "moueenter".
It will be ready when the  user "mousedown".
Revolution is very very quickly (I i compare with my old Hypercard)
I even build menus in the same handler "mousedown"

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: hierarchical menus

2002-03-28 Thread Ivers, Doug E

I didn't get any explanation of how to set up a submenu in the Menu Manager,
so I did it in a script.  Here's what I ended up with:

on createPrefMenu
  -- this is called in preOpenStack
  -- create Preferences menu contents with tab in front of each font name
  --- (to make the font list a submenu)
  -- prerequisite: a button "Preferences" in group "menubar0"
  put the fontNames into sysFontList
  put empty into tabFontList
  repeat for each line L in sysFontList
put tab&L&return after tabFontList
  end repeat
  delete char -1 of tabFontList  -- the trailing return
  put "Font"&return&tabFontList into button "Preferences" of group
"menubar0"
end createPrefMenu

Any suggestions for improving this?

-- D





On 3/27/02 8:57 AM, "Ivers, Doug E" <[EMAIL PROTECTED]> wrote:

> Can the menu manager be used to create hierarchical menus?  I saw an
> earlier message on this, but it still doesn't seem to work in 1.1.1
> final.
> 
> I'm looking for an example stack in which hierarchical or cascading
> menus are used.  In particular, I want to have a menubar with a
> Preferences menu under which is a Font menuitem under which is a list of
> the available fonts.
> 
> Anyone know of an existing example?  (I haven't looked through all the
> user contribution stacks for this.)  Surely this is not uncommon.
> 
> 
> -- D 
> 
> ___ use-revolution mailing
> list [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: hierarchical menus

2002-03-27 Thread Dar Scott


On Wednesday, March 27, 2002, at 10:36 AM, yves COPPE wrote:

> Surely
> the hierarchical menu can be set with the use of the tab Key
>
I can't type that in the properties field.  OS X; Revolution 1.1.1 B2.

Dar

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: hierarchical menus

2002-03-27 Thread yves COPPE
Title: Re: hierarchical menus


Can the menu
manager be used to create hierarchical menus?  I saw an earlier
message on this, but it still doesn't seem to work in 1.1.1
final.

I'm looking
for an example stack in which hierarchical or cascading menus are
used.  In particular, I want to have a menubar with a Preferences
menu under which is a Font menuitem under which is a list of the
available fonts.

Anyone know
of an existing example?  (I haven't looked through all the user
contribution stacks for this.)  Surely this is not
uncommon.


--
D

___ use-revolution
mailing list [EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Surely
the hierarchical menu can be set with the use of the tab
Key



Re: Hierarchical menus

2002-02-06 Thread Jeanne A. E. DeVoto

At 4:10 PM -0800 2/6/2002, Tim wrote:
>One simple question: How do you create sub-items in Hierarchical button
>menus. I've tried return and tab, but tab tabs out of the field. What's the
>secret?

It looks like this is a limitation in the Properties palette - I'll check
on it and put in a bug report, but meanwhile, you were right that tab is
what you want. As a workaround, you can use something like this in the
message box:

  put tab before line 2 of button "My Menu"

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Hierarchical menus

2002-02-06 Thread Tim

One simple question: How do you create sub-items in Hierarchical button
menus. I've tried return and tab, but tab tabs out of the field. What's the
secret?
-- 
Tim

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Hierarchical Menus

2002-01-29 Thread Kevin Miller

On 27/1/02 10:02 pm, tbandi <[EMAIL PROTECTED]> wrote:

> I couldn't figure out how I can find out which of the menu items of a
> button was selected and I did not find much help in the documentation. I
> tried with "the selectedText", with "the label" and with the menuHistory
> but I did not find what I expected: the first and the second item of the
> selection? Can anyone give me a hint or an example?

on menuPick pWhich
 --pWhich contains firstItem|secondItem

You can set the itemDel to | then put each item into a variable, then do an
if...then or switch as normal.

Kevin

Kevin Miller <[EMAIL PROTECTED]> 
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Hierarchical Menus

2002-01-28 Thread tbandi

I couldn't figure out how I can find out which of the menu items of a 
button was selected and I did not find much help in the documentation. I 
tried with "the selectedText", with "the label" and with the menuHistory 
but I did not find what I expected: the first and the second item of the 
selection? Can anyone give me a hint or an example?

Thanks, Till

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution