|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList - Changing colors
|
|
Re: DropList - Changing colors [message #20618 is a reply to message #20617] |
Fri, 27 March 2009 09:49 |
kbyte
Messages: 87 Registered: July 2008
|
Member |
|
|
I dont know how to assign a new display or a new AttrText to droplist.
Please could you help me again with a code example? My droplist has the name cbEsc and was drawn during design time in a form.
Please, a innocente question:
I like upp very very much and today it is my framework to develop applications for Windows (even for commercial ones, some day). It works very well and has ready-to-use controls that feet my needs. I am not a pro in C++ but i want to be some day.
So, why UPP controls doesnt have the same methods like in VB, say, .SetColor(), .SetBakGround() ?
Alex
[Updated on: Fri, 27 March 2009 09:52] Report message to a moderator
|
|
|
Re: DropList - Changing colors [message #20642 is a reply to message #20618] |
Sun, 29 March 2009 10:27 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
kbyte wrote on Fri, 27 March 2009 11:49 |
1. I dont know how to assign a new display or a new AttrText to droplist. Please could you help me again with a code example?
2. Why UPP controls doesnt have the same methods like in VB, say, .SetColor(), .SetBakGround() ?
|
1. Please use forum search. This topic was discussed a number of times. If you don`t find any, write here, I`ll try to help finding one.
2. U++ uses slightly different approach to customizing controls than VB. This technology is called Chameleon.
The main idea is that control is assigned to the complex customization object, which is constructed from native OS drawing styles & colors. Complexity of this object is explained by the fact that modern operating systems have very complex rules for drawing widgets. These rules include many colors and many styling rules (which may include even opacity and gradients).
So when you want to change look&feel, you generally need to alter this complex customization Style object. Please be prepaired to alter a number of colors, not just one - if you want your custom widget to look great in a number of modern operating systems.
[Updated on: Sun, 29 March 2009 10:28] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 04 12:33:13 CEST 2024
Total time taken to generate the page: 0.03913 seconds
|
|
|