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 » What Label.WhenAction supposed to do? - nothing [PARTLY SOLVED :)]
What Label.WhenAction supposed to do? - nothing [PARTLY SOLVED :)] [message #1804] Mon, 20 March 2006 08:01 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
What Label.WhenAction supposed to do?
And why this works for button but not for label?
#include <CtrlLib/CtrlLib.h>

void testAction()
{ PromptOK("testLabelAction");
}

GUI_APP_MAIN
{
	TopWindow w;
	Button b;
	Label l;

	w.Add(b);

	b.SetLabel("button - testAction");
	b.SetPos(b.PosLeft(10, 100), b.PosTop(10, 30));	
//	b.WhenPush=callback(testAction);  //both work
	b.WhenAction=callback(testAction);
	
	w.Add(l);
	l.SetLabel("label - testAction");
	l.SetPos(l.PosLeft(150, 100), l.PosTop(10, 30));
	l.WhenAction=callback(testAction);	
	
	w.Run();
}

[Updated on: Sun, 09 April 2006 03:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CtrlLayoutOKCancel - detecting Cancel vs Bad input?
Next Topic: 603.r9 TreeCtrl etc. repaint optimization [BUG?]-No,feature.ParentCtrl and Ctrl
Goto Forum:
  


Current Time: Sun May 19 04:37:59 CEST 2024

Total time taken to generate the page: 0.00628 seconds