Announcement

Collapse
No announcement yet.

Icons and checkboxes in a Listbox?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Icons and checkboxes in a Listbox?

    Hi.
    Was wondering if anyone could point me in the right direction to go about making a listbox (is it actually a listview?) that has icons and checkboxes in them. Im trying to recreate a listbox that looks like the one you see in the Control Panel/Add Remove Programs/Windows Startup dialog.

    Any advice would be appreciated.

    Thanks,
    -Mike

  • #2
    Mike;

    BG Software has some great custom controls that do the hard stuff for you in this respect. Likely they are owner draw controls.

    I don't remember the URL for BG Software off hand, but I do have a link to it (and other useful PB addon sites) on my web site at:

    http://ezgui.com/page4.htm



    ------------------
    Chris Boss
    Computer Workshop
    Developer of "EZGUI"
    http://cwsof.com
    http://twitter.com/EZGUIProGuy

    Comment


    • #3
      Thanks for the response Chris.
      Ideally i'd like to be able to do this without a 3rd party DLL so I think i'm going to take a stab at writing my own. Wish me luck If that fails, the BG Software checklist control may suffice, though it seems like it only supports checkboxes and not checkboxes with icons.

      -Mike

      ------------------

      Comment


      • #4
        Mike,
        You want a 'Report' style ListView control with icons, Off hand I haven't got any code but you need to create an image list control preloaded with images and then assign the list view items' properties with the icon index (after adding the imagelist to the listview).

        Also, the list view control supports check boxes built-in (%LVS_EX_CHECKBOXES style I think) so you may be pleased to hear!

        HTH.

        ------------------
        Kev G Peel
        KGP Software
        Bridgwater, UK.
        mailto:[email protected][email protected]</A>

        [This message has been edited by K Peel (edited May 23, 2000).]

        Comment


        • #5
          see the thread listbox + checkbox in the programming forum.
          If you try to make something idiot-proof, someone will invent a better idiot.

          Comment

          Working...
          X