Click to See Complete Forum and Search --> : help on property browsing in VB properties window


Ramkumar K thalanki
March 18th, 1999, 02:34 PM
I have an ActiveX Control implemented using VC++ 5.0


I have two property for whic there are enemerations,


First one is long property, whose values are, 0,1 and 2. Means "0 - FIXED", "1-UPDATABLE", "2-DELETABLE"

Second one is String property, whose values are "HORIZONTAL" and "VERTICAL".


I want to show them as choices (combo boxes) in VB properties window.


Does anyone has any sample or hints of how to do that?


Thanks


Ram

Ramkumar K Thalanki
March 18th, 1999, 02:34 PM
I have an ActiveX Control implemented using VC++ 5.0


I have two property for whic there are enemerations,


First one is long property, whose values are, 0,1 and 2. Means "0 - FIXED", "1-UPDATABLE", "2-DELETABLE"

Second one is String property, whose values are "HORIZONTAL" and "VERTICAL".


I want to show them as choices (combo boxes) in VB properties window.


Does anyone has any sample or hints of how to do that?


Thanks


Ram

Chris Eastwood
March 19th, 1999, 02:46 AM
Hi


I'm not too sure about in VC++, but in VB you would have a property defined as your enumeration type, eg:


(in VB)


Public Property Get Value() as MyEnum ' whatever


or


Public Property Let Value(ByVal NewValue as MyEnum)


The Enumeration from your VC++ ActiveX DLL must be available in a type-library with your ActiveX control in order for VB to use these correctly.


You may want to go to the CodeGuru MFC site (http://www.codeguru.com) to see if they have any more information (which they undoubtably will, it's a huge site).


Regards


Chris Eastwood


CodeGuru - the website for developers

http://www.codeguru.com/vb

Ramkumar K thalanki
March 19th, 1999, 03:20 PM
I did it through OnGetPredefinedValue and OnGetPredefinedStrings.

But the problem now is I want them to choose from Combo. But in VB properties window, its allowing me to type and choose. I want it to be only as choices. Is there any way to do it

Ramkumar K Thalanki
March 19th, 1999, 03:20 PM
I did it through OnGetPredefinedValue and OnGetPredefinedStrings.

But the problem now is I want them to choose from Combo. But in VB properties window, its allowing me to type and choose. I want it to be only as choices. Is there any way to do it