.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@10266 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-10-04 11:21:40 +00:00
parent 2e4b276e07
commit 4a04a07d40
7 changed files with 22 additions and 18 deletions

View file

@ -1,22 +0,0 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyApp : TopWindow {
virtual void RightDown(Point p, dword keyflags) {
EventArgTarget<int> result;
MenuBar menu;
for(int i = 0; i < 10; i++)
menu.Add(AsString(i), result[i]);
menu.Execute();
if(IsNull(result))
PromptOK("Menu was cancelled");
else
PromptOK("You have selected " + AsString((int)result));
}
};
GUI_APP_MAIN
{
MyApp().Run();
}