How to develop and deploy with ListMagic within the GLX application framework?

Peter Haworth pete at mollysrevenge.com
Mon Mar 7 11:45:28 EST 2011


No problem Keith.  Also saw your other post about a button in the datagrid. Once again, it might be worth considering a combination of the dghilitedline and one button outside the datagrid that would launch your processing of the currently selected datagrid row.  I have some code I use that floats a button next to whatever row the user clicks on so it's right next to their selected line, but a static button works too..

Hope that helps.  

Pete Haworth


On Mar 7, 2011, at 8:32 AM, Keith Clarke wrote:

> Hi Peter,
> Thanks for the tip and for reframing the problem to provide mutually exclusive row selection, without the complexity of dealing with the checkbox. Nice! :-)
> Best,
> Keith..
> 
> On 7 Mar 2011, at 16:22, Peter Haworth wrote:
> 
>> Hi Keith,
>> You might want to consider another approach than checkboxes in this situation, depending on what you want to do with the checked row.  If you just want to carry out some processing on the data in the selected row, you can use the dghilitedline property of the datagrid to find out which row the user has clicked on and take whatever action you want.  Make sure the multiple lines property  for the datagrid is not selected and use the selectionChanged event to check the dghilitedline.  If there are multiple things you might want to do with the selected row, use a popup menu activated by a right click (more complicated).
>> 
>> Pete Haworth
>> 
>> On Mar 7, 2011, at 2:55 AM, Keith Clarke wrote:
>> 
>>> BTW For this list, I want these Row-Select checkboxes to be mutually-exclusive - so that if one is set to true, those in all other rows are cleared. Where should I place such a script - against the _ColumnData_ object or the data grid group level?
>> 
>> 
>> _______________________________________________
>> 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
> 





More information about the use-livecode mailing list