Swipe gesture script on datagrid

Mark Smith marksmithhfx at gmail.com
Tue Jan 19 11:21:48 EST 2021


Or “RowRightSwipeControlClicked” in your case. It depends on how you invoke the action control.

> On Jan 19, 2021, at 4:18 PM, Mark Smith <marksmithhfx at gmail.com> wrote:
> 
> Yes, that’s how it’s done. And then in your row behavior script respond to
> on EditModeActionControlClicked pTarget
> 
> with pTarget containing the short name of your action control button.
> 
> 
> 
>> On Jan 19, 2021, at 7:37 AM, Phil Davis via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>> wrote:
>> 
>> Would the dgProp["left swipe control"] of grp "yourDG" help? At least that might let you change the default trash can to some other control (maybe to a group that contains your 2 buttons?). If you get that far, maybe the message path of your 2 buttons would go through the DG template row behavior script. I don't know for sure but that would be my first guess.
>> 
>> Phil Davis
>> 
>> 
>> On 1/18/21 10:28 PM, Ludovic THEBAULT via use-livecode wrote:
>>> Hello,
>>> 
>>> How edit the script of a swipe gesture control ?
>>> I want to add two buttons to the right swipe control, it’s ok for appearance but I cannot find where to edit the script.
>>> 
>>> Is it even possible?
>>> 
>>> PS : i have datagrid helper plugin 2.5.
>>> 
>>> Thanks !
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com <mailto: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
>> 503-307-4363
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com <mailto: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
> 




More information about the use-livecode mailing list