TopStack focus issue

Graham Samuel livfoss at mac.com
Sat Dec 6 18:00:21 EST 2014


Thanks to Peter and Jacque for these suggestions. Sadly, neither of them worked. Neither did ‘click at the loc of this cd’ or similar statements. The only thing that works so far is a real mouse click in the body of the mainstack window or on its title bar. After that is done and focus has once reached the mainstack, it doesn’t matter if the palette or the mainstack has the focus, the menu (which is a group on the first card of the mainstack) works anyway. In the initial state that I’ve described, the menu is visible and the pulldown action works, but none of the menu items do anything, not even ‘quit’. I think I’m looking at an engine bug here, but as usual it will be a big struggle to isolate it.

Still trying to find a cause and a workaround.

Graham

> On 6 Dec 2014, at 13:57, Peter M. Brigham <pmbrig at gmail.com> wrote:
> 
>> […]
> 
> Don't know how or why this is happening, but here's one thing to try. After the window is opened, lock the screen, select after the text of a field in the topstack, then select empty.

> On 6 Dec 2014, at 15:29, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> 
> If the palette is the last stack to open, it may be the defaultstack even though it isn't the topstack. So after the opening sequence completes, try adding a command to set the defaultstack to the mainstack.
> 
> 
> On December 6, 2014 6:44:15 AM CST, Graham Samuel <livfoss at mac.com> wrote:
>> I have an app where after some preliminary actions, an ‘editable
>> window’ (i.e. a normal window) is shown with a palette. When the app
>> reaches this stage, for some reason the main (top) stack - i’ve checked
>> that it really is the topStack - doesn’t have the focus and its menus
>> don’t work. I have to click on the window for focus to return to the
>> stack. This is happening on LC7 rc3 on a Mac with Yosemite, and I am
>> pretty sure it’s happening on earlier versions of Mac OSX.
>> 
>> Can anyone explain this, and can anyone give me a cast-iron workaround
>> that will make the mainstack active as soon as it becomes visible?
>> 
>> TIA
>> 
>> Graham
>> 




More information about the use-livecode mailing list