RE: Grid Control: simulated check-box disable
- Posted by Phil Russell <pg_russell at lineone.net> Feb 27, 2003
- 419 views
Dan, No - you're quite right. The space bar msg is not passed on via EGW_CELLEDIT for checkbox columns. Guess I was happy that the demo seemed to work and didn't look too closely! Anyway, I should have an update soon which will allow per-cell disabling in a more straightforward way. Sorry for not replying sooner - I 've been away for the last few days. Regards, Phil Dan Moyer wrote: > Phil, > > It seems the section in your demo of simulated check-box disabling which > relates to the space bar is not ever entered, & the demo works fine > without > it as far as I can see. Am I missing something? > > Dan Moyer > > -- If checkbox armed by pressing space bar then save state > elsif msg = EGW_CELLEDIT then > > puts(1,"pressed spacebar?\n") -- Dan added to test it: never shows up > > -- Save checkbox state on spacebar down > if cell[1]>0 and (cell[2] = colCB1 or cell[2] = colCB2) -- is a checkbox > column > and wParam = VK_SPACE then > last_checkbox_state = EGW_GetDataCellValue ( aGrid, cell[1], cell[2] ) > end if > >