 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Matthew Marsh Guest
|
Posted: Wed May 19, 2004 7:12 pm Post subject: Re: Invisible Panels in Delphi 7 |
|
|
Unfortunately, no.
I modified the original source code TCustomPanel.Create in the ExtCtrls.pas
file by adding the following line at the end of the constructor-
ControlStyle := ControlStyle - [csParentBackground];
Works fine for me.
Matthew
"mrDelphi4ever" <eisoph (AT) sky3l (DOT) com> wrote
| Quote: |
Does the 7.1 patch fix this bug?
comments?
|
|
|
| Back to top |
|
 |
Bernhard Geyer Guest
|
Posted: Wed May 19, 2004 7:28 pm Post subject: Re: Invisible Panels in Delphi 7 |
|
|
mrDelphi4ever wrote:
| Quote: | Does the 7.1 patch fix this bug?
comments?
|
Does you mean the background-appearance unter XP-Themes?
If so, this is not a bug, it's a "feature" of XP-Themes.
Panels should be transparent to display the background.
You have do make your derivative of TPanel an add a property
TransparentXPThemes to control this behaviour. Also you have to
override the creation-Function fo the windows-controls.
|
|
| Back to top |
|
 |
piddie Guest
|
Posted: Wed May 19, 2004 9:26 pm Post subject: Re: Invisible Panels in Delphi 7 |
|
|
Matthew Marsh wrote:
| Quote: | Unfortunately, no.
I modified the original source code TCustomPanel.Create in the ExtCtrls.pas
file by adding the following line at the end of the constructor-
ControlStyle := ControlStyle - [csParentBackground];
Works fine for me.
Matthew
"mrDelphi4ever" <eisoph (AT) sky3l (DOT) com> wrote in message
news:40ab9d9d (AT) newsgroups (DOT) borland.com...
Does the 7.1 patch fix this bug?
comments?
|
I found it. Set ParentBackGround to true, then build all.
Set ParentBackGround to false, then build all. Now it's
solid when you run it.
piddie
|
|
| Back to top |
|
 |
Ian Boyd Guest
|
Posted: Mon May 24, 2004 3:56 pm Post subject: Re: Invisible Panels in Delphi 7 |
|
|
Wasn't the accepted fix for this to toggle the appropriate a half-dozen
times, saving in between?
Something about forcing a property to save to the DFM...
"mrDelphi4ever" <eisoph (AT) sky3l (DOT) com> wrote
| Quote: |
Does the 7.1 patch fix this bug?
comments?
|
|
|
| Back to top |
|
 |
Rolf Frei Guest
|
Posted: Tue May 25, 2004 8:35 am Post subject: Re: Invisible Panels in Delphi 7 |
|
|
You don't need to make a build all. All you need to do is to set the property to False and then immediatly back to True. Than save the form. This behaviour isnb't a bug, but a feature which is designed this way, as per standard the panales should be transparent under XP themed apps. If you don't want the panel transparent, you must say it explicitly by the above steps. This isn't very intuitive and is something irritating for anyone who doesn't know how this is correctly handled.
Rolf
"piddie" <notaname (AT) garmmine (DOT) net> schrieb im Newsbeitrag news:40abd0d3 (AT) newsgroups (DOT) borland.com...
| Quote: | Matthew Marsh wrote:
Unfortunately, no.
I modified the original source code TCustomPanel.Create in the ExtCtrls.pas
file by adding the following line at the end of the constructor-
ControlStyle := ControlStyle - [csParentBackground];
Works fine for me.
Matthew
"mrDelphi4ever" <eisoph (AT) sky3l (DOT) com> wrote in message
news:40ab9d9d (AT) newsgroups (DOT) borland.com...
Does the 7.1 patch fix this bug?
comments?
I found it. Set ParentBackGround to true, then build all.
Set ParentBackGround to false, then build all. Now it's
solid when you run it.
piddie
|
|
|
| Back to top |
|
 |
Erik F. Andersen Guest
|
Posted: Wed May 26, 2004 4:08 pm Post subject: Re: Invisible Panels in Delphi 7 |
|
|
I found it very useful to theme Delphi32.exe itself.
Regards,
Erik F. Andersen
"Rolf Frei" <rolf (AT) hms (DOT) ch> skrev i en meddelelse
news:40b30551 (AT) newsgroups (DOT) borland.com...
You don't need to make a build all. All you need to do is to set the
property to False and then immediatly back to True. Than save the form. This
behaviour isnb't a bug, but a feature which is designed this way, as per
standard the panales should be transparent under XP themed apps. If you
don't want the panel transparent, you must say it explicitly by the above
steps. This isn't very intuitive and is something irritating for anyone who
doesn't know how this is correctly handled.
Rolf
"piddie" <notaname (AT) garmmine (DOT) net> schrieb im Newsbeitrag
news:40abd0d3 (AT) newsgroups (DOT) borland.com...
| Quote: | Matthew Marsh wrote:
Unfortunately, no.
I modified the original source code TCustomPanel.Create in the
ExtCtrls.pas
file by adding the following line at the end of the constructor-
ControlStyle := ControlStyle - [csParentBackground];
Works fine for me.
Matthew
"mrDelphi4ever" <eisoph (AT) sky3l (DOT) com> wrote in message
news:40ab9d9d (AT) newsgroups (DOT) borland.com...
Does the 7.1 patch fix this bug?
comments?
I found it. Set ParentBackGround to true, then build all.
Set ParentBackGround to false, then build all. Now it's
solid when you run it.
piddie
|
|
|
| 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
|
|