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 » U++ Widgets - General questions or Mixed problems » DropList color is the same when editable or not
DropList color is the same when editable or not [message #31924] Thu, 07 April 2011 18:33 Go to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello Mirek

Now when DropList is not editable it has the same background color as if it is editable.

To solve this a possible way could be in method void MultiButton::Paint(Draw& w) to put this in line 412:
		if(HasFocus()) {
			paper = SColorHighlight();
			text = SColorHighlightText();
		} else if (!IsEditable()) 		// Added
			paper = SColorFace();		// Added
		else
			paper = SColorPaper();


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GetRectInParentWindow for all backends
Next Topic: why the ctrl does`t have HWND?
Goto Forum:
  


Current Time: Mon Apr 29 19:07:53 CEST 2024

Total time taken to generate the page: 0.02011 seconds