Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » native look
Re: native look [message #970 is a reply to message #468] Sat, 11 February 2006 13:18 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
I modified CtrlLib/Ctrl.iml to make radio buttons, checkboxes & scrollbar look more native is Win2000 style. I modified these images:
switch0, switch0d, switch0f, switch1, switch1d, switch1f,
optionedge, optionedged,
smallup, smalldown, smallleft, smallright
The original images were renamed by appending a "_custom" to the end, for example switch0_custom. I left in some non-native look, such as the yellow hotspot color: I think that is good, and does not seem alien.

If you think that the original "improvements" to the radio buttons & checkboxes are no longer justified, then could you replace Ctrl.iml with this file, and maybe remove the "_custom" images?

But if you still like the custom look, maybe a command line option, or macro could be made which triggers either the custom look or the native look images. I searched in the code, and there are very few places where these image names are used (Button.cpp, Switch.cpp), so extending them to deal with two versions would not seem much work. I still think that the native look should be the default. One ide for the implementation (part of Switch.cpp):
#ifndef CUSTOM_LOOK
  #define CUSTOM_LOOK_IMAGE(imageName)  imageName
#else
  #define CUSTOM_LOOK_IMAGE(imageName)  imageName##_custom
#endif
...
img = v.value == value ? dv ? CtrlImg::CUSTOM_LOOK_IMAGE(switch1d)()
  : pushindex == i ? CtrlImg::CUSTOM_LOOK_IMAGE(switch1f)()
                   : CtrlImg::CUSTOM_LOOK_IMAGE(switch1)()
  : dv ? CtrlImg::CUSTOM_LOOK_IMAGE(switch0d)()
       : pushindex == i ? CtrlImg::CUSTOM_LOOK_IMAGE(switch0f)()
                        : CtrlImg::CUSTOM_LOOK_IMAGE(switch0)();

  • Attachment: Ctrl.iml.zip
    (Size: 12.30KB, Downloaded 2029 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: Chameleon, graphic technology
Goto Forum:
  


Current Time: Wed Jun 11 06:08:48 CEST 2025

Total time taken to generate the page: 0.04360 seconds