Re: Menu Builder and submenues

2015-03-31 Thread Dr. Hawkins
On Tue, Mar 31, 2015 at 11:10 AM, J. Landman Gay wrote: > Whatever follows the slash will become the keyboard shortcut. Whatever > follows the pipe will be the "label" of the menu, so that you can localize > the menus without changing their actual names. That way the scripts will > always work bu

Re: Menu Builder and submenues

2015-03-31 Thread J. Landman Gay
On 3/31/2015 2:45 PM, Peter Haworth wrote: Thanks for the explanation, I had forgotten about what I think are called tags in menu items. Do you happen to know offhand if these tags are supported for all menu type - option, popup, etc? Tags. Right, I should have said "tags". It doesn't look lik

Re: Menu Builder and submenues

2015-03-31 Thread Peter Haworth
Jacque, Thanks for the explanation, I had forgotten about what I think are called tags in menu items. Do you happen to know offhand if these tags are supported for all menu type - option, popup, etc? Pete lcSQL Software Home of lcStackBrowser

Re: Menu Builder and submenues

2015-03-31 Thread J. Landman Gay
On 3/30/2015 4:47 PM, Dr. Hawkins wrote: Schedules A/|A B/|B I don't see why it has the / Whatever follows the slash will become the keyboard shortcut. Whatever follows the pipe will be the "label" of the menu, so that you can localize the menus without changing their actual names. That way

Re: Menu Builder and submenues

2015-03-30 Thread dunbarx
Richard. if you delete either the "/" or the "|" tags, the submenuItem is not assembled correctly. As you said. You need both. Are you sure you have these correctly set? I am not sure about your not seeing the stacks. I assume you meant "cloning stack out0" when you said: Stack out1 is cr

Re: Menu Builder

2012-01-13 Thread J. Landman Gay
On 1/13/12 12:19 AM, Pete wrote: Hi Jacque, Wanted to let you know that the issue of mouseDwon having to be at the group level is documented in the USer Guide so you remembered correctly! I also discovered today that 5.0.2 handles the moving of controls for system menu purposes differently than

Re: Menu Builder

2012-01-12 Thread Pete
Hi Jacque, Wanted to let you know that the issue of mouseDwon having to be at the group level is documented in the USer Guide so you remembered correctly! I also discovered today that 5.0.2 handles the moving of controls for system menu purposes differently than 4.6.4. Just upgraded to 5.0.2 and

Re: Menu Builder

2012-01-12 Thread Pete
Thanks Jacque. I did try the short name of the target and it returned the name of the menu bar group, as did the short name of me. After looking at the logic of what I'm trying to do, I think there's another place I can do the adjust the menu contents and drop the whole mouseDown approach. Feels

Re: Menu Builder

2012-01-12 Thread Bob Sneidar
Ooooh good tip on locking menus! Bob On Jan 12, 2012, at 11:43 AM, J. Landman Gay wrote: > On 1/12/12 1:01 PM, Pete wrote: > >> There's more than one menu I have to dynamically adjust so I need to figure >> out in the group's mouseDown handler which menu was clicked. I tried using >> the sho

Re: Menu Builder

2012-01-12 Thread J. Landman Gay
On 1/12/12 1:01 PM, Pete wrote: There's more than one menu I have to dynamically adjust so I need to figure out in the group's mouseDown handler which menu was clicked. I tried using the short name of me, the short name of the target, and the mouseControl but none of them tell me which button w

Re: Menu Builder

2012-01-12 Thread J. Landman Gay
On 1/12/12 12:49 PM, Pete wrote: Hi Jacque, The way this app works is that everything happens within the scope of one stack. I have groups that get hidden or shown depending on what function the user selects so I adjust the height of the stack depending on which function/group is active by refer

Re: Menu Builder

2012-01-12 Thread J. Landman Gay
On 1/12/12 12:40 PM, Peter M. Brigham, MD wrote: I assume this is true if and only if the menubutton is part a a group. On my system menubuttons that are not part of any group receive and respond to mousedowns just fine. The part about grouped buttons being treated differently is a good nugget t

Re: Menu Builder

2012-01-12 Thread Pete
Yes, I believe the distinction is that these buttons are part of the mechanism to put menus in the OS X system menu bar, not regular buttons. Indeed, this is worth filing away. I have also entered a User Comment for the mouseDown event in the dictionary. Pete On Thu, Jan 12, 2012 at 10:40 AM, Pe

Re: Menu Builder

2012-01-12 Thread Pete
Yes, that fixed it, thank you! I searched the obvious places in the dictionary but couldn't find any reference to this, maybe I'll add a user comment to the mouseDown entry. I guess there are still a couple of issues I'll have to deal with. There's more than one menu I have to dynamically adjust

Re: Menu Builder

2012-01-12 Thread Pete
Hi Jacque, The way this app works is that everything happens within the scope of one stack. I have groups that get hidden or shown depending on what function the user selects so I adjust the height of the stack depending on which function/group is active by reference to the bottom of the group tha

Re: Menu Builder

2012-01-12 Thread Peter M. Brigham, MD
On Jan 12, 2012, at 1:16 PM, J. Landman Gay wrote: > On 1/12/12 11:33 AM, Pete wrote: >> Hi Peter, >> Yep, it should work, that's what's so frustrating. Even weirder still is >> that if I send a mouseDown message to the File button from the message box, >> everything works just fine, just not whe

Re: Menu Builder

2012-01-12 Thread J. Landman Gay
On 1/12/12 12:24 AM, Pete wrote: I have one remaining issue to deal with and that has to do with some window resizing I do which now will have to take account of the menu group, probably differently on Windows than on OS X. Fortunately, the code to do the resizing is all in one handler so once

Re: Menu Builder

2012-01-12 Thread J. Landman Gay
On 1/12/12 11:33 AM, Pete wrote: Hi Peter, Yep, it should work, that's what's so frustrating. Even weirder still is that if I send a mouseDown message to the File button from the message box, everything works just fine, just not when I click on the File menu! I'm pretty sure this is in the

Re: Menu Builder

2012-01-12 Thread Bob Sneidar
Just to check for the ridiculous, is it disabled? Bob On Jan 12, 2012, at 9:33 AM, Pete wrote: > Hi Peter, > Yep, it should work, that's what's so frustrating. Even weirder still is > that if I send a mouseDown message to the File button from the message box, > everything works just fine, just

Re: Menu Builder

2012-01-12 Thread Bob Sneidar
That is a great idea! Go, ye empowered of Livecode, and prosper! ;-) Bob On Jan 12, 2012, at 7:56 AM, Geoff Canyon Rev wrote: > One thing that I've often thought would make a lot of sense is to have an > array of starter projects, from "Single window with menubar" to "splash > screen with multi

Re: Menu Builder

2012-01-12 Thread Pete
Hi Peter, Yep, it should work, that's what's so frustrating. Even weirder still is that if I send a mouseDown message to the File button from the message box, everything works just fine, just not when I click on the File menu! The ironic thing about all this is that I really don't care if I h

Re: Menu Builder

2012-01-12 Thread Geoff Canyon Rev
One thing that I've often thought would make a lot of sense is to have an array of starter projects, from "Single window with menubar" to "splash screen with multiple document windows" etc. It seems like a small handful of these would save a lot of beginners (and the rest of us!) a lot of time. ___

Re: Menu Builder

2012-01-12 Thread Peter M. Brigham, MD
That approach should work fine -- I just tested it again on my system, and I use this kind of thing all the time to build menus on the fly. Maybe you could post your scripts so we could see what's going on? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jan 12,

Re: Menu Builder

2012-01-11 Thread Pete
OK, now on to the next step. Menus working fine, all scripted. Now I want to add a menu item to the File menu in certain circumstances. I coded a mouseDown handler in the button named "File" in my menu group to do this. It gets the text of the menu, adds the text for the new menu item to the en

Re: Menu Builder

2012-01-11 Thread Joe Lewis Wilkins
All of these suggestions are well and good; but, on my most recent project, I bi-passed the entire problem by creating my own menus on the cards for both the Mac and Windows versions of a much larger size so that I don't have to deal with the minuscule fonts normally used for Windows apps. This

Re: Menu Builder

2012-01-11 Thread Pete
Thanks Jacque. Things appear to be working now but I have no idea what combination of things I did to make it happen, and I hate that. Your explanation and the links helped explain it all. As Joe said, if only this was in the User Guide, there'd be a lot less nervousness about using the menu bui

Re: Menu Builder

2012-01-11 Thread J. Landman Gay
On 1/11/12 10:41 PM, Joe Lewis Wilkins wrote: Jacqi, Your explanation should appear on the "Menu Builder" Dialog from a Help Button thereon. It would save a lot of newbies gobs of hair follicles. Thanks. I thought it was in the User Guide but I just looked and couldn't find much. Once you "ge

Re: Menu Builder

2012-01-11 Thread Joe Lewis Wilkins
Jacqi, Your explanation should appear on the "Menu Builder" Dialog from a Help Button thereon. It would save a lot of newbies gobs of hair follicles. I don't recall how many hours I've wasted coming to terms with these issues; in some instances scraping a project and starting all over again. Of

Re: Menu Builder

2012-01-11 Thread J. Landman Gay
As soon as I click OK, all the controls on the open stack move up, some of them to be underneath the window title bar. Uhhh, I asked for them not to be moved down, not to be moved up! Oh, forgot: you've probably designed your card with space at the top that you want to preserve. If so, then y

Re: Menu Builder

2012-01-11 Thread J. Landman Gay
On 1/11/12 6:51 PM, Pete wrote: In the first screen, I click the New button and on the next screen, give the menu a name and leave the give the menubar a name and uncheck the box "move objects down to accommodate menu bar" (I want the menu to be in the OS X menu bar). As soon as I click OK, al

Re: Menu Builder

2012-01-11 Thread Bob Sneidar
What you can do is create a new stack, build your menu there, copy the text of the button it creates, then build on the fly when you open your stack. I think. I'm a little fuzzy about that. :-) Bob On Jan 11, 2012, at 4:51 PM, Pete wrote: > After a gap of many months since last using the Menu

Re: Menu Builder

2012-01-11 Thread Pete
Well, I guess back to square 1. What seemed to work (don't move controls, set as Stack menubar) now results in controls being moved up again. Pete On Wed, Jan 11, 2012 at 5:53 PM, Pete wrote: > Yes I just discovered that. If that checkbox had been on the same screen > as the "move controls" ch

Re: Menu Builder

2012-01-11 Thread Pete
Yes I just discovered that. If that checkbox had been on the same screen as the "move controls" checkbox, life would have been much simpler! So I'm now on the right track I think, but looks like I need to adjust some code which resizes windows in some circumstances. Pete On Wed, Jan 11, 2012 at

Re: Menu Builder

2012-01-11 Thread Mark Schonewille
Hi Pete, If I keep that darn checkbox unchecked and do check the checkbox Set as stack Menu bar, then all is fine and the controls don't move up or down (actually they do move down by the same amount of pixels the card moves up). I don't know about a tutorial or something, but I rarely look at

Re: Menu Builder

2012-01-11 Thread Pete
HI Mark, I guess it's a case of "once bitten, twice shy". As mentioned, I had weird problems trying to use it last time around and now I can't get past the first screen without a problem so I just don't trust it. I didn't uncheck the box, it was already unchecked. I also tried checking it, which

Re: Menu Builder

2012-01-11 Thread Mark Schonewille
Hi Pete, Why do you want a different way? The menu builder still is the easiest way to create a menu, even if it is unintuitive and buggy. Next time, just don't uncheck that checkbox :-) Surely, you can create a group, set the menubar of the stack to the name of that group and set the editmenu