8 |
8 |
TopWindow win;
|
9 |
9 |
win.SetRect(0, 0, 400, 50);
|
10 |
10 |
win.Add(dl.HSizePos(4, 4).TopPos(10, Ctrl::STDSIZE));
|
11 |
|
dl.Add(0, AttrText("This is bold").SetFont(StdFont().Bold()));
|
12 |
|
dl.Add(1, AttrText("This is red").Ink(Red()));
|
13 |
|
dl.Add(2, AttrText("This has icon").SetImage(CtrlImg::print()));
|
14 |
|
dl.Add(3, AttrText("This is centered").Center());
|
|
11 |
dl.Add(0, AttrText("This is Monospace font").SetFont(Monospace()));
|
|
12 |
dl.Add(1, AttrText("This is SansSerif font").SetFont(SansSerif()));
|
|
13 |
dl.Add(2, AttrText("This is Serif font").SetFont(Serif()));
|
|
14 |
dl.Add(3, AttrText("This is bold").Bold());
|
|
15 |
dl.Add(4, AttrText("This is italic").Italic());
|
|
16 |
dl.Add(5, AttrText("This is strikeout").Strikeout());
|
|
17 |
dl.Add(6, AttrText("This is underline").Underline());
|
|
18 |
dl.Add(7, AttrText("This is mixed").Bold().Italic().Strikeout().Underline());
|
|
19 |
dl.Add(8, AttrText("This is red").Ink(Red()));
|
|
20 |
dl.Add(9, AttrText("This has icon").SetImage(CtrlImg::print()));
|
|
21 |
dl.Add(10, AttrText("This is centered").Center());
|
15 |
22 |
dl.SetLineCy(max(18, GetStdFontCy()));
|
16 |
23 |
dl <<= 0;
|
17 |
24 |
win.Run();
|