Re: Enabling/Disabling MenuItems in LC

2015-04-27 Thread Terence Heaford
No need to answer, got it now. Thanks Terry > On 28 Apr 2015, at 07:42, Terence Heaford wrote: > > So, this begs the question. Trying to think of a situation….. > > When is there a need to use the menubar script? > > on mouseDown tMenu > if tMenu = 1 then > — your code > end if > e

Re: Enabling/Disabling MenuItems in LC

2015-04-27 Thread Terence Heaford
> On 28 Apr 2015, at 02:26, J. Landman Gay wrote: > > LC menus are just buttons in a group and they follow the normal message > hierarchy. So the menuPick in the button will trigger first, and if not > handled, is passed to the menu group. I was trying to use LC’s Menu system in the way Apple

Re: Enabling/Disabling MenuItems in LC

2015-04-27 Thread J. Landman Gay
On 4/27/2015 3:43 PM, Terence Heaford wrote: When selecting menuItem 3 of menu "File" — close I call a tidy up routine called “closeDB” which closes the DB and carries out some other tidying up including setting the uDBOpen of stack “TH” to false. This is called from the “File” menu script me

Re: Enabling/Disabling MenuItems in LC

2015-04-27 Thread Terence Heaford
> On 27 Apr 2015, at 18:58, J. Landman Gay wrote: > > If you haven't solved this yet, can you post the text of those menu buttons? > There may be a misconfiguration somewhere. Thank you for your interest. When selecting menuItem 3 of menu "File" — close I call a tidy up routine called “clo

Re: Enabling/Disabling MenuItems in LC

2015-04-27 Thread J. Landman Gay
On 4/26/2015 1:23 PM, Terence Heaford wrote: The shortcut keys I have set do not work for these items. menuItem 3 of menu "File" — close menuItem 1 of menu "Actions" — Categories menuItem 2 of menu "Actions" — Find If you haven't solved this yet, can you post the text of those menu

Enabling/Disabling MenuItems in LC

2015-04-26 Thread Terence Heaford
I have implemented the following script in the menubar to enable/disable menuItems. Is this the normal way of doing this or is there another way as I am getting strange behaviour. The shortcut keys I have set do not work for these items. menuItem 3 of menu "File" — close menuItem 1 of menu "Ac