Grid Control: getting original checkbox state
Ok, another question about Grid Control, & checkboxes:
When I try to get the state of a checkbox in a column/row, I can get what is
probably a useful result, but *not* from the original state of the checkbox.
When the checkbox is first displayed, it shows as checked, and if I use the
following code to interrogate its state, it returns a *null sequence*, which
tells me nothing; however, if I click on the checkbox to change it to
un-checked, the same code below will then report "0", & if I then re-click
on the checkbox to set it to checked, the code below returns a "1", both of
which are correct & useful, but why doesn't the code work on the original
checked state?
*Maybe* it's from how I defined the checkbox in "newRow", with an empty
sequence?
newRow = {fName,"","",dirName }
If so, how should I have defined the checkbox otherwise?
<code snippet to get checkbox state:>
procedure PushButton3_onClick (integer self, integer event, sequence params)
--params is ()
object result
result = EGW_GetDataCellValue ( aGrid, 1, 2 ) -- using 1 for first row, 2
for first column with a checkbox
puts(1, sprint(result))
end procedure
setHandler( PushButton3, w32HClick, routine_id("PushButton3_onClick"))
Dan Moyer
|
Not Categorized, Please Help
|
|