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 » ButtonOption has no disabled state? [solved w/ ::Disable()]
Re: ButtonOption has no disabled state? [message #11909 is a reply to message #11908] Sun, 30 September 2007 21:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Sun, 30 September 2007 15:43

Got ButtonOption control on my layout. Say, it`s called stopButton.
I want to make it disabled (grayed and not responding to user input).

None of this:
  • stopButton.SetEditable(false);
  • stopButton.SetReadOnly();

worked.

How to make ButtonOption disabled?

P.S. Looked into sources:
void  ButtonOption::LeftDown(Point, dword) {
	push = true;
	Refresh();
}
And it seems like there`s no checking for enabled/disabled state.


It does not need to check because disabled widgets do not get events.

stopButton.Disable();

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there an equivalent of win32 API "SendMessage" in U++
Next Topic: Toolbar clears after ESC key [solved, it`s the bug in user code]
Goto Forum:
  


Current Time: Mon Jun 10 14:41:38 CEST 2024

Total time taken to generate the page: 0.01780 seconds