FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error INIT WINDOWS
Posts: 17
Joined: Wed Nov 08, 2023 02:58 PM
Error INIT WINDOWS
Posted: Wed Jun 25, 2025 07:25 PM

When using ON INIT from Window, does it not open the windows and display the message inside?

Ao utilizar o ON INIT da Window o mesmo não abre a windows e apresenta a mensagem dentro?

DEFINE WINDOWS oWnd TITLE "TESTE"

ACTIVATE WINDOW oWnd MAXIMIZED ON INIT MsgInfo("OK")

--> Aparece o OK , pra depois abrir a Window

OK appears, and then the Window opens

FWH 2025-Abr

xHarbour 1.3.2

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Error INIT WINDOWS
Posted: Wed Jun 25, 2025 08:33 PM

oWnd:bStart :={|| msginfo("Hola")}

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 17
Joined: Wed Nov 08, 2023 02:58 PM
Re: Error INIT WINDOWS
Posted: Thu Jun 26, 2025 12:57 PM

Ola. Mesmo coisa.

Mosta primeiro a mensagem e pois abre window.

Hello. Same thing.

First show the message and then open the window.

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Error INIT WINDOWS
Posted: Thu Jun 26, 2025 01:15 PM
use MDI clause.
Utilice la cláusula MDI.
// C:\FWH\SAMPLES\SHOWIP.PRG

#include "FiveWin.ch"

STATIC oWnd

FUNCTION Main()

   DEFINE WINDOW oWnd TITLE "Local IP" MDI

   ACTIVATE WINDOW oWnd CENTERED ;
      ON INIT MsgInfo( GetIP() )

RETURN NIL

// FIN / END
Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion