Re: ScrollBar



I did set the property Height to a very hegh value. In fact the lower area
of the DBGrid is empty. Nevertheless I can't get rid of the vertcal
scrollBar (differently, the horiziontal scroll bar doesn't show as long as
the width is adjusted properly)

"Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx> ha scritto nel
messaggio news:PQ8mi.18$Mf7.16@xxxxxxxxxxxxxxx
FrancoJommi wrote:

How do I hide the vertical ScrollBar in a DBGrid ? I tried "
ShowScrollBar(MyDBGrid.Handle, SB_BOTH, false);" but it doesn't work.
I thought I could get rid of the ScrollBar simply by setting the height
of
my DBGrid to a value exceeding the max number of lines I will show, but
I it
is not as I thought. Can you help ?



Try Adjusting the ClientWidth and ClientHeigth of the DBgrid
reduce it down.
Normally the scrollbars are set to automatic if the client
is larger than the parent window the client sits in.
etc.

--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5



.



Relevant Pages

  • Re: ScrollBar
    ... I thought I could get rid of the ScrollBar simply by setting the height of ... Try Adjusting the ClientWidth and ClientHeigth of the DBgrid ... Normally the scrollbars are set to automatic if the client ...
    (comp.lang.pascal.delphi.misc)
  • Re: Fastest way to get table scheme?
    ... The other part of the problem is that it's not just *one* query ... I have a form with a dbgrid. ... by the customer through a VPN tunnel with only 64 kilobits/second. ... Everytime the vertical scrollbar is moved (or if the user presses ...
    (borland.public.delphi.database.ado)
  • Re: DBGrid und Scrollwheel
    ... Es gebt darum, einem DBGrid beizubringen, mit dem Scrollrad nicht am Ende des Viewports stehen zu bleiben. ... if Message.WheelDelta < 0 then ... wie wenn ich den Scrollbar bewege. ...
    (de.comp.lang.delphi.misc)
  • DBGrid und Scrollwheel
    ... Es gebt darum, einem DBGrid beizubringen, mit dem Scrollrad nicht am Ende des Viewports stehen zu bleiben. ... Dazu überschreibe ich in einer abgeleiteten Klasse einfach CMMouseWheel von TDBGrid: ... if Message.WheelDelta < 0 then ... wie wenn ich den Scrollbar bewege. ...
    (de.comp.lang.delphi.misc)
  • Re: Scrollbars and CListCtrl
    ... really need to suppress appearance of horizontal scroll bar. ... client rectangle and setting column width to client rectangle width. ... GetClientRect seems to return rectangle that includes scrollbar. ...
    (microsoft.public.vc.mfc)