04-03-2016, 12:43 PM
Is it possible to toggle checkboxes in a grid through a button?
If I put this code in the case WM_INITDIALOG code of a dialog, then the code works and renders checkboxes.
g.GridStyleSet(32)
or
g.GridStyleSet(GRID.QG_CHECKBOXES)
But if I attach the above lines to a button, then it does not work.
(grid needs some kind of refreshing/reloading?)
Is it possible?
If I put this code in the case WM_INITDIALOG code of a dialog, then the code works and renders checkboxes.
g.GridStyleSet(32)
or
g.GridStyleSet(GRID.QG_CHECKBOXES)
But if I attach the above lines to a button, then it does not work.
(grid needs some kind of refreshing/reloading?)
Is it possible?