For our dbgrid, we want the scroll bars to be permanently hidden. Since TDBGrid does not have the "scrollbars" property, we use:
ShowScrollBar(DBGrid1.Handle, SB_VERT, False); ShowScrollBar(DBGrid1.Handle, SB_HORZ, False);
However, when you resize the window (and the panel containing dbgrid), for the second scrollbars appear and become hidden again only after reminding the two above methods.
The solution is to call these methods in DrawColumnCell, but this causes the dbgrid to flicker, even if DoubleBuffered is set to true.
Is there a way to hide scrollbars forever?
Thanks in advance!
delphi scrollbar c ++ builder dbgrid c ++ builder-xe
user729103
source share