ActiveX problem?

ActiveX problem?

Postby Taiwan » Sat Apr 28, 2007 11:31 am

Hello Antonio,

Look it below:

Code: Select all  Expand view
DEFINE WINDOW oWnd TITLE "Test ActiveX"

  oActX := TActiveX():New( oWnd, "Codejock.ReportControl.10.4.2" )
  oWnd:oClient = oActX
ACTIVATE WINDOW oWnd


Image

Code: Select all  Expand view
DEFINE DIALOG oDlg RESOURCE "Test_ACTIVEX"

oActX := TActiveX():ReDefine( 100, oDlg, "Codejock.CalendarControl.10.4.2" )
ACTIVATE DIALOG oDlg


Image

Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Postby Taiwan » Sat Apr 28, 2007 12:02 pm

Hello Antonio,

Add a method below:

Code: Select all  Expand view
DEFINE WINDOW oWnd TITLE "Test ActiveX"

  oActX := TActiveX():New( oWnd, "Codejock.ReportControl.10.4.2" )
  oWnd:oClient = oActX

  oActX:Do( "SetVirtualMode", 1000 )

ACTIVATE WINDOW oWnd



Work fine. Please look Message 1 of picture 1

Code: Select all  Expand view
DEFINE DIALOG oDlg RESOURCE "Test_ACTIVEX"

oActX := TActiveX():ReDefine( 100, oDlg, "Codejock.CalendarControl.10.4.2" )

oActX:Do( "SetVirtualMode", 1000 )

ACTIVATE DIALOG oDlg


I got error message.

Image

Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Postby Antonio Linares » Sat Apr 28, 2007 3:42 pm

Code: Select all  Expand view
DEFINE DIALOG oDlg RESOURCE "Test_ACTIVEX"

REDEFINE ACTIVEX oActX ID 100 OF oDlg PROGID "Codejock.CalendarControl.10.4.2"

ACTIVATE DIALOG oDlg ;
   ON INIT ( oActX:nTop := 0, oActX:nLeft := 0, oActX:nWidth := oDlg:nWidth, oActX:nHeight := oDlg:nHeight, oActX:Do( "SetVirtualMode", 1000 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Sat Apr 28, 2007 7:01 pm

Richard or Antonio,

I don't know much about ADO, but unlike Word or Excel, the calendar control is not (I presume) already installed on the users computer. So how does this work; is the control linked into the app as a library?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 53 guests