...
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
ActiveX properties
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Roberto,
oPanels is not an ActiveX, so you have to do it this way:
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" )
-
- Posts: 116
- Joined: Thu Oct 13, 2005 5:14 pm
- Location: Italy
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: