Thread View: borland.public.delphi.language.objectpascal
1 messages
1 total messages
Started by Ramesh Yadav
Tue, 01 Jun 2004 13:23
Moving a Form embeded in a PageControl
Author: Ramesh Yadav
Date: Tue, 01 Jun 2004 13:23
Date: Tue, 01 Jun 2004 13:23
34 lines
2239 bytes
2239 bytes
Please can anyone help on this: Scenario: I have a form that has two page controls. The first page control has 5 tabsheets. Four of these tabsheets each contain a form that has been designed as a TForm and then embedded into tabsheet by changing Parent and BorderStyle. The fifth tabsheet contains some controls, ignore this one. The second page control does not have any tabsheets at all. At runtime, the four tabs containing embedded forms, on the first page control are moved to the new page control. So now, first page control has 1 tab and the second page control has 4 tabs moved from first page control. For business purposes, you do not need to know why two pagecontrols are being used, just that they are. Problem: When any of the four tabsheets containing embedded forms, are moved to the new second pagecontrol, the embedded form disappears completely from view. I can still locate the form that has moved by checking the Controls array of the tabsheet. It just does not appear to be visible although visible is true etc. Anyone know why the form is "disappearing" when the tabsheet is moved from one control to another? I have tried placing a TPanel on the tabsheet and then creating the form with the TPanel as a owner. When I move the TPanel parent from page control 1 to page control 2, the form still disappears from view (cannot be seen in tabs at runtime). Thanks very much if you can help.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads