In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

How to generate a new Window during runtime.

Xailer professional forum in English
Responder
DC
Mensajes: 135
Registrado: Lun May 16, 2011 6:06 pm

How to generate a new Window during runtime.

Mensaje por DC »

Hi everyone,

I'm trying to create a new generic window during runtime, without using the designer. But I just found out there's no TWindow object to instantiate from.

For example, I tried this

Código: Seleccionar todo

::oWindow := TWindow():New()
::oWindow:Create()
::oWindow:SetFont("Courier New", 10)

, but of course there's no TWindow object, as far as I can tell.

How would we do this?
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9439
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: How to generate a new Window during runtime.

Mensaje por ignacio »

Use TForm()

Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
DC
Mensajes: 135
Registrado: Lun May 16, 2011 6:06 pm

Re: How to generate a new Window during runtime.

Mensaje por DC »

Thanks, Ignacio.
Responder