Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TLabels showing through TPanel ????


This question is answered.


Permlink Replies: 2 - Last Post: Oct 13, 2015 11:21 PM Last Post By: Martin van der ...
John MacDonald

Posts: 179
Registered: 3/22/98
TLabels showing through TPanel ????  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2015 5:17 PM
Hello everyone:

I have a TPanel that is meant to cover part of a form and temporarily block out part of the form under.
This worked before, but, now I'm noticing that the labels show through the panel. Can someone let me know what is happening?

I have ran into this issue in the past and I think I can dump the old labels and put in static text. I would just like to know what is going on.

Thanks a bunch

--
JMAC out
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: TLabels showing through TPanel ????  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2015 5:38 PM   in response to: John MacDonald in response to: John MacDonald
John wrote:

I have a TPanel that is meant to cover part of a form and temporarily
block out part of the form under. This worked before, but, now I'm
noticing that the labels show through the panel. Can someone let me
know what is happening?

That should be physically impossible. TLabel is a TGraphicControl descendant,
it has no HWND of its own. It can only draw on top of its own Parent, not
on top of other controls that are on top of its Parent. Can you show a screenshot
of this in action?

--
Remy Lebeau (TeamB)
Martin van der ...

Posts: 57
Registered: 7/14/02
Re: TLabels showing through TPanel ????
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2015 11:21 PM   in response to: John MacDonald in response to: John MacDonald
John MacDonald wrote:
Hello everyone:

I have a TPanel that is meant to cover part of a form and temporarily block out part of the form under.
This worked before, but, now I'm noticing that the labels show through the panel. Can someone let me know what is happening?

I have ran into this issue in the past and I think I can dump the old labels and put in static text. I would just like to know what is going on.

Thanks a bunch

--
JMAC out

This can happen when ParentBackground of the TPanel is set to true, which is the default setting. Setting it to false should fix it.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02