CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Control for owner-drawing items with 1 or 2 columns ?

    A custom-draw control is a good choice as long as we don't try to change too much its behavior and appearance.
    Otherwise, making a custom or ActiveX control from scratch may be a better option.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  2. #17
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: Control for owner-drawing items with 1 or 2 columns ?

    Yes, custom draw can be an option and yes, you can make "minor" tweaks to behaviour, taking your tweaks too far may end up being a lot more work than actually designing a new control entirely.

    Been there, done that, spent days trying to get a tree control to "appear" to have multiple columns. (it looked so simple.... just a bit of pushing here... and a bit of shoving there .... a few sprinkles of magic dust ...)...
    Once released, spent many more weeks debugging and trying to figure out why it didn't work on customer PC's.
    Ended up buying a tree-with-columns custom control. Users hated it... End result was rethinking the problem, turning it upside down and inside out and using a listcontrol. It works, 99.99% of the users like it, there's the occasional "smart boy" that suggests "hey, wouldn't this be a lot better with a tree with columns"... >.<

Page 2 of 2 FirstFirst 12

Tags for this Thread

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

Featured