mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@15247 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
453a60c97a
commit
c9c77ab237
4 changed files with 7 additions and 7 deletions
|
|
@ -5,15 +5,15 @@ using namespace Upp;
|
|||
struct MyAppWindow : TopWindow {
|
||||
Button button;
|
||||
|
||||
void Click() { PromptOK("You have clicked the button!"); }
|
||||
|
||||
typedef MyAppWindow CLASSNAME;
|
||||
|
||||
MyAppWindow() {
|
||||
Title("My application with button");
|
||||
Add(button.LeftPos(10, 100).TopPos(10, 30));
|
||||
button.SetLabel("Click me!");
|
||||
button <<= THISBACK(Click);
|
||||
button << [=] {
|
||||
PromptOK("You have clicked the button!");
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue