Re: Grid Control: getting original checkbox state
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Feb 10, 2003
- 481 views
Double sigh & nevermind! I gotta think first before I ask questions! Seems if I put a "1" in my newRow sequence where checkboxes go, it then allows correct interrogation of original checkbox state: newRow = {fName,1,1,dirName } Should'a tried *something* before asking, since I *did* have a clue. Dan Moyer ----- Original Message ----- From: "Dan Moyer" <DANIELMOYER at prodigy.net> To: "EUforum" <EUforum at topica.com> Sent: Sunday, February 09, 2003 9:01 PM Subject: 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 > > > > TOPICA - Start your own email discussion group. FREE! >