|
|
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 next message Go to next message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/648.jpg) |
koldo
Messages: 3387 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun Sep 01 07:06:48 CEST 2024
Total time taken to generate the page: 0.05726 seconds
|
|
|