[DUG] BringToFront at Design time
Trevor Jones
trevorj at ihug.co.nz
Fri Jan 4 14:35:59 NZDT 2008
Ross,
Each page in the page control is a TTabsheet, and each TTabsheet has a
TabVisible property.
You could also try creating Frames that end up displaying what you want,
making the need to be able to fiddle with each of the pages unnecessary in
the IDE. Deal with each frame individually and plop them into the
PageControl at runtime.
You can also make your buttons + panels thing work in the IDE if you
create, compile and install a new component which just wraps them all
together.
Having said that, are you sure that this is really what you want to do?
If your PageControl is getting unwieldy in the IDE, how understandable is
it going to be for your poor confused users?
Trevor
_____
From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Friday, 4 January 2008 1:43 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] BringToFront at Design time
I thought of that too but when I looked for a property to make the tabs
invisible, I couldn't find one. I'm using D7. I'm probably missing
something obvious. Can you please enlighten me.
Thanks,
Ross.
From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Myles Penlington
Sent: Friday, 4 January 2008 12:27 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] BringToFront at Design time
Nope.
You can keep the page control (or use the windows 3.1 notebook control) .
Just make the tabs invisible (it is a property), and then use whatever
control you like to select the page to display. Then it works at design and
runtime.
Myles.
From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Ross Levis
Sent: Friday, 4 January 2008 12:19 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] BringToFront at Design time
A PageControl I've been using to set configuration settings has too many
tabs on it now. I've decided to change to a list of buttons down the left
side and a series of TPanels on the right occupying the same space.
Clicking a button sets one panel to Visible and the previous one invisible.
This works well at run time but not in the IDE. I would like the same to
occur at design time so I can access each panel easily like I could clicking
a tab in a PageControl.
Is this possible? I tried using BringToFront in the code but that didn't
help.
Thanks,
Ross.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080104/49d48dd0/attachment-0001.html
More information about the Delphi
mailing list