Results 1 to 6 of 6

Thread: ActiveX List-type Property possible?

  1. #1

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    ActiveX List-type Property possible?

    If you place a ComboBox on a Form, the ComboBox gets a Property called List, which offers a drop-down where you can enter some items.

    How can I do the same thing on my Custom Controls? I've gotten a color-chooser to work by defining the property as OLE_Color, but there is nothing like OLE_List.

    Any ideas?

    Thanks!

    Dave
    Attached Images Attached Images  
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  2. #2

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: ActiveX List-type Property possible?

    Did I fail to make myself clear? Does anyone even understand what I'm talking about? I can re-phrase if not.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    Fanatic Member
    Join Date
    Aug 2005
    Location
    Up State NY
    Posts
    525

    Re: ActiveX List-type Property possible?

    I believe that if the items are enumerated, they can be read out individually. If select all were selected then a simple loop to Additem might just do the trick.

  4. #4
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: ActiveX List-type Property possible?

    I believe that if the items are enumerated
    Yep, enumerating does the trick.

  5. #5

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: ActiveX List-type Property possible?

    No, an enumerated property gives a drop-down of a fixed number of choices, like in this picture.

    What I want is an infinite empty list like you get with a ComboBox.List Property that you can type a list ov values into (see original post).
    Attached Images Attached Images  
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  6. #6
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: ActiveX List-type Property possible?

    Sorry, you are right Dave.
    I found this in the "MS VB6 Component Tools Guid".
    Attached Images Attached Images

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