John Dammeyer wrote: > Hi Eddie, > > That brings up an interesting question. > > If I design the form and place a Tpanel or Group Box, and then place Tedit > and Tlabel objects on the Group box they stay on top and get dragged around > with the Tpanel or Group Box to whereever I place it on the form. > > But if I put down a group box later, because I've decided I'd like to > organize a number of fields, I can send the Group Box or Tpanel to the back > but the Tlabels stay covered and the Tedit does go on top but they don't > belong to the Group Box. Dragging the Group box to another spot on the form > leaves the fields behind. > > How do I change the Tedit and Tlabel objects so they 'belong' to the group > box?
The issue is Window parentage, this determines which window is responsible for displaying any "contained" controls (called its "Children" or "Child Controls"). In order for the GroupBox to know it's supposed to serve as the Parent for these controls, they have to be inserted into the GroupBox in the form designer. If you already have controls that you want to keep, the simplest thing to do is: 1. Select the controls in question. 2. Cut them to the clipboard. 3. Select the parent control (in your case the GroupBox). 4. Paste the controls back in. HTH Stephen Posey [EMAIL PROTECTED] _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

