ultimatepp/uppdev/stdapp/EnhParentCtrl.cpp
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +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));
}