#include <CtrlLib/CtrlLib.h> using namespace Upp; struct App : public TopWindow { typedef App CLASSNAME; ParentCtrl a, b; Splitter h; Splitter::Style sst; void Toggle(); App(); }; void App::Toggle() { h.Zoom(h.GetZoom() == 1 ? -1 : 1); } App::App() { sst.vert[0] = sst.horz[0] = GUI_GlobalStyle() >= GUISTYLE_XP ? Blend(SColorHighlight, SColorFace, 64) : SColorShadow(); sst.vert[1] = sst.horz[1] = GUI_GlobalStyle() >= GUISTYLE_XP ? Blend(SColorHighlight, SColorFace) : SColorShadow(); h.SetStyle(sst); h.Horz(a, b); Add(h.SizePos()); Sizeable().Zoomable(); SetTimeCallback(3000, THISBACK(Toggle)); } GUI_APP_MAIN { App().Run(); }
const Value *ch = vert ? chstyle->vert : chstyle->horz; + if(style<0) for(int i = 0; i < pos.GetCount(); i++) {
Report message to a moderator