Would it be possible to reuse the same components on more than one page of a TPageControl somehow? (And no, a TTabControl is not what I'm looking for.)
Mason
Would it be possible to reuse the same components on more than one page of a TPageControl somehow? (And no, a TTabControl is not what I'm looking for.)
Mason
When a page becomes active, change the control's parenty to point to the active tab.
Not sure it will work, but thats the theory anyway.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Ooo! That simple? I'll have to test it out. If that would work, it would really simplify things for me.
On a related note, is it possible to treat separate pages of a TPageControl as individual forms, each with their own unit file? Because a TPageControl with a lot of tabs can require a whole lot of code and a massive form declaration, and I like to keep my units small if possible.
If you made a component for each page inheriting from tpagecontrl then you could. Personally I think this is far too much work
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
Or put a frame on each page...Originally Posted by masonwheeler
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
A TFrame turned out to be exactly what I was looking for. Thanks, Andreas! I knew there was a way to do it--I've played around with DeDe enough to know that certain programs were using this trick--but I didn't know how they did it.
Bookmarks