mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
21 lines
367 B
C++
21 lines
367 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct MyApp : public TopWindow {
|
|
virtual void RightDown(Point p, dword keyflags);
|
|
};
|
|
|
|
void MyApp::RightDown(Point p, dword keyflags)
|
|
{
|
|
MenuBar b;
|
|
b.Add("Action", [] { PromptOK("Action invoked"); });
|
|
if(!b.Execute())
|
|
PromptOK("Menu canceled");
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyApp app;
|
|
app.Run();
|
|
}
|