FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour bInit on MDI oWnd:ChildNew() - UNSOLVED
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
bInit on MDI oWnd:ChildNew() - UNSOLVED
Posted: Wed Oct 22, 2014 01:48 AM

Dear All,

How can I assign bInit when oMDI:ChildNew() is called? So each time I call oMDI:ChildNew() function this bInit will execute..

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: bInit on MDI oWnd:ChildNew()
Posted: Wed Oct 22, 2014 05:52 PM

Frances,

did you try using ON INIT clause of ACTIVATE WINDOW command?

EMG

Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: bInit on MDI oWnd:ChildNew()
Posted: Wed Oct 22, 2014 11:29 PM
Enrico Maria Giordano wrote:Frances,

did you try using ON INIT clause of ACTIVATE WINDOW command?

EMG



Enrico,

when you call oMDI:ChildNew() the window child already activated.
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: bInit on MDI oWnd:ChildNew()
Posted: Thu Oct 23, 2014 07:02 AM

Frances,

oMDI:ChildNew()
Eval( oMDI:bInit, oMDI )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: bInit on MDI oWnd:ChildNew()
Posted: Thu Oct 23, 2014 07:26 AM

Antonio,

The child window already created before binit.. so a delay.. unlike when activating window there's ON INIT clause.

But if this is not possible, I have to resort in manually declaring DEFINE WINDOWS ... ACTIVATE WINDOW..

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15

Continue the discussion