Popup button and DataGrid

Phil Davis revdev at pdslabs.net
Fri Jan 21 15:00:51 CST 2011


Try using a mouseUp handler - maybe that will give the line time to hilite first.
Phil


On 1/21/11 12:55 PM, Paul Looney wrote:
> Sorry zryip,
> That did not work, though it looks like it should.
> Still the same problem: the popup appears before the clicked line is hilited.
> Thanks for the suggestion.
> Paul Looney
>
> On Jan 21, 2011, at 12:22 PM, zryip theSlug wrote:
>
>> On Fri, Jan 21, 2011 at 9:05 PM, Paul Looney <support at ahsomme.com> wrote:
>>> Help please.
>>> I am trying to use a popup button with a datagrid.
>>>
>>> I have code, in the dg, that looks like this:
>>>
>>> on mouseDown
>>>     popup btn "Selected Orders Popup"
>>> end mouseDown
>>>
>>> The popup works fine but the selected line in the dg is not hilited until
>>> after something is selected in the popup. So, to the user, it looks like the
>>> popup refers to the previously selected line.
>>> I will probably solve it but figured someone on the list already has the
>>> solution.
>>>
>>> Thanks in advance.
>>
>> Paul,
>>
>> on mouseDown
>>    popup btn "Selected Orders Popup"
>>    pass mouseDown
>> end mouseDown
>>
>>
>> Best regards,
>> -- 
>> -Zryip TheSlug- wish you the best! 8)
>> http://www.aslugontheroad.co.cc
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the use-livecode mailing list