|
-
Mar 13th, 2001, 07:32 PM
#1
Thread Starter
PowerPoster
Hi! I've created an OCX and I just can not change my default properties form 0 to 0 - Horizontal.
As you've use others OCX control. they have a properties list like:-
Code:
Orentation (Properties)
Available setting
0 - Horizontal
1 - Vertical
So far, I only know to to create a 0 and 1. And can not add in the rest of the description. Hence, the user might not be ubderstad the setting without the readme.txt or help file.
Also, how do I change my OCX control icon?
Last edited by Chris; Mar 13th, 2001 at 07:36 PM.
-
Mar 14th, 2001, 09:03 AM
#2
Fanatic Member
OCX's
If you create a public enumerator in your UserControl module (declarations section), then you can set the return type of a 'property' procedure to be the name of the public enumerator.
EG:
Public Enum EN_Orientation
Horizontal = 0
Vertical = 1
Diagonally = 2
End Enum
Public Property Get Orientation() AS EN_Orientation
End Property
Public Property Let Orientation(ByVal NewValue AS EN_Orientation)
End Property
---
To set the OCX's Icon (as it appears in the tool box), set the following property:
UserControl.TextboxBitmap
-
Mar 14th, 2001, 09:34 AM
#3
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|