mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
18 lines
565 B
C++
18 lines
565 B
C++
#include <stdapp/EnhParentCtrl.hpp>
|
|
|
|
void EnhancedParentCtrl::RightDown(Point, dword)
|
|
{
|
|
MenuBar::Execute(THISBACK(LocalMenu));
|
|
}
|
|
|
|
void EnhancedParentCtrl::LocalMenu(Bar& bar)
|
|
{
|
|
bar.Add(t_("Local menu 1"), THISBACK1(OnLocal, t_("Local menu 1")));
|
|
bar.Add(t_("Local menu 2"), THISBACK1(OnLocal, t_("Local menu 2")));
|
|
bar.Add(t_("Local menu 3"), THISBACK1(OnLocal, t_("Local menu 3")));
|
|
}
|
|
|
|
void EnhancedParentCtrl::OnLocal(String menu_name)
|
|
{
|
|
Exclamation(Format("You still have to write your own \"%s\" code!", menu_name));
|
|
}
|