ActiveX problem?

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

ActiveX problem?

Post by Taiwan »

Hello Antonio,

Look it below:

Code: Select all

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

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
Contact:

Post by Taiwan »

Hello Antonio,

Add a method below:

Code: Select all

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

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Code: Select all

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
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
Post Reply