WebChaot Messages: 53 Registered: September 2006 Location: Austria, Vienna
Member
Hi uno!
>>> Enhanincg core code is not a good idea. Why you need this?
Because some widgets are "combined". For example a drowdown box contains the box itself and the dropdown-button (which is a nested widget).
Maybe there is a possibility to overwrite both paint-methods in a derived widget - but as I wrote, I have not much experience and so I'm not sure, if it possible and if it is, how to do.
>>> 2003/2007 office style have nothing in common with native widgets so creating your own widget is the best way IMO in this case. Am I right?
Most of the office like widgets only have another design. When there is a way to overwrite all paint methods of the widgets, then derived widgets are the best solution for this case.
I had the same problem some month ago where I wrote a gridcontrol. arrayctrl contains headerctrl. I was not able to overwrite paint-method of this header in the derived arrayctrl - so I copied headerctrl and arrayctrl and changed them to my needs
Now I have to look after each release update what changed and have to update my gridcontrol too
All other specific widgets I have to do myself. But maybe its easier in future, when I get answer about the paint-question (because I could use more standard-elements of u++).