Hello All,
Has anybody used third party ActiveX control with FWH application ? I need help to use the same. I need to send the control (ocx) file to private mail as it is little bigger and cannot be post here.
Expecting kind co-operation,
Milan.
#include "FiveWin.ch"
function Main()
local oWnd, oActiveX
local cEvents := ""
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
oActiveX = TActiveX():New( oWnd, "GSN.GSNCtrl.1" )
oActiveX:nWidth = 0
oActiveX:nHeight = 0
oActiveX:bOnEvent = { | event, aParams | cEvents += EventInfo( event, aParams ) }
@ 3, 3 BUTTON "About" ACTION oActiveX:Do( "AboutBox" ) SIZE 80, 25
ACTIVATE WINDOW oWnd ;
VALID ( MemoEdit( cEvents ), .t. )
return nil
function EventInfo( event, aParams )
local cMsg := "Event: " + cValToChar( event ) + CRLF
local n
cMsg += "Params: "
for n = 1 to Len( aParams )
cMsg += cValToChar( aParams[ n ] ) + CRLF
next
return cMsg + CRLF
Milan Mehta wrote:Dear Antonio,
Greattttt ! Now I am lot more hopeful about the possibilities.
But in the working sample of yours I get following error. Mine is Nov-2005 buid of FWH.
Error description: Error BASE/1005 Message not found: TACTIVEX:_BONEVENT
Stack Calls
===========
Called from: => TACTIVEX:ERROR(175)
Called from: tobject.prg => (b)HBOBJECT:HBOBJECT(105)
Called from: => TACTIVEX:MSGNOTFOUND(0)
Called from: ACTIVEX.PRG => TACTIVEX:_BONEVENT(167)
Called from: R.PRG => MAIN(14)
Eagerly awaiting your reply.
Milan.
Antonio Linares wrote:Milan,
FWH march build has support for ActiveX events management. If you need to manage ActiveX events, then you need the march build.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], ShumingWang and 50 guests