Control for owner-drawing items with 1 or 2 columns ? - Page 2
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

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

  1. #16
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,021

    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 Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  2. #17
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    3,782

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center