Board index » delphi » TScrollbox doesn't start in the right area

TScrollbox doesn't start in the right area

I have a scrollbox and when I open the form that it is on it scrolls down to
the first TWinControl (a grid) and so my TLabel at the top of the scrollbox
isn't displayed.  Suggestions?
 

Re:TScrollbox doesn't start in the right area


Suggestions for what?
Why is this a problem?
What do you want it to behave like?
It's scrollbox normal behaviour.

--
Robert Cerny
http://codecentral.borland.com/codecentral/ccWeb.exe/author?authorid=...

Quote
"Anthony Tanas" <ata...@nc.rr.com> wrote in message

news:_lsAa.51267$Lm2.4150603@twister.southeast.rr.com...
Quote
> I have a scrollbox and when I open the form that it is on it scrolls down
to
> the first TWinControl (a grid) and so my TLabel at the top of the
scrollbox
> isn't displayed.  Suggestions?

Re:TScrollbox doesn't start in the right area


I want my TLabel at the top of the scrollbox to be displayed.

I want the scrollbox to start scrolled all the way up.  Right now when the
form opens it's
scrolled down to the top of the first TWinControl (a grid) which hides my
TLabel which is above it.

Thanks.

Quote
"Robert Cerny" <robert.qwe.ce...@neosys.xrs.qwe.si> wrote in message

news:bavscd.2a8.1@neosys.xrs.si...
Quote
> Suggestions for what?
> Why is this a problem?
> What do you want it to behave like?
> It's scrollbox normal behaviour.

> --
> Robert Cerny
> http://codecentral.borland.com/codecentral/ccWeb.exe/author?authorid=...

> "Anthony Tanas" <ata...@nc.rr.com> wrote in message
> news:_lsAa.51267$Lm2.4150603@twister.southeast.rr.com...
> > I have a scrollbox and when I open the form that it is on it scrolls
down
> to
> > the first TWinControl (a grid) and so my TLabel at the top of the
> scrollbox
> > isn't displayed.  Suggestions?

Re:TScrollbox doesn't start in the right area


I see.
So the scrollbox is too small to display both top labels and the grid. As I
already wrote, you get perfectly normal and expected behaviour.
1. make the scrollbox big enough, or the grid smaller.
2. if the labels must be visible all time, put them above the scrollbox
3. rethink your gui requirements, maybe you don't need the scrollbox at all,
since the grid is a scrollable control.
--
Robert Cerny
http://codecentral.borland.com/codecentral/ccWeb.exe/author?authorid=...

Quote
"Anthony Tanas" <ata...@nc.rr.com> wrote in message

news:X_MAa.52315$Lm2.4327248@twister.southeast.rr.com...
Quote
> I want my TLabel at the top of the scrollbox to be displayed.

> I want the scrollbox to start scrolled all the way up.  Right now when the
> form opens it's
> scrolled down to the top of the first TWinControl (a grid) which hides my
> TLabel which is above it.

Other Threads