Results 1 to 3 of 3

Thread: OCX properties list

  1. #1

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    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.

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Cool 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

  3. #3

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Thanks, sominm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width