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 |
|
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
|
|
|
|
|
What Label.WhenAction supposed to do? - nothing [PARTLY SOLVED :)]
By: fudadmin on Mon, 20 March 2006 08:01
|
|
|
Re: What Label.WhenAction supposed to do?
By: mirek on Mon, 20 March 2006 09:10
|
|
|
Re: What Label.WhenAction supposed to do?
By: forlano on Wed, 22 March 2006 17:24
|
|
|
Re: What Label.WhenAction supposed to do?
By: mirek on Wed, 22 March 2006 17:34
|
|
|
Re: What Label.WhenAction supposed to do?
By: fudadmin on Wed, 22 March 2006 19:47
|
|
|
Re: What Label.WhenAction supposed to do?
By: forlano on Fri, 24 March 2006 00:05
|
|
|
Re: What Label.WhenAction supposed to do?
By: mirek on Fri, 24 March 2006 09:20
|
|
|
Re: What Label.WhenAction supposed to do?
By: forlano on Fri, 24 March 2006 10:11
|
|
|
Re: What Label.WhenAction supposed to do?
By: forlano on Fri, 24 March 2006 10:52
|
|
|
Re: What Label.WhenAction supposed to do?
By: mirek on Fri, 24 March 2006 11:01
|
Goto Forum:
Current Time: Sat Jun 01 05:49:49 CEST 2024
Total time taken to generate the page: 0.01889 seconds
|