When having a Tlabel and a TPanel on a Tscroolbox the label disapears when app. is running in Windows XP look

I have an application with a Scroolbox containing a Label and a Panel.

When this application is running with Windows XP in "Windows XP" theme the label text disapears.

When this application is running with Windows XP in "Windows Classic" theme the label text is showen correctly.

I'm using D7 professional with the latest updates (done today).

Please help

/Flemming
dimaticAsked:
Who is Participating?
 
carlp42Connect With a Mentor Commented:
You can try the TStaticText component too (on the Additional tab).  It's just like TLabel but actually uses the underlying windows control rather than being a VCL made one.  Might help.
0
 
BinskyCommented:
This could be a load of hogwash, but I have had a similarproblem a while back. I was changing the text property of some labels, while in a loop. The labels didn't update, and sometimes disappeared alltogether.

Using :
application.processmessages

or maybe call  :
yourlabel.repaint

Every once in a while, this may solve your problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.