Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList proposal
DropList proposal [message #25918] |
Fri, 19 March 2010 20:37 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
I've noticed that if DropList has any SubButtons and it's parent control is disabled, it's buttons still look enabled. I tried adding these lines to public section of DropList, but it didn't help:
void Enable (bool enable = true) {for(int i=0;i<GetButtonCount();++i) GetButton(i).Enable(enable); Ctrl::Enable(enable);}
void Disable() {Enable(false);}
[Updated on: Fri, 19 March 2010 20:38] Report message to a moderator
|
|
|
Re: DropList proposal [message #25919 is a reply to message #25918] |
Fri, 19 March 2010 21:22 |
|
Maybe refresh method of Ctrl work?
If you want to re-enable drop list the the state of ctrls need to change to initial state!
Mindtraveller wrote on Fri, 19 March 2010 21:37 | I've noticed that if DropList has any SubButtons and it's parent control is disabled, it's buttons still look enabled. I tried adding these lines to public section of DropList, but it didn't help:
void Enable (bool enable = true) {for(int i=0;i<GetButtonCount();++i) GetButton(i).Enable(enable); Ctrl::Enable(enable);}
void Disable() {Enable(false);}
|
[Updated on: Fri, 19 March 2010 21:23] Report message to a moderator
|
|
|
|
Re: DropList proposal [message #26068 is a reply to message #25964] |
Mon, 29 March 2010 13:14 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Patch. Change this:
if(!IsEnabled() || i >= 0 && !button[i].enabled)
return CTRL_DISABLED;
To this:
if(!IsShowEnabled() || i >= 0 && !button[i].enabled)
return CTRL_DISABLED;
CtrlLib/MultiButton.cpp line 258.
[Updated on: Mon, 29 March 2010 13:14] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 27 02:45:04 CEST 2024
Total time taken to generate the page: 0.04654 seconds
|