Page 1 of 1
ActiveX properties
Posted: Sat Mar 25, 2006 9:38 am
by Roberto Parisi
...
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
Posted: Sat Mar 25, 2006 12:45 pm
by Antonio Linares
Roberto,
oPanels is not an ActiveX, so you have to do it this way:
Code: Select all
oObj := TActiveX():New(oWnd, "MyControl")
oPanels := oObj:GetProp( "Panels" )
OleInvoke( oPanels, "Add", "Item 1" )
OleInvoke( oPanels, "Add", "Item 2" )
Posted: Sat Mar 25, 2006 1:59 pm
by Roberto Parisi
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
Posted: Sat Mar 25, 2006 7:39 pm
by Antonio Linares
Roberto,
Yes, we may implement it.