| Subject: | ScrollBox without ScrollBars |
| Posted by: | Michael Fritz (spam_athome@yahoo.de) |
| Date: | Fri, 2 Nov 2007 |
Hi,
I've got a form with a TPanel on it. I dynamically create a TScrollBox and
add a TGridPanel to it:
type
TSelectionPanel = class(TScrollBox)
private
FGridPanel : TGridPanel;
[..]
FGridPanel := TGridPanel.Create(Self);
FGridPanel.Align := alClient;
FGridPanel.Parent := Self;
Afterwards I'm adding some rows to this grid panel and expected to get
scrollbars when the space for this grid is not sufficient inside the
scrollbox. At least some of the bottom rows are cut off and no scrollbars
at all.
The coding for creating the TSelectionPanel:
FSelScreen := TSelectionPanel.Create(Panel1);
FSelScreen.Parent := Panel1;
FSelScreen.Align := alClient;
Did I miss sthg important here? Using Turbo Delphi Pro btw.
--
cu,
Michael