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 if you lock menus before changing them? > Manipulat

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 expensi

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
Richard, Thanks for the timing information. It was reassuring to see changing the text was faster. In dealing with bug http://quality.livecode.com/show_bug.cgi?id=19097 I have been looking to clean up menu code and was looking for best practice feedback exactly like yours. My own inclination has b

Re: Best practice for menus...

2017-01-17 Thread Richard Gaskin via use-livecode
Paul Dupuis 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: > > enable menuItem 2 of menu "Edit"

Best practice for menus...

2017-01-17 Thread Paul Dupuis via use-livecode
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: enable menuItem 2 of menu "Edit" disable menuItem 3 or menu "File