![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#9
|
|||
|
|||
|
Procedure TForm1.CreateFrame(forTabsheet: TSuiTabSheet);
begin If GetFrame( forTabsheet ) = nil Then PostMessage( handle, UM_CREATEFRAME, WPARAM(forTabsheet), 0 ); end; procedure TForm1.DestroyFrame(forTabsheet: TSuiTabsheet); begin getFrame( forTabsheet ).Free; end; function TForm1.GetFrame(forTabSheet: TSuiTabsheet): TFrame; begin If not Assigned( forTabsheet ) Then forTabsheet := Suipagecontrol1.activepage; Result := nil; If Assigned( forTabsheet ) and (forTabSheet.ControlCount > 0) and (forTabSheet.Controls[0] Is TFrame) Then result := TFrame(forTabSheet.Controls[0]); end; Type TFrameclass = class of TFrame1; procedure TForm1.UMCreateFrame(var msg: TUmCreateFrame); Var frame: TFrame; begin If msg.tabsheet.Tag <> 0 Then Begin frame := TFrameclass(msg.tabsheet.Tag).Create(self); frame.Parent := msg.tabsheet; frame.Align := alClient; End; end; Este es todo el codigo. Haber si podemos llegar a una solución. De todas maneras lo que pasa es que no se da tiempo a que windows cree los componentes. A lo mejor solo se trata de buscar el componentes con FindComponents y haber si es distinto de nil. Pero lo interesante es encontrar la mejor manera de hacerlo. |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Firebird 2.0 se hace esperar | Casimiro Noteví | Noticias | 2 | 18-08-2006 02:56:21 |
| Cree el EXE en delphi 5 y lo corro en XP , marca error , alguna idea? | kamik | Varios | 10 | 22-12-2005 17:03:10 |
| Esperar a que termine un proceso | felixgo | OOP | 4 | 02-06-2004 19:46:45 |
| esperar a que se realicen los cambios | aram2r | Conexión con bases de datos | 2 | 23-02-2004 18:20:05 |
| Esperar xx segundos | Antigol | Varios | 3 | 08-12-2003 02:44:11 |
|