Página 1 de 1

How to generate a new Window during runtime.

Publicado: Mié Feb 19, 2025 3:32 am
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?

Re: How to generate a new Window during runtime.

Publicado: Mié Feb 19, 2025 12:59 pm
por ignacio
Use TForm()

Regards,

Re: How to generate a new Window during runtime.

Publicado: Mié Feb 19, 2025 2:24 pm
por DC
Thanks, Ignacio.