tags in menus other than Pulldown (menubar) menus

2022-03-27 Thread Paul Dupuis via use-livecode
Here is another LC wish list for practical reasons: I with that the menu item format for "regular" (pulldown/menubar) menus of: [] ['/' ['|' ]] -- with the caveat that to have a with out an , you just use /| [NOTE: This syntax is listed in the Dictionary under

Re: Popup Menus

2021-11-03 Thread Bob Sneidar via use-livecode
TSIDE the > rect or the popped up items, menuPick is STILL triggered and the first item > in the text of the popup button is the parameter passed to it. > > This means that even if a user clicks off a popped menu, the handler is still > triggered. I think this is a bug, and popup

Popup Menus

2021-11-03 Thread Bob Sneidar via use-livecode
the popup button is the parameter passed to it. This means that even if a user clicks off a popped menu, the handler is still triggered. I think this is a bug, and popup menus ought not work that way, but neither here nor there. A workaround would be to detect if the mouseLoc was within the r

Context menus (popup command) bugs...

2019-06-13 Thread Paul Dupuis via use-livecode
I've run into a bug on Windows (and Linux) with regard to popup menus over a field using mouseMove or mouseWithin. https://quality.livecode.com/show_bug.cgi?id=22178 There are related bugs: https://quality.livecode.com/show_bug.cgi?id=7766 https://quality.livecode.com/show_bug.cgi?id=

Re: Option Menus (and missing features)

2018-08-08 Thread Richard Gaskin via use-livecode
acters (for divider lines, disabled items, check marks, menu tags, key equivalents, etc.) support in "menus" other than pulldown menus. For me, I have a burning desire to see the ability to have dividers "-" in *Option Menus* A search of the Quality Center revealed

Option Menus (and missing features)

2018-08-08 Thread Paul Dupuis via use-livecode
cters (for divider lines, disabled items, check marks, menu tags, key equivalents, etc.) support in "menus" other than pulldown menus. For me, I have a burning desire to see the ability to have dividers "-" in *Option Menus* A search of the Quality Center revealed these related bug

Popup Menus from another card

2017-12-22 Thread Bob Sneidar via use-livecode
Hi all. I am trying to popup a menu from another card. It isn't popping up. Here is the code. Is there a problem doing this?? on mouseDown pButtonNum if pButtonNum <> 3 then pass mouseDown put the long id of button "dgcontextual" of card "behaviors" of homeStack() into tPopupMenu popup

Re: Best practice for menus...

2017-01-17 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > On 1/17/17 2:27 PM, Richard Gaskin via use-livecode wrote: >> I was curious about performance, so I ran the test copied below, with >> these results: >> >> MenuItem: 219 ms >> As text: 10 ms > > Do the results change

Re: Best practice for menus...

2017-01-17 Thread J. Landman Gay via use-livecode
On 1/17/17 2:27 PM, Richard Gaskin via use-livecode wrote: I was curious about performance, so I ran the test copied below, with these results: MenuItem: 219 ms As text: 10 ms Do the results change if you lock menus before changing them? Manipulating menus, especially on Macs, is

Re: Best practice for menus...

2017-01-17 Thread Jeanne A. E. DeVoto via use-livecode
At 12:49 PM -0500 1/17/2017, Paul Dupuis via use-livecode wrote: For desktop applications on Windows and OSX, I am lookingf or what people consider the best practice to be for enabling, disabling, or updating menu items based on context. You have so many ways in the LiveCode language to do this:

Re: Best practice for menus...

2017-01-17 Thread Paul Dupuis via use-livecode
in Edit menu > > set the text of btn "Edit" to it > > > > enable menuitem 2 of btn "File" of grp "Menubar" -- Enable Open > > > > and probably a number of other syntax variations I have forgotten. So > > is there one of the many syntax

Re: Best practice for menus...

2017-01-17 Thread Richard Gaskin via use-livecode
t" to it > > enable menuitem 2 of btn "File" of grp "Menubar" -- Enable Open > > and probably a number of other syntax variations I have forgotten. So > is there one of the many syntax variations for menus that is "Best" > (i.e most reliable, best

Best practice for menus...

2017-01-17 Thread Paul Dupuis via use-livecode
- Enable Open and probably a number of other syntax variations I have forgotten. So is there one of the many syntax variations for menus that is "Best" (i.e most reliable, best performance, best balance between reliability and performance) ___

Re: 8.0.0 RC1 - Where is the "Remove Group" option in menus

2016-04-27 Thread Bob Sneidar
016, at 19:35 , Sannyasin Brahmanathaswami > wrote: > > If you want to remove a group from a card, but not the whole stack > > Where in the menus is the choice for this? > > BR > ___ > use-livecode mailing list > use-liveco

Re: 8.0.0 RC1 - Where is the "Remove Group" option in menus

2016-04-14 Thread J. Landman Gay
On 4/14/2016 9:35 PM, Sannyasin Brahmanathaswami wrote: If you want to remove a group from a card, but not the whole stack Where in the menus is the choice for this? It should be in the Object menu. It won't be enabled until the group is selected. -- Jacqueline Landma

8.0.0 RC1 - Where is the "Remove Group" option in menus

2016-04-14 Thread Sannyasin Brahmanathaswami
If you want to remove a group from a card, but not the whole stack Where in the menus is the choice for this? BR ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Modifying Drop-Down Menus on the fly

2016-02-11 Thread Francis Nugent Dixon
ld "xyz" (or a preset variable). Some of my menu button scripts contain "case" commands (which is what I meant .). I change script content in my fields ** and buttons very often, to do rather tortuous things (which I will not describe here !) Now I am starting to do

Re: Modifying Drop-Down Menus on the fly

2016-02-10 Thread Tore Nilsen
er of items in the menu can be any number, as the user can scroll further down the list in the combo-box. Tore Nilsen > 9. feb. 2016 kl. 20.44 skrev Francis Nugent Dixon : > > Hi from Sunny Brittany (at least it was this morning !), > > After many years of using buttons in

Re: Modifying Drop-Down Menus on the fly

2016-02-10 Thread Beda Sellung Posteo
is shown. The solution I’ve found is in Jeanne Devoto’s stack about menus as part of the famous „Scripting Conference” downloadable from Jaques Landman Gay’s WebSite: http://www.hyperactivesw.com/revscriptconf/scriptingconferences.html (Thank you very much to make these stacks still available

Re: Modifying Drop-Down Menus on the fly

2016-02-09 Thread Phil Davis
morning !), After many years of using buttons in my stacks, I am discovering the joys of using “Pull Down” menus (and about time too !). I can change the script “cases” with the “set script” command, but I also want to know how to change the value of the menu options on the fly, for example, if I

Re: Modifying Drop-Down Menus on the fly

2016-02-09 Thread Eric Corbett
Set the text of the button to the list of menu items. Also look in the dictionary under menu for more drop down menu features. ​eric​ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Modifying Drop-Down Menus on the fly

2016-02-09 Thread Francis Nugent Dixon
Hi from Sunny Brittany (at least it was this morning !), After many years of using buttons in my stacks, I am discovering the joys of using “Pull Down” menus (and about time too !). I can change the script “cases” with the “set script” command, but I also want to know how to change the value of

Re: outsmarted myself with menus?

2015-03-25 Thread J. Landman Gay
The same Edit script should work as a behavior. (It does assume Select All is for text, but I think that's what you're working with.) On March 25, 2015 8:43:22 AM CDT, "Dr. Hawkins" wrote: >On Tue, Mar 24, 2015 at 7:26 PM, J. Landman Gay > >wrote: > >> I

Re: outsmarted myself with menus?

2015-03-25 Thread Bob Sneidar
This of course ,limits Select All to text in fields. Combo Boxes are excluded as they are buttons. Easy enough to account for though. Bob S On Mar 24, 2015, at 19:26 , J. Landman Gay mailto:jac...@hyperactivesw.com>> wrote: case "select all" if the selectedfield <> "" then select text of

Re: outsmarted myself with menus?

2015-03-25 Thread Dr. Hawkins
On Tue, Mar 24, 2015 at 5:24 PM, Terry Judd wrote: > Try one or more of focusedObject(), selectedField(), selectedChunk() > Naturally, when I went back, the menu *was *getting called. One more intermittent thing to debug . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _

Re: outsmarted myself with menus?

2015-03-25 Thread Dr. Hawkins
On Tue, Mar 24, 2015 at 7:26 PM, J. Landman Gay wrote: > I've never used behaviors in menus. The Edit menu is the easiest to > script, the engine keeps track of everything for you. You only need a > single word for each switch item to cover the basic stuff. Here's my > sta

Re: outsmarted myself with menus?

2015-03-24 Thread J. Landman Gay
On 3/24/2015 6:29 PM, Dr. Hawkins wrote: I've created menus and handlers, and use behaviors for them. But when I want to paste, the handler can't find where I was. If I'm in a field, "me" and "the target" both point to the menu button, not the field; the sel

Re: outsmarted myself with menus?

2015-03-24 Thread Terry Judd
Try one or more of focusedObject(), selectedField(), selectedChunk() Terry... On 25/03/2015 10:29 am, "Dr. Hawkins" wrote: >I've created menus and handlers, and use behaviors for them. > >But when I want to paste, the handler can't find where I was. > >If I

outsmarted myself with menus?

2015-03-24 Thread Dr. Hawkins
I've created menus and handlers, and use behaviors for them. But when I want to paste, the handler can't find where I was. If I'm in a field, "me" and "the target" both point to the menu button, not the field; the selectedObject contains nothing, and I ca

Re: more menus oddities

2015-03-17 Thread Dr. Hawkins
On Tue, Mar 17, 2015 at 2:21 PM, Richard Gaskin wrote: > It wasn't reported until Paul Hilbert filed the report for someone else on > the 5th. It was fixed on the 10th, but was just outside the window for > 7.0.4 DP1, now expected for DP 2. > > I must have been in a hurry that day (or particular

Re: more menus oddities

2015-03-17 Thread Richard Gaskin
Dr. Hawkins wrote: > It used to be > > print otCd from 18,18,576+18,756 into 18,18,576+18,756 > > until that started crashing livecode a couple of months ago. > > Is that fixed? It seems to me that someone else was bit a couple > of weeks ago and posted here. It wasn't reported until Paul Hil

Re: more menus oddities

2015-03-17 Thread Dr. Hawkins
On Tue, Mar 17, 2015 at 1:08 PM, J. Landman Gay wrote: > Don't try to adjust the menu group. I suspect you are issuing a "print > this card" command. > open printing to pdf outpath ... print otCd into 18,18,576+18,756 It used to be print otCd from 18,18,576+18,756 into 18,18,576+18,756 until

Re: more menus oddities

2015-03-17 Thread J. Landman Gay
On 3/17/2015 9:49 AM, Dr. Hawkins wrote: Exporting my first PDFs , I found another oddity: on a mac, the menubar appears on the exported PDF, even though it isn't visible on screen. This was easy enough to solve, with my script stashing, falsing and resetting the vis of the menu. However, the

more menus oddities

2015-03-17 Thread Dr. Hawkins
Exporting my first PDFs , I found another oddity: on a mac, the menubar appears on the exported PDF, even though it isn't visible on screen. This was easy enough to solve, with my script stashing, falsing and resetting the vis of the menu. However, the adjustment in screen height apparently mean

Re: Getting use of menus straight

2015-03-14 Thread J. Landman Gay
On 3/14/2015 5:04 PM, Dr. Hawkins wrote: OK, so the dictionary*is* wrong about menubar being only on mac? Interesting. I could be (probably am) wrong. Like you, I work mostly on Mac and only test on Windows. Since I've never developed for Windows alone (always cross platform) I have never tr

Re: Getting use of menus straight

2015-03-14 Thread J. Landman Gay
On 3/14/2015 3:16 PM, Peter Haworth wrote: I seem to remember you have to put your mouse handlers in the menubar group not the menu buttons? Right, mostly because of the Mac system menu bar. The item selected is only returned to the group. -- Jacqueline Landman Gay | jac...@hyper

Re: Getting use of menus straight

2015-03-14 Thread Dr. Hawkins
On Sat, Mar 14, 2015 at 11:34 AM, J. Landman Gay wrote: > On 3/14/2015 12:02 PM, Dr. Hawkins wrote: > >> Before I blow off another limb, I need to see if I have this straight. >> > > Advice I received early on is that if your stack will have menus, develop > for Windo

Re: Getting use of menus straight

2015-03-14 Thread Peter Haworth
t may have changed. On Sat, Mar 14, 2015 at 11:34 AM J. Landman Gay wrote: > On 3/14/2015 12:02 PM, Dr. Hawkins wrote: > > Before I blow off another limb, I need to see if I have this straight. > > Advice I received early on is that if your stack will have menus, > develop for Window

Re: Getting use of menus straight

2015-03-14 Thread J. Landman Gay
On 3/14/2015 12:02 PM, Dr. Hawkins wrote: Before I blow off another limb, I need to see if I have this straight. Advice I received early on is that if your stack will have menus, develop for Windows first (even if you're on a Mac.) It's good advice. It allows you to see how the lay

Re: Getting use of menus straight

2015-03-14 Thread Mike Kerner
annd, there's me, not bothering to understand the entire message. Going back to my hole, now. On Sat, Mar 14, 2015 at 1:57 PM, Dr. Hawkins wrote: > On Sat, Mar 14, 2015 at 10:53 AM, Mike Kerner > wrote: > > > On the Mac, instead of being in the top left of your window, it will > > display a

Re: Getting use of menus straight

2015-03-14 Thread Dr. Hawkins
On Sat, Mar 14, 2015 at 10:53 AM, Mike Kerner wrote: > On the Mac, instead of being in the top left of your window, it will > display at the top of your display. > I've got that :) I primarily develop on that, and only have windows as a leftover on a FreeBSD laptop. But I'm trying to gbet the

Re: Getting use of menus straight

2015-03-14 Thread Mike Kerner
reaction is that they're > for displaying arrays of xterms . . . ) > > So for mac, I set the defaultMenuBar, which can hang around in the main > stack. For substacks with custom menus, I need to have an additional menu > group with copies of the common buttons, and the extras. (a

Getting use of menus straight

2015-03-14 Thread Dr. Hawkins
Before I blow off another limb, I need to see if I have this straight. (Hey, I'm not a GUI kind of person. My general reaction is that they're for displaying arrays of xterms . . . ) So for mac, I set the defaultMenuBar, which can hang around in the main stack. For substacks with cu

Re: Keyboard Shortcuts in Menus

2014-11-14 Thread Bob Sneidar
Actually, Macs can use either the control, command (apple) or option key with shift modifier for some of them as well. On Windows, the command key is actually the windows key. Not certain if it can be used as a modifier. Bob S On Nov 13, 2014, at 07:29 , Richard Gaskin mailto:ambassa...@fourt

Re: Keyboard Shortcuts in Menus

2014-11-13 Thread Graham Samuel
Thanks Richard - great explanation as usual! By the way, I am using some Unicode characters in menu items in Windows 7 (actually running on a Mac under Parallels) and sometimes I’ve noticed that they don’t “stick”, in that one can paste a Unicode character like the square root symbol into a men

Re: Keyboard Shortcuts in Menus

2014-11-13 Thread Richard Gaskin
Graham Samuel wrote: > In the whole toolbar, all keyboard shortcuts must of course be > distinct, and are presumably not case sensitive. That was my silly > mistake. I made it because PC programs often have an underlined 'x' > in the 'Exit' menu item: this is not a keyboard shortcut but some > ot

Re: Keyboard Shortcuts in Menus

2014-11-13 Thread Graham Samuel
2014, at 15:32, Graham Samuel I wrote: > > I'm using LC 7.0.1. Looking at both the LC User Guide and the Dictionary, I > find that I don’t exactly understand the way you put keyboard shortcuts into > menus and get them to activate, especially on Windows. I note for example: >

Re: Keyboard Shortcuts in Menus

2014-11-12 Thread Bob Sneidar
I vill check out the link vich you posted to see vhat you speak of. :-) Bob S On Nov 12, 2014, at 02:13 , Jacques Hausser mailto:jacques.haus...@unil.ch>> wrote: Hi Graham, see bug 13836 (fixed - avaiting built) and the discussion there. Jacques _

Re: Keyboard Shortcuts in Menus

2014-11-12 Thread Bob Sneidar
e it unusable, but now I find it very reliable. Bob S > On Nov 11, 2014, at 07:32 , Graham Samuel wrote: > > I'm using LC 7.0.1. Looking at both the LC User Guide and the Dictionary, I > find that I don’t exactly understand the way you put keyboard shortcuts into > menus

Re: Keyboard Shortcuts in Menus

2014-11-12 Thread Graham Samuel
Thanks - I see that 6.7.1 is addressing these issues, but I need them on LC7 because I’m dipping my toe into Unicode. I’m hoping it’s only a day or so away… Graham > On 12 Nov 2014, at 10:13, Jacques Hausser wrote: > > Hi Graham, > > see bug 13836 (fixed - avaiting built) and the discussion t

Re: Keyboard Shortcuts in Menus

2014-11-12 Thread Jacques Hausser
Hi Graham, see bug 13836 (fixed - avaiting built) and the discussion there. Jacques > Le 12 nov. 2014 à 11:03, Graham Samuel a écrit : > > Hi - I’ve searched recent activity on the list but I haven’t been able to > find any reference to this issue apart from my own input, and in the QCC all

Re: Keyboard Shortcuts in Menus

2014-11-12 Thread Graham Samuel
Hi - I’ve searched recent activity on the list but I haven’t been able to find any reference to this issue apart from my own input, and in the QCC all I can see is a specific reference to a fault in the ‘Quit’ command in the IDE. Can someone please point me at a more comprehensive description of

Re: Keyboard Shortcuts in Menus

2014-11-11 Thread Dr. Hawkins
On Tue, Nov 11, 2014 at 7:32 AM, Graham Samuel wrote: > Can anyone explain what is going on behind the scenes? Keep in mind that even built-in keyboard commands are generally not functioning correctly in the current 7.0.1 (RC1) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _

Re: Keyboard Shortcuts in Menus

2014-11-11 Thread Björnke von Gierke
Question 1: The & only works for Windows, where menus can be triggered with the keyboard. The character after the & will be the one to trigger, and it'll be shown underlined. You can choose any char in a word, it doesn't need to be the first one, and the premade ones are cho

Keyboard Shortcuts in Menus

2014-11-11 Thread Graham Samuel
I'm using LC 7.0.1. Looking at both the LC User Guide and the Dictionary, I find that I don’t exactly understand the way you put keyboard shortcuts into menus and get them to activate, especially on Windows. I note for example: 1. The ‘&’ character is always present in a menu item whic

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-15 Thread Kay C Lan
On Mon, Sep 15, 2014 at 12:49 PM, J. Landman Gay wrote: >> > Forgot to mention: the IDE uses the "delete" command in it's Clear menu item > script, but only applies it for objects. It scripts the deletion of text in > fields, and that too fails to provide a closefield message. > I'm sure I checked

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Paul Hibbert
And you are correct Kay, in checking the target against the clipboard, after a busy day photographing dolphins I came back and tried another test. My original suggestion was too simple in that if the clipboardData contained an image it would paste the image over the top of everything on the card

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread J. Landman Gay
On 9/14/2014, 11:19 PM, Kay C Lan wrote: Except Paul is right, on OS X the clear command in a custom built menu does not invoke a closeField message which it does if using the IDE's clear command. Forgot to mention: the IDE uses the "delete" command in it's Clear menu item script, but only app

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread J. Landman Gay
sefield. So in the case of "clear", your first solution is probably workable. I guess that explains why I always remove "Clear" from my menus. It's become so habitual, I'd forgotten why. -- Jacqueline Landman Gay |

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Kay C Lan
Except Paul is right, on OS X the clear command in a custom built menu does not invoke a closeField message which it does if using the IDE's clear command. This does seem to be a bug. On Mon, Sep 15, 2014 at 12:15 PM, J. Landman Gay wrote: > On 9/14/2014, 9:41 PM, Kay C Lan wrote: >> >> Now use t

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread J. Landman Gay
On 9/14/2014, 9:41 PM, Kay C Lan wrote: Now use the Menu Builder to create an OS X Menu for you, tick the box to Set as stack Menu Bar, have it auto build the script for you, and then open if for Edit and fill it as you would for Copy, Paste, and Clear. It should look something like this: --The

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Kay C Lan
On Sun, Sep 14, 2014 at 2:22 PM, Paul Hibbert wrote: > > Cut, copy, paste & clear are available as commands in LC, so maybe > simplifying your Edit menu a little may help, for example… > OK, now I see what you are saying, if you build your Menu Bar script using the basic Cut, Copy, Paste, and Cl

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Kay C Lan
On Sun, Sep 14, 2014 at 2:22 PM, Paul Hibbert wrote: > > Tested in LC 5.5.5 + 6.6.2 & 7.0(rc1) on Mac OS X 10.9.3 > > Cutting, or pasting within a field then tabbing out does trigger a closeField > message, but "Copy" doesn't, possibly because the field didn't change even > though the field sti

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Dr. Hawkins
Let'st try that again . . . On Sun, Sep 14, 2014 at 7:45 AM, Dr. Hawkins wrote: > > > On Sat, Sep 13, 2014 at 8:26 PM, J. Landman Gay > wrote: > >> on closeField >> doStuff >> end closeField >> >> And in some other handler somewhere: >> >> put "xyz" into fld 1 >> doStuff >> > > or even > Ore

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-14 Thread Dr. Hawkins
On Sat, Sep 13, 2014 at 8:26 PM, J. Landman Gay wrote: > on closeField > doStuff > end closeField > > And in some other handler somewhere: > > put "xyz" into fld 1 > doStuff > or even -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-liveco

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Paul Hibbert
Bob, Cut, copy, paste & clear are available as commands in LC, so maybe simplifying your Edit menu a little may help, for example… --The following menuPick handler was generated by the Menu Builder (& simplified a little). on menuPick pWhich switch pWhich case "Preferences" --

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread J. Landman Gay
On 9/13/2014, 7:55 PM, Bob Sneidar wrote: As many know, creating a custom menu set on OS X (not sure about Windows) will typically add the File and Edit menus to your customer menu set. This has the net effect of*disabling* cut/copy/paste/clear. Not really. Did you use Menu Builder to set up

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Kay C Lan
4, at 17:55 , Bob Sneidar wrote: > >> Hi all. >> >> As many know, creating a custom menu set on OS X (not sure about Windows) >> will typically add the File and Edit menus to your customer menu set. This >> has the net effect of *disabling* cut/copy/paste/clear. I

Re: Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Bob Sneidar
> As many know, creating a custom menu set on OS X (not sure about Windows) > will typically add the File and Edit menus to your customer menu set. This > has the net effect of *disabling* cut/copy/paste/clear. I can live with that, > because I have scripted the necessary menus to

Scripting Cut/Copy/Paste in custom menus

2014-09-13 Thread Bob Sneidar
Hi all. As many know, creating a custom menu set on OS X (not sure about Windows) will typically add the File and Edit menus to your customer menu set. This has the net effect of *disabling* cut/copy/paste/clear. I can live with that, because I have scripted the necessary menus to mimic the

Re: Key shortcuts in popup menus?

2014-07-31 Thread Richard Gaskin
Devin Asay wrote: Can popup menus have keyboard shortcuts in them. My experimentation says "no". I hope I'm wrong. The HIGs suggest that any menu item hidden in a context menu should also be available in the main menu bar - so if done that way then you have your keyboard

Re: Key shortcuts in popup menus?

2014-07-31 Thread Dr. Hawkins
On Thu, Jul 31, 2014 at 1:19 PM, Devin Asay wrote: > Can popup menus have keyboard shortcuts in them. My experimentation says > "no". I hope I'm wrong. > I've done it on comboboxes with "on keyUp" handlers Now that I think of it, though, how are you go

Key shortcuts in popup menus?

2014-07-31 Thread Devin Asay
Can popup menus have keyboard shortcuts in them. My experimentation says "no". I hope I'm wrong. Devin Devin Asay Office of Digital Humanities Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Stack menus

2013-05-30 Thread Peter Haworth
Continuing on somewhat the same topic, is it possible to have a stack menu with cascading subitems? In other words, I'd like it to behave like an option menu with sub items so that if I click on a line that has subitems, the original line stays hilited and the subitems are listed alongside it. Pe

Re: Stack menus

2013-05-29 Thread Peter Haworth
Thanks Ken, that clarified the color stuff. I guess the fact that the armFIll and autoArm properties are not shown in the IDE Inspector for a button makes it hard to figure this out! Still puzzled by the message path though. Using your example, I had a mouseUp handler in a button in Stack2 which

Re: Stack menus

2013-05-29 Thread Ken Ray
> When the mouse rolls over one of the stack menu options, it's background > becomes a very dark blue color. Looking for guidance on how to fix that > since I've tried the obvious color settings to no avail. Maybe some other > property needs (un)setting? Peter, I think the reason you're seeting

Re: Stack menus

2013-05-29 Thread Peter Haworth
Hi Paul, I think we're talking about different things here, probably because I didn't explain very well! You're referring to menus used as menu bars, I think and yes I've seen this issues you mentioned when creating those. I remember the issue of having to use a group scri

Re: Stack menus

2013-05-28 Thread Paul Hibbert
'Hilite' colour for the MenuBar group to whatever colour you prefer, unfortunately the default is dark blue and not the user's system highlight colour. However, if you check the 'Set as stack menubar' in the menu builder AFAIK it will then use the system highlight colour an

Stack menus

2013-05-28 Thread Peter Haworth
Putting together a stack menu for the first time and finding a couple of issues. The menu object is a pulldown menu with its menuName set to the stack I want displayed. The stack menu displays fine but a couple of. When the mouse rolls over one of the stack menu options, it's background becomes

Re: Deleted menus hanging around

2013-05-15 Thread J. Landman Gay
On 5/15/13 10:55 AM, Dr. Hawkins wrote: My menus were still there, so I set them to not behave like a background with a property inspector, and deleted that group from that card from the message box. Then I deleted the card. The custom menus are still appearing in my remaining cards, though

Deleted menus hanging around

2013-05-15 Thread Dr. Hawkins
I duplicated my stack to make a license control system, and removed most of the stacks. My menus were still there, so I set them to not behave like a background with a property inspector, and deleted that group from that card from the message box. Then I deleted the card. The custom menus are

Re: Context Menus - the look of the thing

2013-05-12 Thread Graham Samuel
Yes, the button contains a classic 'menuPick' script. In a test rig, it works fine as it is. I just made the thing work. I THINK I did this by ensuring that the button was in the hierarchy of the stack that was invoking it with a 'popup' script: previously I had tried to put the button in a com

Re: Context Menus - the look of the thing

2013-05-12 Thread Peter M. Brigham
Have you checked that you are loading the contents of the button correctly first? If you don't put some text into the button, nothing will happen with the command. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On May 12, 2013, at 6:45 AM, Graham Samuel wrote: > A

Re: Context Menus - the look of the thing

2013-05-12 Thread Graham Samuel
Actually I **thought** it was solved because a test stack worked. Now in my real stack, it doesn't seem to work. Basically I have the button menu in an obscure card in a mainstack somewhere, and the mouseDowns can easily be shown to be reaching this stack and even this button, but the popup does

Re: Context Menus - the look of the thing

2013-05-11 Thread Peter M. Brigham
Here's a modular solution. Create a popup button named "contextualMenu", and put the following script into it: on menupick what set the uSelection of me to what end menupick Put the button in a library stack, and add the following to the library script: function popChoose -- paste the "con

Re: Context Menus - the look of the thing

2013-05-09 Thread Graham Samuel
Thanks Jacque for your (three) replies, Problem solved - it seems a lot clearer the way you explain it! Graham On 9 May 2013, at 22:20, J. Landman Gay wrote: > On 5/9/13 2:54 PM, Graham Samuel wrote: >> I could not work out if each field >> would need its own button > > Forgot to answer that p

Re: Context Menus - the look of the thing

2013-05-09 Thread J. Landman Gay
On 5/9/13 2:54 PM, Graham Samuel wrote: I could not work out if each field would need its own button Forgot to answer that part. You only need one button. It will pop up under the mouse whenever it's called. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Softwar

Re: Context Menus - the look of the thing

2013-05-09 Thread J. Landman Gay
On 5/9/13 2:54 PM, Graham Samuel wrote: What I want is a single 'mouseDown' handler in my mainstack that checks if the right mouse button had been pressed in an editable field and then provides Edit-menu type services to that field (the target). Could I use a button menu for that? Sure, easily.

Re: Context Menus - the look of the thing

2013-05-09 Thread Graham Samuel
Thanks I seem to have fallen foul of the description of menus in the LC docs. What I want is a single 'mouseDown' handler in my mainstack that checks if the right mouse button had been pressed in an editable field and then provides Edit-menu type services to that field (the target

Re: Context Menus - the look of the thing

2013-05-09 Thread J. Landman Gay
eveal (and therefore set) all properties of an object. Was I wrong? Use a popup menu button instead, it's all automatic then. The only reason to use a stack menu is if you want some kind of custom display, like using images instead of text lists, for instance. Stack menus are fiddly an

Re: Context Menus - the look of the thing

2013-05-09 Thread Peter M. Brigham
platform desktop app, I need to know these > for both Mac and Windows. Here the LC docs don't help AFAICS. Of course I can > do it by experiment but there are a heck of a lot of fonts. > > Can anyone who's already done it tell me exactly how to configure context > men

Context Menus - the look of the thing

2013-05-09 Thread Graham Samuel
how to configure context menus to look like native controls? TIA Graham PS - the LC docs tell one to set the individual buttons' autoArm and armBorder properties to true. I had to do this with the LC Message Box because I couldn't find these properties in any other way. I naively thoug

Re: Menus and the pointer tool on Windows

2013-04-07 Thread Graham Samuel
Thanks Mark - it does seem the easiest solution, although the other suggestions were very interesting: in fact I wonder why your solution wasn't the first one to come up. AFAICS you can't refer to the cantselect of an object from the Object Inspector in the IDE, which is perhaps why I missed it.

Re: Menus and the pointer tool on Windows

2013-04-07 Thread Mark Schonewille
Set the cantSelect of the group to true. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 7 apr. 2013 om 12:54 heeft Graham Samuel het volgende

Re: Menus and the pointer tool on Windows

2013-04-07 Thread Peter M. Brigham
On Apr 7, 2013, at 9:11 AM, Graham Samuel wrote: > Sadly, my users aren't that sophisticated. They get one chance to pick the > pointer tool, and then they expect to mess with the objects in a particular > window set aside for the purpose. The Windows ones probably have no idea > about the opti

Re: Menus and the pointer tool on Windows

2013-04-07 Thread Graham Samuel
the optionKey is "down" then > grab me > end if > end mouseDown > > putting this in, or allowing access to a 'simple' 'grab me' routine in the > object that you wish to move ... > > Dixie > >> From: livf...@mac.com >>

RE: Menus and the pointer tool on Windows

2013-04-07 Thread John Dixon
Can you just use something simple like... on mouseDown if the optionKey is "down" then grab me end if end mouseDown putting this in, or allowing access to a 'simple' 'grab me' routine in the object that you wish to move ... Dixie > From: livf...

Menus and the pointer tool on Windows

2013-04-07 Thread Graham Samuel
I guess this is another very naive question, but the answer is not easy to find in the LC documentation. If I allow the user of a Windows desktop app access to the pointer tool so that he/she can move objects around, select them etc, how do I protect the menu group at the top of the window? I m

Re: sharing menus among substacks

2013-03-02 Thread Peter Haworth
Probably the closest is to use a behavior. Set up a menu somewhere in your stack that includes all the scripts to handle its usage. Then set the behavior of of each of your menus to the ID of that button Pete lcSQL Software <http://www.lcsql.com> On Sat, Mar 2, 2013 at 5:24 PM, Dr. H

Re: sharing menus among substacks

2013-03-02 Thread J. Landman Gay
On 3/2/13 9:24 PM, Dr. Hawkins wrote: Some time ago, I went through the hassle of making menus, and copying them between my substacks. Is there *any* way to simply have a single menu set that stays in sync among substacks, rather then needing to copy to every substack every time??? Set the

  1   2   >