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 » Can't set value in switch with EnableValue
Re: Can't set value in switch with EnableValue [message #14616 is a reply to message #14597] Tue, 04 March 2008 17:15 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
I have tested with this simple testcase:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	TopWindow win;
	Switch h;
	h.Add("One", "One");
	h.Add("Two", "Two");
	h.Add("Three", "Three");
	h.EnableValue("One", false);
	h.EnableValue("Two", false);
	win.Add(h.SizePos());
	win.Run();
	h.EnableValue("Two", true);
	win.Run();
}



and it seems to work OK.

Is not it possible that there is a space after the CONSULTA? Smile Or something like that.

You might also try to place .EnableValue("CONSULTA") instead of using Select to test it...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Images in menus causing enormous padding
Next Topic: How to modify Page setup (left margin) in RichText Control
Goto Forum:
  


Current Time: Sat Jun 07 11:33:37 CEST 2025

Total time taken to generate the page: 0.04233 seconds