Hello Boki,
As per my needs, the checkboxes shown at runtime for a TNxCheckboxColumn column are too small, how to toggle a checkbox even if the mouse is clicking on the blank area of a cell (outside of the checkbox control)?
Thanks.
Posted 16 August 2017 - 02:28 PM
Hello Boki,
As per my needs, the checkboxes shown at runtime for a TNxCheckboxColumn column are too small, how to toggle a checkbox even if the mouse is clicking on the blank area of a cell (outside of the checkbox control)?
Thanks.
Posted 18 August 2017 - 08:07 AM
Any tips boki? Any suggestion would be helpful, thanks!
Posted 18 August 2017 - 09:56 PM
Posted 19 August 2017 - 05:59 AM
@Boki,
Thanks and understand your suggestion.
But since I need to apply some business logic with the edit events, I'd prefer another way - to make the checkboxes larger by modifying the TNextGrid source.
So I changed the value of the szCheckBox constant in nxDisplays.pas from 11 to 20, but it didn't work.
Am I modifying the wrong thing? Thanks.
Posted 19 August 2017 - 11:02 AM
Posted 19 August 2017 - 12:06 PM
Tried that just now, still doesn't work, any tips?
const //szCheckBox = 11; szCheckBox = 24; // edwin //szCheckBoxThemed = 13; szCheckBoxThemed = 24; // edwin
Posted 19 August 2017 - 12:14 PM
function TCheckBoxColumnPlay.GetCheckBoxRect: TRect;Check this lines:
if IsStyled then CheckWidth := 16 else if IsThemed then CheckWidth := 13 else CheckWidth := 11;
Posted 21 August 2017 - 07:29 AM
@Boki,
Changed as following, still not working...
// edwin // if IsStyled then CheckWidth := 16 // else if IsThemed then CheckWidth := 13 // else CheckWidth := 11; if IsStyled then CheckWidth := szCheckBox else if IsThemed then CheckWidth := szCheckBoxThemed else CheckWidth := szCheckBox; // end edwin
Posted 21 August 2017 - 05:28 PM
0 members, 0 guests, 0 anonymous users