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 » FIX: proper use of Style in Ctrls from CtrlLib
FIX: proper use of Style in Ctrls from CtrlLib [message #27072] Thu, 24 June 2010 12:38 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi folks,

i stumbled over inconsistant use of style stuff inside some upp Ctrls, names EditCtrl, Calender, Clock, ButtonOption..

they should not have stuff like

Paint:
const Style &st = style ? *style : StyleDefault();


but should instead properly do what other Ctrl's do

ctor:
style = &StyleDefault();

//Paint and elsewhere
style->line...



this prevents things from breaking up when editing global style information (over StyleDefault)..

i attached a rar file with .svn inside to easy compare what i mean.

PS: neither should Font be part of Style or should it.. i havent found any other that Calender Ctrl to be the case... because SetFont should be used instead, right?

RFC
  • Attachment: CtrlLib.rar
    (Size: 975.03KB, Downloaded 335 times)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Manual for custom Chameleonized Ctrls
Next Topic: Easiest way to change button color
Goto Forum:
  


Current Time: Sat Apr 27 14:57:29 CEST 2024

Total time taken to generate the page: 0.06528 seconds