Problem transferring focus to another object

Terry Judd tsj at unimelb.edu.au
Tue Feb 15 14:30:59 EST 2011


On 16/02/11 5:05 AM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:

> On 2/14/11 7:24 PM, Terry Judd wrote:
>> Hi there - I¹m trying to build a Œfake¹ optionmenu control where the menu is
>> a list field object that is popped up over the control. I have a mouseMove
>> handler in the field to set the hilitedLines of the field and this all works
>> well provided the user clicks the control to popup the menu (field) and
>> releases the mouse before selecting an option. However, if the mouse is held
>> down then the focus stays with the control and there doesn¹t seem to be any
>> way to hand it over to the menu (field).
> 
> Take a look at the "focus" command in the dictionary, it sounds like
> what you need.

Thanks Jacque - problem is that I'm using a list field for my 'menu' and
focus doesn't work with fields with their traversalOn set to false.

Regards,

Terry...

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne






More information about the use-livecode mailing list