mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-29 22:03:40 -06:00
Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
adf46bd64e
commit
2e4b276e07
3860 changed files with 1161787 additions and 438 deletions
33
uppdev/MultiButton/main.cpp
Normal file
33
uppdev/MultiButton/main.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include "CtrlLib/CtrlLib.h"
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
TopWindow win;
|
||||
|
||||
MultiButton b2;
|
||||
win.Add(b2.LeftPos(10, 400).TopPos(50, 100));
|
||||
b2.AddButton().Width(100).SetMonoImage(CtrlsImg::DA());
|
||||
b2.AddButton().Width(100).SetImage(CtrlImg::smallleft()).Left();
|
||||
b2.AddButton().Width(100).SetMonoImage(CtrlImg::smallleft());
|
||||
b2.Set("Hello!");
|
||||
|
||||
ScrollBar sb;
|
||||
sb.Horz();
|
||||
sb.Set(0, 100, 1000);
|
||||
win.Add(sb.HSizePos().BottomPos(0, 100));
|
||||
|
||||
ScrollBar sb2;
|
||||
sb2.Vert();
|
||||
sb2.Set(0, 100, 1000);
|
||||
win.Add(sb2.RightPos(0, 100).VSizePos(0, 100));
|
||||
|
||||
Button b1;
|
||||
win.Add(b1.EdgeStyle().LeftPos(400, 100).TopPos(200, 100));
|
||||
|
||||
Button bb;
|
||||
win.Add(bb.ScrollStyle().LeftPos(400, 100).TopPos(310, 100));
|
||||
|
||||
win.Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue