mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-24 14:22:13 -06:00
36 lines
565 B
C++
36 lines
565 B
C++
#include "CtrlPropTest.h"
|
|
|
|
void CtrlPropTest::EditCB()
|
|
{
|
|
if(hk.IsEnabled())
|
|
{
|
|
hk.Disable();
|
|
mbi->Check(false);
|
|
}
|
|
else
|
|
{
|
|
hk.Enable();
|
|
mbi->Check(true);
|
|
SetFocus(); //kill foucus from all others
|
|
}
|
|
}
|
|
|
|
CtrlPropTest::CtrlPropTest()
|
|
{
|
|
CtrlLayout(*this, "Window title");
|
|
|
|
mbi = &mb.Add(!IsReadOnly(), t_("Edit"), CtrlImg::selection(),
|
|
THISBACK(EditCB));
|
|
AddFrame(mb);
|
|
|
|
hk.WhenRightDown = THISBACK(OnCtrlRight);
|
|
hk.Disable();
|
|
Add(hk.SizePos());
|
|
|
|
InitDummies();
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
CtrlPropTest().Run();
|
|
}
|