Problem with ActiveX/Dialog ( To Antonio )

Problem with ActiveX/Dialog ( To Antonio )

Postby lailton.webmaster » Sat Jun 13, 2009 12:04 am

Code: Select all  Expand view
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
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Problem with ActiveX/Dialog ( To Antonio )

Postby Antonio Linares » Sat Jun 13, 2009 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests