 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rick B. Guest
|
Posted: Fri Jan 09, 2004 9:11 pm Post subject: PageControl |
|
|
I am using a PageControl component in my latest Delphi 7 app, and found that
when I set the form that the control is on's color, the PageControl takes on
the same color. This is not what I want, and wonder if there is any way to
make the PageControl one color, and the underlying form a different color.
Rick B.
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Sat Jan 10, 2004 10:59 am Post subject: Re: PageControl |
|
|
In article <3fff18ef (AT) newsgroups (DOT) borland.com>, Rick B. wrote:
| Quote: | I am using a PageControl component in my latest Delphi 7 app, and found that
when I set the form that the control is on's color, the PageControl takes on
the same color. This is not what I want, and wonder if there is any way to
make the PageControl one color, and the underlying form a different color.
|
The easiest way is in fact to drop the pagecontrol on a panel (with no
bevels), set the panels color to what you want for the pagecontrol, and align
the pagecontrol to alClient. The panel is completely covered this way, so you
don't see it, but its color determines how the pagecontrol looks like.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
| Back to top |
|
 |
Rick B. Guest
|
Posted: Sat Jan 10, 2004 6:40 pm Post subject: Re: PageControl |
|
|
Peter,
I tried that, but the form color still comes through to the PageControl.
Are there any property settings for the panel that need to be changed,
outside of the bevel settings?
Rick B.
"Peter Below (TeamB)" <100113.1101 (AT) compuXXserve (DOT) com> wrote
| Quote: | In article <3fff18ef (AT) newsgroups (DOT) borland.com>, Rick B. wrote:
I am using a PageControl component in my latest Delphi 7 app, and found
that
when I set the form that the control is on's color, the PageControl
takes on
the same color. This is not what I want, and wonder if there is any way
to
make the PageControl one color, and the underlying form a different
color.
The easiest way is in fact to drop the pagecontrol on a panel (with no
bevels), set the panels color to what you want for the pagecontrol, and
align
the pagecontrol to alClient. The panel is completely covered this way, so
you
don't see it, but its color determines how the pagecontrol looks like.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
|
| Back to top |
|
 |
Rick B. Guest
|
Posted: Sat Jan 10, 2004 8:03 pm Post subject: Re: PageControl |
|
|
I also tried using panels all aroung the page control, and this worked if I
set alignment for the panels for top, left, right, and bottom respectively.
However, when the app runs, the main form border with the title and border
icons disappears, leaving nothing but the main window with the page control
and panels showing. I even changed the panel alignments back to alNone, and
the problem still persists. Any ideas?
Rick B.
| Quote: | "Peter Below (TeamB)" <100113.1101 (AT) compuXXserve (DOT) com> wrote in message
news:VA.0000a85f.007b486b (AT) nomail (DOT) please...
In article <3fff18ef (AT) newsgroups (DOT) borland.com>, Rick B. wrote:
I am using a PageControl component in my latest Delphi 7 app, and
found
that
when I set the form that the control is on's color, the PageControl
takes on
the same color. This is not what I want, and wonder if there is any
way
to
make the PageControl one color, and the underlying form a different
color.
The easiest way is in fact to drop the pagecontrol on a panel (with no
bevels), set the panels color to what you want for the pagecontrol, and
align
the pagecontrol to alClient. The panel is completely covered this way,
so
you
don't see it, but its color determines how the pagecontrol looks like.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Sun Jan 11, 2004 10:33 am Post subject: Re: PageControl |
|
|
In article <4000470b$1 (AT) newsgroups (DOT) borland.com>, Rick B. wrote:
| Quote: | I tried that, but the form color still comes through to the PageControl.
Are there any property settings for the panel that need to be changed,
outside of the bevel settings?
|
If you are running XP you have to set the panels ParentColor and
ParentBackground properties to false. Not that there is a bug in ParentColor,
you have to set it to false, then true, then false again to make the change
stick.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
| Back to top |
|
 |
Rick B. Guest
|
Posted: Sun Jan 11, 2004 6:38 pm Post subject: Re: PageControl |
|
|
Peter,
That did work, and now the app is behaving normally. Thanks for the info.
Rick B.
"Peter Below (TeamB)" <100113.1101 (AT) compuXXserve (DOT) com> wrote
| Quote: | In article <4000470b$1 (AT) newsgroups (DOT) borland.com>, Rick B. wrote:
I tried that, but the form color still comes through to the PageControl.
Are there any property settings for the panel that need to be changed,
outside of the bevel settings?
If you are running XP you have to set the panels ParentColor and
ParentBackground properties to false. Not that there is a bug in
ParentColor,
you have to set it to false, then true, then false again to make the
change
stick.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|