Tables and Selecting
Posted: Fri Aug 07, 2009 12:06 pm
by ConvertFromOldNGs
by MichaelHill >> Mon, 25 Mar 2002 4:06:51 GMT
Afternoon All,
Is there anyway of changing the way a row looks when it is selected in a row in a table. At present it shows up as a solid blue line.
Cheers
Michael Hill
Gallagher Group Ltd
Re: Tables and Selecting
Posted: Fri Aug 07, 2009 12:06 pm
by ConvertFromOldNGs
by cdshearer >> Mon, 25 Mar 2002 4:32:31 GMT
Hi Michael
The answer to this really depends on what version of JADE you're using. From memory, I think it was version 5.1 that introduced the selectMode property.
With the selectMode property on the Table control, you can change it to SelectMode_None. Then when the user clicks on a cell in the table, no selection is shown. You can then trap the click event, or whatever, and highlight the row, column, or cell in whatever colour you want, by changing the backColor property. You'll need to keep track of the previous selection so that you can "unselect" it when the user selects the new row/column/cell, etc.
Having said this, it would be nice if there was a selectColor property on the Table control to give us more control over this behaviour.
Hope this helps...
Craig Shearer