shawn857
asked on
Moving (cutting/pasting) controls in a TTabbedNotebook...
Dear Experts, I have an old Delphi project that still uses the old TTabbedNotebook control. I'm trying to move some simple controls (Edit boxes, labels, etc) that are all grouped together on a TPanel, from one tab to another tab, but when I try to paste them into my desired destination tab, they mysteriously get plunked down into another tab in my TabbedNotebook. Just won't go in the tab I try to paste them to... I don't quite understand what's going on there... how can I move these controls over to the tab I wish to?
(I know TTabbedNotebook is pretty much obsolete, but I'd sooner not rip my program apart and change it to a PageControl...)
Thanks
Shawn
P.S: I'm currently using Delphi 7.
(I know TTabbedNotebook is pretty much obsolete, but I'd sooner not rip my program apart and change it to a PageControl...)
Thanks
Shawn
P.S: I'm currently using Delphi 7.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The tpanel should just fill the tab of the notebook
Inside the panel, the controls should act the same as before
It's a bug... maybe by editing the dfm and removing the panel you'll get what you want,
But the bug will then return
Inside the panel, the controls should act the same as before
It's a bug... maybe by editing the dfm and removing the panel you'll get what you want,
But the bug will then return
ASKER
OK, I can live with that!
Thanks!
Shawn
Thanks!
Shawn
ASKER
Excellent. Thanks very much Geert!
your welcome
it's amazing how long Delphi 7 is surviving
but not unexpected as it's the best version of Delphi ever built.
it's amazing how long Delphi 7 is surviving
but not unexpected as it's the best version of Delphi ever built.
ASKER
That's good to hear.... I guess I got lucky!
ASKER
Geert, now that I have copied over my controls, I assume it is safe to change the destination TPanel align property back to "None" so that I can resize it to what I wish?
Thanks
Shawn