ultimatepp/bazaar/CtrlPosTest2/main.cpp
kohait 0e787eb5f6 bazaar: AutoScroller scope simplification, CtrlFinder filter bugfix, CtrlPos: filter bugfix and SPACE key deselection
git-svn-id: svn://ultimatepp.org/upp/trunk@3859 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-09-13 16:45:17 +00:00

27 lines
482 B
C++

#include "CtrlPosTest2.h"
CtrlPosTest2::CtrlPosTest2()
{
CtrlLayout(*this);
Sizeable().Zoomable();
Add(sc.SizePos());
CtrlLayout(vis);
sc.AddPane(vis);
sc.WhenScrolled = callback(&hk, &CtrlPos::UpdateRefresh);
hk.SetSource(&vis); //will add itself to vis->GetParent --> to this TopWindow with same vis.GetPos to cover it perfectly.
hk.SetFocus();
}
void CtrlPosTest2::Activate()
{
hk.SetFocus();
}
GUI_APP_MAIN
{
CtrlPosTest2().Run();
}