U++ framework
Do not panic. Ask here before giving up.

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 2125 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: Chameleon, graphic technology
Goto Forum:
  


Current Time: Thu Jul 23 20:11:22 GMT+2 2026

Total time taken to generate the page: 0.00589 seconds