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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parent property

Status
Not open for further replies.

zvikorn

Programmer
Aug 6, 2003
17
0
0
US
Hi again,
I have a different page control with a Tab called 'maintenance', within the Form.
the code is:
TGroupBox* Group = new TGroupBox(MainForm);
Group->Parent = MainForm->maintenance;

When the second line is executed, another process is executed (within a dos command window). In this stage, the GUI freezes. If the process is not created ,everything runs well. also if the process is created and I delete the line with the Parent assignment, it works as well. The problem appears only when the new process is created and there is assignment of Parent property (in line two).
Any Ideas?
Thanks a lot.
Tzvika




the 'maintenance' tab cause the gui to be freeze. You can press all the other tabs and go anywhere in the gui, and it will be ok.
Once you pressed the 'maintenance' Tab, the GUI Stuck

 
pls disregard the last 3 lines. Thank you
 
Your parent and owner should probably be the same, Maintenance.

TGroupBox* Group = new TGroupBox(maintenance);
Group->Parent = maintenance;

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top