ActiveX properties

ActiveX properties

Postby Roberto Parisi » Sat Mar 25, 2006 9: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
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Postby Antonio Linares » Sat Mar 25, 2006 12:45 pm

Roberto,

oPanels is not an ActiveX, so you have to do it this way:
Code: Select all  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Roberto Parisi » Sat Mar 25, 2006 1: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
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Postby Antonio Linares » Sat Mar 25, 2006 7:39 pm

Roberto,

Yes, we may implement it.
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 78 guests