mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-17 22:03:37 -06:00
Bazaar: Added GoogleTestUIExample.
git-svn-id: svn://ultimatepp.org/upp/trunk@14989 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e0fe0030f8
commit
3cf2896c61
6 changed files with 131 additions and 0 deletions
19
bazaar/GoogleTestUIExample/AppWindow.cpp
Normal file
19
bazaar/GoogleTestUIExample/AppWindow.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "AppWindow.h"
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
AppWindow::AppWindow()
|
||||
{
|
||||
Title("App Window");
|
||||
SetRect(0, 0, 200, 200);
|
||||
button.SetLabel("Hello world!");
|
||||
button << [=] { OnClick(); };
|
||||
Add(button.HSizePos(25, 25).VSizePos(50, 50));
|
||||
}
|
||||
|
||||
void AppWindow::OnClick()
|
||||
{
|
||||
if(PromptYesNo("Button was clicked. Do you want to quit?")) {
|
||||
Break();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue