ultimatepp/uppdev/stdapp/EnhParentCtrl.cpp
cxl 3cd394812c Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

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));
}