Page 1 of 1

ActiveX Properties

PostPosted: Wed Jun 07, 2006 2:26 pm
by Randal
All,

How can I set these property using FWH ActiveX?

Using xHarbour I can do:

oMapPoint:Toolbars:Item("Standard"):Visible := .T.
oMapPoint:Toolbars:Item("Navigation"):Visible := .T.
oMapPoint:Toolbars:Item("Drawing"):Visible := .T.
oMapPoint:Toolbars:Item("Location and Scale"):Visible := .T.

where oMapPoint is the activex object.

Thanks,
Randal Ferguson

PostPosted: Wed Jun 07, 2006 2:55 pm
by Adolfo
Randal ..

See the excat name of the property of your activex,
For instance, I use an Epson OCX and the the actual name of a property is

comm.Comport

So in Xhb I use
Ef:comm.Comport:=2

In FWH I Use

Ef:SetProp("comm.ComPort","2")

Try It
BTW with OleView utility you can see all the names of the properties, methods, error messages if you don't have access to the activex documentation. Ican sedn it to you if you need it. Just send me a PM

Adolfo

PostPosted: Wed Jun 07, 2006 4:42 pm
by Randal
Adolfo,

Thanks for the reply. I know the actual property names and as I indicated I can set the properties using xHabour/CreateActiveX.

However, using FWH I cannot find any option that works as part of the property name is a literal string. Any other ideas?

Thanks,
Randal

PostPosted: Wed Jun 07, 2006 4:49 pm
by Adolfo
Randal Ferguson wrote:Adolfo,

Thanks for the reply. I know the actual property names and as I indicated I can set the properties using xHabour/CreateActiveX.

However, using FWH I cannot find any option that works as part of the property name is a literal string. Any other ideas?

Thanks,
Randal


Mmm that's something I don't know.. sorry
I would've done

oMapPoint:SetProp("Toolbars:Item('Standard'):Visible",.T.)

Hope it Helps...

PostPosted: Wed Jun 07, 2006 4:53 pm
by Randal
Adolfo,

<<oMapPoint:SetProp("Toolbars:Item('Standard'):Visible",.T.) >>

I tried this syntax and several others and could not get it to work.

Thanks,
Randal