Problem transferring focus to another object
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
>> 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)
>> 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.
> -- Peter
> Peter M. Brigham
> pmbrig at gmail.com
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne
More information about the use-livecode