Grid on a form that is aligned to client
HideScrollBar set to True
What happends?
Whenever the form is resized, the grid flickers the horizontal scroll bar.
Fix
Original
procedure TNxCustomGridControl.UpdateHorzScrollBar; ... if ClientHeight > GetSystemMetrics(SM_CXHSCROLL) then ... end;
Modified
procedure TNxCustomGridControl.UpdateHorzScrollBar; ... if ClientHeight > GetSystemMetrics(SM_CXHSCROLL) and not (FHideScrollBar) then ... end;
Result
The horizontal scroll bar no longer flickers. This is due to it not being processed because it is set to hidden. Why process it if its not being displayed?
Regards,
Dan.










