Activex and enumerators

Post Reply
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Activex and enumerators

Post by Roberto Parisi »

is it possibile to use string enumrators with fw activex?

I don't know how to find the correspondent numeric of a string enumerator.

Regards,
Roberto Parisi
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Roberto,

Could you please post a little sample of what you need ? thanks,
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Activex and enumerators

Post by Roberto Parisi »

oObj := TActiveX():New(...)

oObj:SetProp("Alignment", taRight)

taRight is a numeric enumerator, but I don't know what number is, how to get it?

I hope you understand my bad english.

Regards,
Roberto
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Roberto,

I see what you mean, thanks :-)

taRight is a constant value that may be defined in a header file. Anyhow, you may try with 0, 1, 2, 3, etc.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Activex and enumerators

Post by Roberto Parisi »

Many thx Antonio.

Ok... my problem is that with complex activex with tens of enumrations i don't know what number I must use. Is there a way to get a list (like an array) of enumrations? Reading many commercial activex docs I see they give for an activex the following groups:
- Properties
- Methods
- Events
- Enumrations

I get properties, methods and events lists, but I don't know how to get enumerations list.

Thx in advance,
Roberto
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Roberto,

No, sorry, we don't know how to get those enumerations values yet. You may review the OCX with Microsoft OleView tool to get all its info.

What OCX are you using ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply