Rainer von Saleski wrote:
>>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.

The Object Treeview, eh?

You know, I hardly ever look at that Window, as I rarely saw the 
need. And I didn't know it would do what you describe.

Thanks for the tip!

Stephen Posey
[EMAIL PROTECTED]
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

Reply via email to