Results 1 to 3 of 3

Thread: Other Controls or Arrays, Collections as Properties of an ActiveX Control?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    2

    Angry Other Controls or Arrays, Collections as Properties of an ActiveX Control?

    Hi all,

    I'm currently working on an ActiveX control that would need an ImageList as a property, just like in the case of TreeView or ListView. I seem to have some problems around the implementation, though.

    I can't have a property of ImageList type, since you can't expose controls directly in your custom ActiveX control (ie I get an error message if I try doing that).

    Now, what's the solution for that? Can I have an array of ListImages as a property then? But, where do I store the members of the array?

    I have a similar problem if I try adding a property that holds several members ie an array. For example, my control is somewhat similar to a grid, with the exception that it creates a dynamic array of Label controls displaying the rows. But whenever I try to create the array of Label controls dynamicly in the Initialisation section, I lose the values storing the row captions and all the labels will have the same caption as the first one.

    I might not be very clear here, so if you need, I can send some snippets from the code.

    Can anybody please help?

    Thanks in advance,
    Req

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Use a variant in the property let and property get statements

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    2
    Thanks for the tip. I'll try.
    R.

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