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 » Style: DefaultInk / default
Re: Style: DefaultInk / default [message #27245 is a reply to message #27244] Wed, 07 July 2010 22:15 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
kohait00 wrote on Wed, 07 July 2010 10:31

hi there

tracking Style incompatibilities (i have a daaaark app front) i was wondering why the tooltip was showing back text.
i tracked it down to here:

DrawSmartText() is used to draw, and it uses DefaultInk as color, which is static Black().

Draw.h:376
inline Color InvertColor() { return Color(255, 0); }
inline Color DefaultInk() { return Black(); } //TODO!


the TODO is not from me Smile so its been already in mind to change it to something rational.

why not change it to SColorText() ?



Thanks. Actually, it should have been SColorInfoText. Now fixed.


Quote:


BTW: whats the matter with InvertColor? it is used in RichText and GridCtrl and in 2 places in Ctrl..



It is a sort of nasty hack - in DrawRect, in screen, this acts as inverting all image bits (instead setting them to color). Useful for painting selections...
 
Read Message
Read Message
Read Message
Previous Topic: Easiest way to change button color
Next Topic: Question to UPP developers: the issue with windows rendering (Windows XP)
Goto Forum:
  


Current Time: Sat May 18 21:27:21 CEST 2024

Total time taken to generate the page: 0.01974 seconds