mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
27 lines
482 B
C++
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();
|
|
}
|
|
|