datagrid checkbox for hiliting lines

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rinzwind
Posts: 135
Joined: Tue May 01, 2012 10:44 am

datagrid checkbox for hiliting lines

Post by rinzwind » Tue May 24, 2016 6:39 pm

Is it possible to let a checkbox in a column reflect the selected status of a row?
In a way to give another way to select multiple rows (instead of holding CTRL and clicking)...
I have a checkbox in a column, but the line selection is already reset when code in the mouseUp event executes.

rinzwind
Posts: 135
Joined: Tue May 01, 2012 10:44 am

Re: datagrid checkbox for hiliting lines

Post by rinzwind » Wed May 25, 2016 9:33 am

Ah setting auto hilite of the datagrid to false does wonders, but you will loose default click/ctrl/shift functionality (which the checkboxes replaces). Checkboxes are more user friendly. Would be nice if there was an option to use both options.

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: datagrid checkbox for hiliting lines

Post by Mikey » Wed May 25, 2016 2:20 pm

What I have done, which I think is even easier, is added an extra text column, called "X" or "Selected", or whatever you like. Then, when the user selects the row, I toggle the value of that cell to either "X" or empty. I like the look better than that of a checkbox.

Post Reply