Witam wszystkich.
Znalazłem takie rozwiązanie aby usunąć pionowy scrollbar w DBGridzie:
// 2840:Removing the vertical scrollbar from a TDBGrid
// In order to remove the vertical scrollbar from a TDBGrid component,
// you must override its Paint method. Inside the Paint method you
// must call the SetScrollRange API procedure to set the min and max
// scroll values to zero (this disables the scrollbar), and then call
// the inherited Paint.
type
TNoVertScrollDBGrid = class(TDBGrid)
protected
procedure Paint; override;
end;
implementation
procedure TNoVertScrollDBGrid.Paint;
begin
SetScrollRange(Self.Handle, SB_VERT, 0, 0, False);
inherited Paint;
end;
i wszystko jest pięknie, pionowy scrollbar jest usunięty, ale w momencie przewijania rekordów scrollbar pokazuje się na ułamek sekundy i znika, jest to bardzo nieciekawy efekt :(
Czy ktoś wie jak się tego pozbyć tego efektu?