Re: WINDOWS VERSION MENU PROBLEM - architect
Hi Joe, I agree. As my program grows finding all the bits and pieces will be difficult. Having an option to save all scripts to text with some minimal description (button script -- delete, stack script, etc) would allow to browse all the code, get some idea of how it is organized as well as back it up (and I tend to put a lot of comments in my code so it reinforces what I am learning). It would be very useful. If its not in LC maybe we should send a feature request? Hi Mark, I don't think it is a feature. I had to do it one at a time, but no big deal. Saved a lot of time in rebuilding them. It would probably be a good idea to save them routinely as I've lost them a number of times in the past when I was experimenting. The more I think about it, there MUST be something built into rev to do that. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/WINDOWS-VERSION-MENU-PROBLEM-architect-tp2848149p2953347.html Sent from the Revolution - User mailing list archive at Nabble.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: WINDOWS VERSION MENU PROBLEM - architect
On 10/1/10 1:42 AM, Joe Lewis Wilkins wrote: I see that the List won't allow me to show even a very small screen shot. So, to describe the problem in words: The menu consists of four menus - File Edit Go Help. The menus all work, but you can't read the File or Go menus easily. It's as if the background is set to some very dark color. TIA, Joe It sounds like somehow the buttons have not only acquired a dark background color but also have become opaque. Just set the style of each menu button to transparent and that should fix it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: WINDOWS VERSION MENU PROBLEM - architect
Thanks Jaqi. As later noted, I just rebuilt the menus from scratch after saving all the scripts as text so it wasn't all that bad. I've managed to solve all my other problems one way or another. Joe Lewis Wilkins On Oct 2, 2010, at 1:07 PM, J. Landman Gay wrote: On 10/1/10 1:42 AM, Joe Lewis Wilkins wrote: I see that the List won't allow me to show even a very small screen shot. So, to describe the problem in words: The menu consists of four menus - File Edit Go Help. The menus all work, but you can't read the File or Go menus easily. It's as if the background is set to some very dark color. TIA, Joe It sounds like somehow the buttons have not only acquired a dark background color but also have become opaque. Just set the style of each menu button to transparent and that should fix it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: WINDOWS VERSION MENU PROBLEM - architect
Hi Joe, is that a feature of LC (saving all scripts as text), or do you have to select and save them out 1 at a time? From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Joe Lewis Wilkins [pepe...@cox.net] Sent: Saturday, October 02, 2010 3:12 PM To: How to use Revolution Subject: Re: WINDOWS VERSION MENU PROBLEM - architect Thanks Jaqi. As later noted, I just rebuilt the menus from scratch after saving all the scripts as text so it wasn't all that bad. I've managed to solve all my other problems one way or another. Joe Lewis Wilkins On Oct 2, 2010, at 1:07 PM, J. Landman Gay wrote: On 10/1/10 1:42 AM, Joe Lewis Wilkins wrote: I see that the List won't allow me to show even a very small screen shot. So, to describe the problem in words: The menu consists of four menus - File Edit Go Help. The menus all work, but you can't read the File or Go menus easily. It's as if the background is set to some very dark color. TIA, Joe It sounds like somehow the buttons have not only acquired a dark background color but also have become opaque. Just set the style of each menu button to transparent and that should fix it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 ___ 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: WINDOWS VERSION MENU PROBLEM - architect
Hi Mark, I don't think it is a feature. I had to do it one at a time, but no big deal. Saved a lot of time in rebuilding them. It would probably be a good idea to save them routinely as I've lost them a number of times in the past when I was experimenting. The more I think about it, there MUST be something built into rev to do that. Joe Lewis Wilkins On Oct 2, 2010, at 10:06 PM, Mark Smith wrote: Hi Joe, is that a feature of LC (saving all scripts as text), or do you have to select and save them out 1 at a time? From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Joe Lewis Wilkins [pepe...@cox.net] Sent: Saturday, October 02, 2010 3:12 PM To: How to use Revolution Subject: Re: WINDOWS VERSION MENU PROBLEM - architect Thanks Jaqi. As later noted, I just rebuilt the menus from scratch after saving all the scripts as text so it wasn't all that bad. I've managed to solve all my other problems one way or another. Joe Lewis Wilkins On Oct 2, 2010, at 1:07 PM, J. Landman Gay wrote: On 10/1/10 1:42 AM, Joe Lewis Wilkins wrote: I see that the List won't allow me to show even a very small screen shot. So, to describe the problem in words: The menu consists of four menus - File Edit Go Help. The menus all work, but you can't read the File or Go menus easily. It's as if the background is set to some very dark color. TIA, Joe It sounds like somehow the buttons have not only acquired a dark background color but also have become opaque. Just set the style of each menu button to transparent and that should fix it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 ___ 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 ___ 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
WINDOWS VERSION MENU PROBLEM - architect
Hi everyone, The Window's version of my app displays the following Menu: The File and Go Menus are the ones with black backgrounds. The Mac Version is fine. I've checked the backColors and hilite properties that might be the cause of this idiosyncrasy to no avail. Any ideas. The Windows version is run in XP under Fusion. Also, something that might be related to this: The text selections in editable text fields are comparably dark. There's probably a place to set this color, but I've yet to find it. I'm not too up on the use of Windows. TIA, Joe Wilkins ___ 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: WINDOWS VERSION MENU PROBLEM - architect
I see that the List won't allow me to show even a very small screen shot. So, to describe the problem in words: The menu consists of four menus - File Edit Go Help. The menus all work, but you can't read the File or Go menus easily. It's as if the background is set to some very dark color. TIA, Joe On Sep 30, 2010, at 11:38 PM, Joe Lewis Wilkins wrote: Hi everyone, The Window's version of my app displays the following Menu: The File and Go Menus are the ones with black backgrounds. The Mac Version is fine. I've checked the backColors and hilite properties that might be the cause of this idiosyncrasy to no avail. Any ideas. The Windows version is run in XP under Fusion. Also, something that might be related to this: The text selections in editable text fields are comparably dark. There's probably a place to set this color, but I've yet to find it. I'm not too up on the use of Windows. TIA, Joe Wilkins ___ 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 ___ 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: Menu problem
On 25.02.09 at 10:26 -0800 Mark Wieder apparently wrote: is evaluated by the compiler as a reference to a custom property. So technically I think it's not a bug as such. On the other hand, I'd be happy if the compiler had a bit more smarts in the way of catching keywords accidentally being used as property names. So I think my preference would be to write up the bug report. I think Mark is right about compiler seeing this as setting properties (custom or not). The error comes because you can't set the text property of a stack. It is a standard property but applies to fields, for example. In that sense, it would be a scripting error not a compiler bug. Robert ___ 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
Menu problem
Hello, Has anyone ever experience the following problem? I have a menubar, in which I need to enable and disable menus. For this, I use a simple repeat loop. put Text Editor into myStack repeat for each item myMenu in File,Edit,Text enable menu myMenu of stack myStack end repeat Once in a while, particularly in the IDE, I get an error when this script runs: Type: Chunk (no such object) Object name: script Line:(row 821 col 11) Hint: Text (The object name is script because of a Rev bug that occurs in try control structures, you can ignore this). Suppose that the error occurs at item Text. This means that the following syntax was executed at the moment of the error: enable menu Text of stack Text Editor If I execute this line from the messag box while the script editor is still in edit mode, it runs fine. The question is whether anyone saw something similar and whether this may be another Revolution bug. I'm not looking for a solution. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum: http://runrev.info/rrforum Please visit http://tinyurl.com/d6ojex and click on Stem --Thank you! ___ 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: Menu problem
Hi again, It looks the menu of stack myStack is incorrect syntax, but it doesn't throw an error. Should this work the way I expect it, or should it throw an error? Any opinions? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum: http://runrev.info/rrforum Please visit http://tinyurl.com/d6ojex and click on Stem --Thank you! On 25 feb 2009, at 12:26, Mark Schonewille wrote: Hello, Has anyone ever experience the following problem? I have a menubar, in which I need to enable and disable menus. For this, I use a simple repeat loop. put Text Editor into myStack repeat for each item myMenu in File,Edit,Text enable menu myMenu of stack myStack end repeat Once in a while, particularly in the IDE, I get an error when this script runs: Type: Chunk (no such object) Object name: script Line:(row 821 col 11) Hint: Text (The object name is script because of a Rev bug that occurs in try control structures, you can ignore this). Suppose that the error occurs at item Text. This means that the following syntax was executed at the moment of the error: enable menu Text of stack Text Editor If I execute this line from the messag box while the script editor is still in edit mode, it runs fine. The question is whether anyone saw something similar and whether this may be another Revolution bug. I'm not looking for a solution. -- Best regards, Mark Schonewille ___ 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: Menu problem
Mark- Wednesday, February 25, 2009, 9:59:29 AM, you wrote: It looks the menu of stack myStack is incorrect syntax, but it doesn't throw an error. Should this work the way I expect it, or should it throw an error? Any opinions? I'm of two minds about this. On the one hand, any expression like the yournamehere of stack somestack is evaluated by the compiler as a reference to a custom property. So technically I think it's not a bug as such. On the other hand, I'd be happy if the compiler had a bit more smarts in the way of catching keywords accidentally being used as property names. So I think my preference would be to write up the bug report. -- -Mark Wieder mwie...@ahsoftware.net ___ 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
Menu problem
Could it be enable menuItem instead of enable menu? Best regards Ton ___ 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: Menu problem
Thanks Mark, I will probably report this problem as a bug. I'll wait a little longer for more opinions. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum: http://runrev.info/rrforum Please visit http://tinyurl.com/d6ojex and click on Stem --Thank you! On 25 feb 2009, at 19:26, Mark Wieder wrote: I'm of two minds about this. On the one hand, any expression like the yournamehere of stack somestack is evaluated by the compiler as a reference to a custom property. So technically I think it's not a bug as such. On the other hand, I'd be happy if the compiler had a bit more smarts in the way of catching keywords accidentally being used as property names. So I think my preference would be to write up the bug report. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Menu problem
Hi Ton, Thanks for your reply. I'm really not looking for a solution, I just want to know what the general opinion about this issues it, bug or nog bug. If someone thinks that a stack should have a menu property, that would be interesting too. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum: http://runrev.info/rrforum Please visit http://tinyurl.com/d6ojex and click on Stem --Thank you! On 25 feb 2009, at 19:35, Melitón Cardona Torres wrote: Could it be enable menuItem instead of enable menu? Best regards Ton ___ 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
Option Menu Problem
Hi All, I have an option menu that is set dynamically based on a list of items. The list can be empty, on the menu object I have the showName property set true. When the list is not empty all works ok, when an item is selected, the new selection is shown as the menu contents, however when the list is empty the name of the menu object shows in the object contents rather that it just being empty. If I set the show name property to false then when the list is empty it shows as empty in the contents but when not empty the selected item is not displayed when selected. How can I get the desired effect? 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: Option Menu Problem
On Apr 22, 2008, at 11:11 AM, Dave wrote: I have an option menu that is set dynamically based on a list of items. The list can be empty, on the menu object I have the showName property set true. When the list is not empty all works ok, when an item is selected, the new selection is shown as the menu contents, however when the list is empty the name of the menu object shows in the object contents rather that it just being empty. If I set the show name property to false then when the list is empty it shows as empty in the contents but when not empty the selected item is not displayed when selected. How can I get the desired effect? Try setting the text to a space ( ) and disabling the menu when there are no items to select. Will this work for you? Regards, -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Developer Resources: http://revolution.bluemangolearning.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: Option Menu Problem
On 22 Apr 2008, at 16:18, Trevor DeVore wrote: On Apr 22, 2008, at 11:11 AM, Dave wrote: I have an option menu that is set dynamically based on a list of items. The list can be empty, on the menu object I have the showName property set true. When the list is not empty all works ok, when an item is selected, the new selection is shown as the menu contents, however when the list is empty the name of the menu object shows in the object contents rather that it just being empty. If I set the show name property to false then when the list is empty it shows as empty in the contents but when not empty the selected item is not displayed when selected. How can I get the desired effect? Try setting the text to a space ( ) and disabling the menu when there are no items to select. Will this work for you? Ok, that kind of works except I set the text contents in the mouseDown hander of the menu and if disabled this handler doesn't get called. Why doesn't it work like a regular popup menu ala MacOS X? Any other ideas on how to fix this? 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: Option Menu Problem
On Apr 22, 2008, at 12:04 PM, Dave wrote: Ok, that kind of works except I set the text contents in the mouseDown hander of the menu and if disabled this handler doesn't get called. Why doesn't it work like a regular popup menu ala MacOS X? Any other ideas on how to fix this? You could just enter the space for the text but not disable the menu. That way no title displays but you still get clicks messages. This will be addressed in a future release (new behavior in 2.9). Check out the notes in this bug report: http://quality.runrev.com/qacenter/show_bug.cgi?id=5747 Regards, -- Trevor DeVore Blue Mango Learning Systems www.bluemangolearning.com-www.screensteps.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: Option Menu Problem
Try setting it to a dash. Visually that gives a pretty good indicator of no choice. -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.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
Menu problem / question on Macs
I want to find out the name of the button clicked on when the user selected a menu... and am having a problem with using the short name of the target If used the menu builder to create my menu (Say its called Problem Menu), and rather than adding a handler to the button of each menu item I put the following handler in the group script (click Edit menu bar Script): on mouseDown put the short name of the target pass mouseDown end mouseDown This works fine for clicking on the menu group directly as you would with windows / linux, - so say you click on a Test menu that you created - Test would be put into the message box as expected. But if you make set as Menu Bar on Mac OS -- the name you get returned is the name of the group with the handler in ie Problem Menu :( I've had this problem before - which I think is related to the way in which the message is sent - but this time i can see no work around for what I am trying to do - so is there any way to find out the real target? ___ 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: Menu problem / question on Macs
Hi David, Could this be related to a simple thing: The name of any menu should be one word only? Le 11 juin 07 à 15:47, David Bovill a écrit : I want to find out the name of the button clicked on when the user selected a menu... and am having a problem with using the short name of the target If used the menu builder to create my menu (Say its called Problem Menu), and rather than adding a handler to the button of each menu item I put the following handler in the group script (click Edit menu bar Script): on mouseDown put the short name of the target pass mouseDown end mouseDown This works fine for clicking on the menu group directly as you would with windows / linux, - so say you click on a Test menu that you created - Test would be put into the message box as expected. But if you make set as Menu Bar on Mac OS -- the name you get returned is the name of the group with the handler in ie Problem Menu :( I've had this problem before - which I think is related to the way in which the message is sent - but this time i can see no work around for what I am trying to do - so is there any way to find out the real target? Best regards from Paris, Eric Chatonet. Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/ Email: [EMAIL PROTECTED]/ ___ 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: Menu problem / question on Macs
Afraid not - the actual examples I have are for one word menus. I'm stuck. On 11/06/07, Eric Chatonet [EMAIL PROTECTED] wrote: Hi David, Could this be related to a simple thing: The name of any menu should be one word only? Le 11 juin 07 à 15:47, David Bovill a écrit : I want to find out the name of the button clicked on when the user selected a menu... and am having a problem with using the short name of the target If used the menu builder to create my menu (Say its called Problem Menu), and rather than adding a handler to the button of each menu item I put the following handler in the group script (click Edit menu bar Script): on mouseDown put the short name of the target pass mouseDown end mouseDown This works fine for clicking on the menu group directly as you would with windows / linux, - so say you click on a Test menu that you created - Test would be put into the message box as expected. But if you make set as Menu Bar on Mac OS -- the name you get returned is the name of the group with the handler in ie Problem Menu :( I've had this problem before - which I think is related to the way in which the message is sent - but this time i can see no work around for what I am trying to do - so is there any way to find out the real target? Best regards from Paris, Eric Chatonet. Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/ Email: [EMAIL PROTECTED]/ ___ 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 ___ 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
Menu problem / question on Macs
Hi David, you wrote: so is there any way to find out the real target? I don't think so. I posted this question on the rev forums a couple of months ago and got no satisfaction. Basically, you must write a giant mousedown handler that configures EVERY menu button each time ANY menu button is clicked. Fortunately, rev is so fast that there is no menu lag. --Michael Binder ___ 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: Menu problem / question on Macs
OK - thanks i guess that should be a feature request: vote for http://quality.runrev.com/qacenter/show_bug.cgi?id=5142 ! On 11/06/07, Michael Binder [EMAIL PROTECTED] wrote: Hi David, you wrote: so is there any way to find out the real target? I don't think so. I posted this question on the rev forums a couple of months ago and got no satisfaction. Basically, you must write a giant mousedown handler that configures EVERY menu button each time ANY menu button is clicked. Fortunately, rev is so fast that there is no menu lag. --Michael Binder ___ 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 ___ 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
Menu Problem!
Hi, I have a pop up menu that has two values, call them A and B. In the preOpenStack handler I want to set the menu back to A so I tried the following: send menuPick A to button myButton The Script on myButton is as so: on menuPick theItemSelected if theItemSelected = A then -- Do Something else -- Do Something else end if end menuPick When I manually enter A or B on the Pop Up all works ok. However when I run the preOpenStack handler, the Menu Stays a B even though I send an A to it. I have put a breakpoint in the menu pick handler and it receive the A ok. Do I need to set something else to have the menu update to A? Thanks in Advance 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: Menu Problem!
Try this: Put A into tParm Send menuPick tParm to button myButton In a send command, items inside the quotes are still evaluated for their value, rather than being literal. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Burgun Sent: Wednesday, August 17, 2005 10:50 AM To: How to use Revolution Subject: Menu Problem! Hi, I have a pop up menu that has two values, call them A and B. In the preOpenStack handler I want to set the menu back to A so I tried the following: send menuPick A to button myButton The Script on myButton is as so: on menuPick theItemSelected if theItemSelected = A then -- Do Something else -- Do Something else end if end menuPick When I manually enter A or B on the Pop Up all works ok. However when I run the preOpenStack handler, the Menu Stays a B even though I send an A to it. I have put a breakpoint in the menu pick handler and it receive the A ok. Do I need to set something else to have the menu update to A? Thanks in Advance 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 ___ 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: Menu Problem!
On 8/17/05 9:49 AM, David Burgun [EMAIL PROTECTED] wrote: Hi, I have a pop up menu that has two values, call them A and B. In the preOpenStack handler I want to set the menu back to A so I tried the following: send menuPick A to button myButton Actually, what you want to do is to set the menuHistory to a number corresponding to the menu item you want selected. So if the menu displays A as the first item, then B, you want to do: set the menuHistory of button myButton to 1 However keep in mind that this does the same thing as actually *selecting* the menu item, so if you want to reset the menu, but *not* have it take effect, you need to wrap the command in lock messages, like this: lock messages set the menuHistory of button myButton to 1 unlock messages HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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: Menu Problem!
I have used this sort of construction: Put Insert Row Below into tChoice Send menupick tChoice to button row options And it worked fine, no need to use menuhistory at all. Is there a hidden danger I am not aware of? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray Sent: Wednesday, August 17, 2005 12:25 PM To: Use Revolution List Subject: Re: Menu Problem! On 8/17/05 9:49 AM, David Burgun [EMAIL PROTECTED] wrote: Hi, I have a pop up menu that has two values, call them A and B. In the preOpenStack handler I want to set the menu back to A so I tried the following: send menuPick A to button myButton Actually, what you want to do is to set the menuHistory to a number corresponding to the menu item you want selected. So if the menu displays A as the first item, then B, you want to do: set the menuHistory of button myButton to 1 However keep in mind that this does the same thing as actually *selecting* the menu item, so if you want to reset the menu, but *not* have it take effect, you need to wrap the command in lock messages, like this: lock messages set the menuHistory of button myButton to 1 unlock messages HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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 ___ 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: Menu Problem!
On 8/17/05 11:36 AM, Lynch, Jonathan [EMAIL PROTECTED] wrote: I have used this sort of construction: Put Insert Row Below into tChoice Send menupick tChoice to button row options And it worked fine, no need to use menuhistory at all. Is there a hidden danger I am not aware of? Well, the send menupick activates the menu option, but doesn't change the label on the menu to correspond to the choice. So if you only want to simulate the menu selection without setting the button's label, then it's a fine approach. Here's a summary of actions that can be taken: 1) put Blue into tChoice send menupick tChoice to button 1 -- triggers the menupick in the button and acts on the choice, but doesn't change the button's label, nor does it set the menuitem that is directly under the mouse when then option button is selected the next time (Mac only). 2) put Blue into tChoice send menupick tChoice to button 1 set the label of button 1 to Blue -- triggers the menupick in the button and acts on the choice, and sets the label appropriately, but doesn't set the menuitem that is directly under the mouse when then option button is selected the next time (Mac only). 3) set the menuhistory of button 1 to 1 -- (Assuming that Blue is the first menu item) Triggers the menupick in the button and acts on the choice, sets the label appropriately, and set the menuitem that is directly under the mouse when then option button is selected the next time (Mac only). HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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: Menu Problem!
Thank you! Most informative. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray Sent: Wednesday, August 17, 2005 1:13 PM To: Use Revolution List Subject: Re: Menu Problem! On 8/17/05 11:36 AM, Lynch, Jonathan [EMAIL PROTECTED] wrote: I have used this sort of construction: Put Insert Row Below into tChoice Send menupick tChoice to button row options And it worked fine, no need to use menuhistory at all. Is there a hidden danger I am not aware of? Well, the send menupick activates the menu option, but doesn't change the label on the menu to correspond to the choice. So if you only want to simulate the menu selection without setting the button's label, then it's a fine approach. Here's a summary of actions that can be taken: 1) put Blue into tChoice send menupick tChoice to button 1 -- triggers the menupick in the button and acts on the choice, but doesn't change the button's label, nor does it set the menuitem that is directly under the mouse when then option button is selected the next time (Mac only). 2) put Blue into tChoice send menupick tChoice to button 1 set the label of button 1 to Blue -- triggers the menupick in the button and acts on the choice, and sets the label appropriately, but doesn't set the menuitem that is directly under the mouse when then option button is selected the next time (Mac only). 3) set the menuhistory of button 1 to 1 -- (Assuming that Blue is the first menu item) Triggers the menupick in the button and acts on the choice, sets the label appropriately, and set the menuitem that is directly under the mouse when then option button is selected the next time (Mac only). HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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 ___ 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: Menu Problem!
David First, are you trying to get the menu to execute the code associated with option A on openStack or are you just interested in making sure the button's label is set right? If the latter, rather than using menuPick just set the label of the button. That should work fine (untested). Second, have you tried sending the menuPick message from a different place, e.g., another button? I set up a little test to do that. If I didn't explicitly set the label of the menu button, the script for the menu choice I entered would execute but the label of the menu button remained unchanged. So I suspect the secret is that you have to set the label of the menu button and then, if you want it to execute the choice, send the menuPick message. On Aug 17, 2005, at 7:49 AM, David Burgun wrote: Hi, I have a pop up menu that has two values, call them A and B. In the preOpenStack handler I want to set the menu back to A so I tried the following: send menuPick A to button myButton The Script on myButton is as so: on menuPick theItemSelected if theItemSelected = A then -- Do Something else -- Do Something else end if end menuPick When I manually enter A or B on the Pop Up all works ok. However when I run the preOpenStack handler, the Menu Stays a B even though I send an A to it. I have put a breakpoint in the menu pick handler and it receive the A ok. Do I need to set something else to have the menu update to A? ~~ Dan Shafer, Revolution Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.revolutionpros.com, Click My Stuff ___ 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: OS X Menu Problem
About the Edit menu, the last 2 items are deleted ONLY if the last item name or label is Preferences. This is convenient if you don't want to have preferences menu (in this case, the preferences menu in the app menu is disabled) But, it's a problem when you work in another language than English: Rev doesn't delete the last 2 items of the Edit menu and the preferences menu in the app menu is disabled. Regards. Thierry. On Tuesday, Jan 20, 2004, at 07:49 Europe/Paris, Sarah Reichelt wrote: Check the What's New text file that came with your Revolution application. It details how menus are shuffled around to match the OS X use interface guidelines. Basically, the last 2 items in the File menu (normally a divider and Quit) are deleted and the Quit is moved to the application menu. Similarly the last 2 items in the Edit menu (a divider Preferences) are also deleted and Preferences moved to the application menu and the same with the Help menu and the About menu item. The other trick is that OS X apps do not respond to the Quit menu item. You have to use a closeStackRequest handler instead. Cheers, Sarah On 20 Jan 2004, at 4:30 pm, Stewart Lynch wrote: I am having real difficulty with creating Menus on OS X. For example, I have a File Menu that has a Save as one of the menu options. When I view the menu in the form, all menu options are displayed. When I view it as an OS X Menu, the menu item is not there. In other instances, entire menus do not display in the OS X IDE nor when the application is built as a stand alone. Is there any solution to this? The Menu Builder is flakey at best. *** ... : o/ : Stewart Lynch : | : Director of Instruction, Technology and Information Services : / : Richmond School District :..: Richmond, BC Canada Internet: [EMAIL PROTECTED] https://public.sd38.bc.ca/~slynch tel. (604) 668-6128 fax: (604) 668-6006 *** ___ 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
OS X Menu Problem
I am having real difficulty with creating Menus on OS X. For example, I have a File Menu that has a Save as one of the menu options. When I view the menu in the form, all menu options are displayed. When I view it as an OS X Menu, the menu item is not there. In other instances, entire menus do not display in the OS X IDE nor when the application is built as a stand alone. Is there any solution to this? The Menu Builder is flakey at best. *** : o/ : Stewart Lynch : | : Director of Instruction, Technology and Information Services : / : Richmond School District :..: Richmond, BC Canada Internet: [EMAIL PROTECTED] https://public.sd38.bc.ca/~slynch tel. (604) 668-6128 fax: (604) 668-6006 *** ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OS X Menu Problem
--- Stewart Lynch [EMAIL PROTECTED] wrote: I am having real difficulty with creating Menus on OS X. For example, I have a File Menu that has a Save as one of the menu options. When I view the menu in the form, all menu options are displayed. When I view it as an OS X Menu, the menu item is not there. In other instances, entire menus do not display in the OS X IDE nor when the application is built as a stand alone. Is there any solution to this? The Menu Builder is flakey at best. Hi Stewart, Revolution may have its peculiarities regarding menus, but usually because it's trying to make things easy for cross-platform developers. One of the things it does behind the scene, is place the last two items of the 'File' menu into the 'Application' menu. Is it possible that the last two items of your 'File' menu aren't a separator line and 'Quit' ? For more information regarding menus, go to the documentation, in the section 'About... menus and the menubar' Here's the relevant quote from this section: -- Special menu items A few menu items on Mac OS and OS X are handled directly by the operating system. To accommodate these special menu items while allowing you to create a fully cross-platform menu bar, Revolution treats the last two menu items of the Help menu (for Mac OS and OS X), the File menu (OS X), and the Edit menu (OS X) differently. By following these guidelines, you can make sure your menus will appear properly on all operating systems without having to write special code or create platform-specific menu bars. The Help menu and the #147;About This Application#148; menu item: When Revolution sets up the Mac OS menu bar, it automatically makes the last button the Help menu (regardless of the button#146;s name). The standard Help menu items, such as #147;About Balloon Help#148; and #147;Show Balloons#148; on Mac OS, are included for you automatically; you don#146;t need to include them in your Help menu button, and you can#146;t eliminate them from the Help menu. Revolution moves the last menu item in the Help menu to the #147;About This Application#148; position. (On Mac OS systems, this is the first menu item in the Apple menu. On OS X systems, it#146;s the first menu item in the Application menu.) Therefore, the last menu item in your Help menu button should be an appropriate #147;About#148; item. The menu item above it must be a divider line (a dash), and above that must be at least one menu item to be placed in the Help menu. The File menu and the #147;Quit#148; menu item: On OS X systems, the #147;Quit#148; menu item is normally placed in the Application menu (which is maintained by the operating system) rather than in the File menu as is standard on other platforms. To acccommodate this user-interface standard, Revolution removes the last two menu items of the File menu when a standalone application is running on an OS X system. Therefore, the last menu item in your File menu button should be #147;Quit#148;. The menu item above it should be a divider line (a dash). The Edit menu and the #147;Preferences#148; menu item: On OS X systems, the #147;Preferences#148; menu item is also normally placed in the Application menu. To acccommodate this user-interface standard, Revolution removes the last two menu items of the Edit menu when a standalone application is running on an OS X system. Therefore, the last menu item in your Edit menu button should be #147;Preferences#148;. The menu item above it should be a divider line (a dash). Note: The Preferences menu item is treated in this special way only if its name starts with the string #147;Preferences#148;. Tip: If your application#146;s user interface is presented in a language other than English, set the name of the Edit menu button to #147;Edit#148;, and set its label to the correct translation. This ensures that the engine can find the Edit menu, while making sure that the menu is shown in the correct language. Choosing the special menu items: When the user chooses any of these special menu items, a menuPick message is sent to the button that the menu item is contained in. This ensures that your button scripts will work on all platforms, even if Revolution displays a menu item in a different menu to comply with user-interface guidelines. For example, if the user chooses #147;About This Application#148; from the Apple menu on a Mac OS system, a menuPick message is sent to the Help menu button, with #147;About This Application#148; as its parameter. You handle the message for the About menu item in the Help menu button#146;s script, even though Revolution displays this menu item in a different menu on the Mac. -- As for any other problems with menus that aren't covered in these docs : if you would post a sample stack on the web somewhere, I'm sure these can be resolved as well. Hope this helped, Jan Schenkel. = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld)
Re: OS X Menu Problem
Check the What's New text file that came with your Revolution application. It details how menus are shuffled around to match the OS X use interface guidelines. Basically, the last 2 items in the File menu (normally a divider and Quit) are deleted and the Quit is moved to the application menu. Similarly the last 2 items in the Edit menu (a divider Preferences) are also deleted and Preferences moved to the application menu and the same with the Help menu and the About menu item. The other trick is that OS X apps do not respond to the Quit menu item. You have to use a closeStackRequest handler instead. Cheers, Sarah On 20 Jan 2004, at 4:30 pm, Stewart Lynch wrote: I am having real difficulty with creating Menus on OS X. For example, I have a File Menu that has a Save as one of the menu options. When I view the menu in the form, all menu options are displayed. When I view it as an OS X Menu, the menu item is not there. In other instances, entire menus do not display in the OS X IDE nor when the application is built as a stand alone. Is there any solution to this? The Menu Builder is flakey at best. *** ... : o/ : Stewart Lynch : | : Director of Instruction, Technology and Information Services : / : Richmond School District :..: Richmond, BC Canada Internet: [EMAIL PROTECTED] https://public.sd38.bc.ca/~slynch tel. (604) 668-6128 fax: (604) 668-6006 *** ___ 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: Menu problem
On Sunday, November 10, 2002, at 08:39 AM, Richard Gaskin wrote: Robert Presender wrote: I have a menubar with several btn menus as pulldown: one of the menus has several items: New Trans - Sort - I would like to have the Sort item to be cascading(?) Put this in your menu button contents: New Trans - Sort tabby Date tabby Event Richard .. thank you for your input. Your suggestion worked but I couldn't get it to look like a cascade of Sort. Since asking for help, I continued (again early this AM) to experiment (couldn't find any documentation on how to use the manager) with Menu Manager. I finally was able to get the results I wanted. The key was a click on the icon (make the selected menu item into a submenu item) after entering a new item name after Sort. Sort then looked like a cascade. Thanks again for your suggestion. Regards ... Bob ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Menu problem
Hi, Need help again re menus. Using OS 10.2.1, 1.1.1 r2, 1.5A7r1 I have a menubar with several btn menus as pulldown: one of the menus has several items: New Trans - Sort - I would like to have the Sort item to be cascading(?) like: - Sort (arrow symbol) By Date By Event - Tried to follow the info in About Menus but have had no success. Tried tabbing Sort to no avail when in properties. Checked custom to make sure Tab was true not false. Will appreciate help in this matter. TIA Regards ... Bob ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: SC to RR menu problem
At 6:28 AM -0700 10/13/2002, Robert Presender wrote: 1. After copying a card, in SC, it is possible to include the name of the new card as a menu item(s) into a particular menu and also directly include a script for this new menu item(s). In RR, I am able to create the new menu item(s) into the applicable btn menu(of a group of menus) on the new card. I have tried many approaches to create a script for the new menu item(s) without success. I assume that it is not possible to directly set a script for the new menu item. I also assume that the menuPick pWhich routine of the btn menu has to be modified to include the case,etc routine for the new menu item. My problem is that I haven't been able to create a script ( in the On New routine in the Main Stack script) to modify the menuPick routine or whatever for the new menu item. Modifying a script is basically like modifying any other property: you put the property into a variable, make the changes you need, then set the property back to the variable: on newCard put the script of button Cards into myScript -- make changes to myScript set the script of button Cards to myScript end newCard However, it's a bit awkward to do this if the script is at all complicated, because you have to do a bit of parsing to find the desired handler, then add new lines without disrupting the control structures in the handler. In this case, I would suggest instead writing a general-purpose handler that can be used regardless of the menu contents: on menuPick theItem -- goes in button menu script if there is a card theItem then go card theItem else beep -- card wasn't there end menuPick This works for all card names, and doesn't require a modification every time you add a card - it just works off the card name in the menu, so all you need to do is add the card name to the button's text to have the menu routine work. If the menu has menu items other than card names, you can write specific case structures for those items, for example: on menuPick theItem switch theItem case Previous go previous card break case Next go next card break default -- if none of the previous cases apply: if there is a card theItem then go card theItem else beep end switch end menuPick In general, you're right that menu items in Rev are not objects - instead, they're lines in a button - so it's not possible to create a separate script for a menu item. 2. In SC, when a new menu item is created in the copied card's menu, the new menu item also appears in the original card's menu. This appears not to happen in RR. Is a work around necessary to include the new item in the original card's menu? If you mean the same menu bar displayed on more than one card, this should work - the menubar group is the same object, so changes made on one card should be reflected everywhere the group is placed. Can you say more about how you did this, what steps you followed? -- Jeanne A. E. DeVoto ~ [EMAIL PROTECTED] Runtime Revolution Limited - The Solution for Software Development http://www.runrev.com/ ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
SC to RR menu problem
Hi, Using OS 10.2.1, Rev 1.1.1r2/ 1.5A7r1 Having problems in converting a SuperCard project to RR with regard to menus. 1. After copying a card, in SC, it is possible to include the name of the new card as a menu item(s) into a particular menu and also directly include a script for this new menu item(s). In RR, I am able to create the new menu item(s) into the applicable btn menu(of a group of menus) on the new card. I have tried many approaches to create a script for the new menu item(s) without success. I assume that it is not possible to directly set a script for the new menu item. I also assume that the menuPick pWhich routine of the btn menu has to be modified to include the case,etc routine for the new menu item. My problem is that I haven't been able to create a script ( in the On New routine in the Main Stack script) to modify the menuPick routine or whatever for the new menu item. 2. In SC, when a new menu item is created in the copied card's menu, the new menu item also appears in the original card's menu. This appears not to happen in RR. Is a work around necessary to include the new item in the original card's menu? Suggestions will be appreciated. TIA Regards Bob ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution