[DUG] TPageControl Interesting Observation D2007

Todd Martin toddm at kol.co.nz
Tue Aug 28 15:00:18 NZST 2007


Why not just use a TTabControl and instantiate each page as a frame embedded 
in a panel, when the user changes tab?

Todd.

On Tue, 28 Aug 2007 11:46, Steve Peacocke wrote:
> 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


More information about the Delphi mailing list