[DUG] TPageControl Interesting Observation D2007

Steve Peacocke steve.peacocke at gmail.com
Tue Aug 28 11:46:41 NZST 2007


Searching the newsgroups and web came up with a blank on this one so I
thought I'd throw it to you people to see if any of you are having
this problem as well.

I have a TPageControl with 8 separate tabs. Three of those tabs are
made invisible on startup, to be made visible on certain conditions.

I have noted that if I compile the application with the main
(starting) tab selected, then the tab will be blank - i.e. nothing
will appear on the tab. It's like everything isset to invisible,
except that items on that tab are never invisible. When I click on
another tab and click back to the main tab, then everything appears as
it should.

However, when I compile the application with another tab selected,
then on starting, I simply change to the main tab (in code, e.g. :
pcCfg.ActivePage := tsMain), then all is displayed as it should.

Puzzling. Is this a bug? can anyone else duplicate that?

The interesting thing about it is that it ocurs in 2 of the
applications that I look after, and it has only just started occuring
recently (may be after update #2).

Steve

-- 
Steve Peacocke
http://stevepeacocke.blogspot.com/


More information about the Delphi mailing list