Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you add existing items on a form to a groupbox?

Status
Not open for further replies.

CADTenchy

Technical User
Dec 12, 2007
237
GB
I've got a whole bunch of labels and comboboxes that I have aligned up nicely and renamed etc. Now I've decided I want to group them together on a GroupBox.
I can't seem to find a way to do so without losing all my alignments etc.
Is there a way?


Steve (Delphi 2007 & XP)
 
make the groupbox larger then the area needed to hold all the controls. then select all the controls (use shift button), cut, select groupbox and paste. that should preserve all settings

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Doh! Thanks for that Daddy. Should have thought of that.

Took me a while to cotton on why the paste was pasting them all towards the bottom of the groupbox, most on top of each other, until I realised it was copying the relative position on the main form, and pasting them the same amount from the top of the groupbox.

All sorted now, thanks.


Steve (Delphi 2007 & XP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top