Page 1 of 1
Activex and enumerators
Posted: Fri Sep 29, 2006 1:55 pm
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
Posted: Fri Sep 29, 2006 4:04 pm
by Antonio Linares
Roberto,
Could you please post a little sample of what you need ? thanks,
Activex and enumerators
Posted: Fri Sep 29, 2006 4:09 pm
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
Posted: Fri Sep 29, 2006 4:14 pm
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.
Activex and enumerators
Posted: Fri Sep 29, 2006 4:18 pm
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
Posted: Fri Sep 29, 2006 4:35 pm
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 ?