FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ActiveX properties
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
ActiveX properties
Posted: Sat Mar 25, 2006 09:38 AM

...
oObj := TActiveX():New(oWnd, "MyControl")
oPanels := oObj:GetProp("Panels")
oPanels:Do("Add", "Item 1")
oPanels:Do("Add", "Item 2")
...

Can I access to activex properties like this?

Regards

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX properties
Posted: Sat Mar 25, 2006 12:45 PM
Roberto,

oPanels is not an ActiveX, so you have to do it this way:
oObj := TActiveX():New(oWnd, "MyControl") 
oPanels := oObj:GetProp( "Panels" ) 
OleInvoke( oPanels, "Add", "Item 1" ) 
OleInvoke( oPanels, "Add", "Item 2" )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 116
Joined: Thu Oct 13, 2005 05:14 PM
ActiveX properties
Posted: Sat Mar 25, 2006 01:59 PM

Thx Antonio, now it works.

What about a more simple access to propertyies and methods like xHarbour Activex?

oObj := TActiveX():New(oWnd, "MyControl")
oObj:Panels:Add("Item1")
oObj:Panels:Add("Item2")
...

Regards,
Roberto Parisi

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX properties
Posted: Sat Mar 25, 2006 07:39 PM

Roberto,

Yes, we may implement it.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion