U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Thu Oct 08 13:04:09 GMT+2 2026

Total time taken to generate the page: 0.00753 seconds