FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with ActiveX/Dialog ( To Antonio )
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Problem with ActiveX/Dialog ( To Antonio )
Posted: Sat Jun 13, 2009 12:04 AM
Code (fw): Select all Collapse
function aDialog()
public odlg, oAct
define dialog odlg
  oAct := TActiveX():New( odlg, "Codejock.CommandBarsFrame.13.0.0",0,0,200,800)
  oAct :Do("ActiveMenuBar")
activate dialog odlg
return


Antonio,

Why show GPF ?

What´s difference between Object dialog and Object Window ?

Thanks
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with ActiveX/Dialog ( To Antonio )
Posted: Sat Jun 13, 2009 04:41 AM

Lailton,

In this line:

oAct := TActiveX():New( odlg, "Codejock.CommandBarsFrame.13.0.0",0,0,200,800)

The oDlg does not have a valid windows handle yet.

Dialogs don't get a windows handle until they are ACTIVATEd:

ACTIVATE DIALOG oDlg ;
ON INIT oAct := TActiveX():New( odlg, "Codejock.CommandBarsFrame.13.0.0",0,0,200,800)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion