BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Invisible Panels in Delphi 7

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Matthew Marsh
Guest





PostPosted: Wed May 19, 2004 7:12 pm    Post subject: Re: Invisible Panels in Delphi 7 Reply with 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

Quote:

Does the 7.1 patch fix this bug?

comments?





Back to top
Bernhard Geyer
Guest





PostPosted: Wed May 19, 2004 7:28 pm    Post subject: Re: Invisible Panels in Delphi 7 Reply with quote



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





PostPosted: Wed May 19, 2004 9:26 pm    Post subject: Re: Invisible Panels in Delphi 7 Reply with quote



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





PostPosted: Mon May 24, 2004 3:56 pm    Post subject: Re: Invisible Panels in Delphi 7 Reply with quote

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





PostPosted: Tue May 25, 2004 8:35 am    Post subject: Re: Invisible Panels in Delphi 7 Reply with quote

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





PostPosted: Wed May 26, 2004 4:08 pm    Post subject: Re: Invisible Panels in Delphi 7 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.