> John Dammeyer wrote:
>
>> 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]
>

Another (perhaps easier) solution is to move the control under the desired 
parent in the Object TreeView.  Simply drag the WhateverBtn to PanelX (for 
example).  You don't have to move anything in the form; Delphi will adjust 
Top and Left to reflect the new position relative to the new parent object. 
And the object will take its proper alphabetical place under the new parent.

Rainer

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to