Problem transferring focus to another object

Terry Judd tsj at unimelb.edu.au
Tue Feb 15 13:22:44 CST 2011


On 15/02/11 11:56 PM, "Peter Brigham MD" <pmbrig at gmail.com> wrote:

> On Feb 14, 2011, at 8: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).
>> 
>> Any suggestions?
> 
> Try grouping the control and the list field and putting the mousemove
> handler into the group script?

Thanks Peter - I ended up doing this and parsing the mouse coordinates to
determine which line to hilight in the the menu field.

Terry...
> 
> -- Peter
> 
> Peter M. Brigham
> pmbrig at gmail.com
> http://home.comcast.net/~pmbrig
> 

--
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