git-svn-id: svn://ultimatepp.org/upp/trunk@12631 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-12-20 16:29:11 +00:00
parent 0c1e961fd6
commit 33aeee9e23
5 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,17 @@
#ifndef _EnableCase_EnableCase_h
#define _EnableCase_EnableCase_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <EnableCase/EnableCase.lay>
#include <CtrlCore/lay.h>
class EnableCase : public WithEnableCaseLayout<TopWindow> {
public:
typedef EnableCase CLASSNAME;
EnableCase();
};
#endif

View file

@ -0,0 +1,4 @@
LAYOUT(EnableCaseLayout, 200, 100)
ITEM(Switch, sw, SetLabel(t_("One\nTwo\nThree")).LeftPosZ(28, 56).TopPosZ(8, 88))
END_LAYOUT

View file

@ -0,0 +1,11 @@
uses
CtrlLib;
file
EnableCase.h,
main.cpp,
EnableCase.lay;
mainconfig
"" = "GUI";

View file

@ -0,0 +1,12 @@
#include "EnableCase.h"
EnableCase::EnableCase()
{
CtrlLayout(*this, "Window title");
sw.DisableCase(1);
}
GUI_APP_MAIN
{
EnableCase().Run();
}

View file

@ -11,12 +11,10 @@ struct OpenGLExample : GLCtrl {
DLOG("GLPaint");
Size sz = GetSize();
GLDraw w;
DrawGL w(sz);
Rect r = Rect(GetSize()).Deflated(20, 20);
w.InitGL(GetSize());
w.DrawRect(sz, LtRed());
DrawFatFrame(w, r, LtBlue(), 2);