For the second question - technically you cannot do this. But you can hack
around it.  Here is one possible solution.

var
  OldParent :TWinControl;  //maybe better if you make this global so you can
rivert later.
begin
  OldParent:= GroupBox1.Parent;
  GroupBox1.Parent:= OldParent.Parent;
  GroupBox1.Left:= GroupBox1.Left + OldParent.Left;
  GroupBox1.Top:=  GroupBox1.Top + OldParent.Top;
  GroupBox1.Enabled:= not OldParent.Enabled;
end;

Cheers
al.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to