Link to home
Start Free TrialLog in
Avatar of shawn857
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.
ASKER CERTIFIED SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shawn857
shawn857

ASKER

My goodness that worked! That is a relief. Thank you Geert.

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
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
OK, I can live with that!

Thanks!
    Shawn
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.
That's good to hear.... I guess I got lucky!