1topic "Static widgets";
2[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
3[l288;2 $$2,0#27521748481378242620020725143825:desc]
4[0 $$3,0#96390100711032703541132217272105:end]
5[H6;0 $$4,0#05600065144404261032431302351956:begin]
6[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
7[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
8[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
9[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
10[b42;2 $$9,9#13035079074754324216151401829390:normal]
11[2 $$0,0#00000000000000000000000000000000:Default]
12[{_}%EN-US
13[s0; [*+150 Static widgets]&]
14[s3; &]
15[ {{10000@3 [s0; [*@(229)4 StaticText]]}}&]
16[s3; &]
17[s1;:StaticText`:`:class:%- [@(0.0.255)3 class][3 _][*3 StaticText][3 _:_][@(0.0.255)3 public][3 _
18][*@3;3 Ctrl][3 , ][@(0.0.255)3 public][3 _][*@3;3 LabelBase]&]
19[s9; Static text.&]
20[s3;%- &]
21[s0;%- &]
22[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
23[s3;%- &]
24[s5;:StaticText`:`:SetFont`(Font`):%- [@(0.0.255) virtual] [_^StaticText^ StaticText][@(0.0.255) `&
25]_[* SetFont]([_^Font^ Font]_[*@3 font])&]
26[s2; Sets the [%-*@3 font] of text.&]
27[s3; &]
28[s4;%- &]
29[s5;:StaticText`:`:SetInk`(Color`):%- [@(0.0.255) virtual] [_^StaticText^ StaticText][@(0.0.255) `&
30]_[* SetInk]([_^Color^ Color]_[*@3 color])&]
31[s2; Sets the [%-*@3 color] of text.&]
32[s3; &]
33[s4;%- &]
34[s5;:StaticText`:`:SetAlign`(int`):%- [@(0.0.255) virtual] [_^StaticText^ StaticText][@(0.0.255) `&
35]_[* SetAlign]([@(0.0.255) int]_[*@3 align])&]
36[s2; Sets alignment [%-*@3 align]. Allowed values are ALIGN`_LEFT,
37ALIGN`_CENTER, ALIGN`_RIGHT.&]
38[s3; &]
39[s4;%- &]
40[s5;:StaticText`:`:SetImage`(const Image`&`,int`):%- [@(0.0.255) virtual]
41[_^StaticText^ StaticText][@(0.0.255) `&]_[* SetImage]([@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&
42]_[*@3 img], [@(0.0.255) int]_[*@3 spc]_`=_[@3 0])&]
43[s2; Sets the Image to be displayed before the text. [%-*@3 spc] is
44space between the text and Image.&]
45[s3; &]
46[s4;%- &]
47[s5;:StaticText`:`:SetText`(const char`*`):%- [@(0.0.255) virtual]
48[_^StaticText^ StaticText][@(0.0.255) `&]_[* SetText]([@(0.0.255) const]_[@(0.0.255) char]_
49`*[*@3 text])&]
50[s5;:StaticText`:`:operator`=`(const char`*`):%- [_^StaticText^ StaticText][@(0.0.255) `&
51]_[* operator`=]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 s])&]
52[s2; Sets [%-*@3 text]. `"`\1`" at the beginning of text activates
53QTF.&]
54[s3; &]
55[s0; &]
56[s0; &]
57[s0;%- &]
58[ {{10000@3 [s0; [*@(229)4 Label]]}}&]
59[s3; &]
60[s1;:Label`:`:class:%- [@(0.0.255)3 class][3 _][*3 Label][3 _:_][@(0.0.255)3 public][3 _][*@3;3 Stat
61icText]&]
62[s9; Generally used to label other widgets. Differs from StaticText
63by implementing hotkey processing. Hotkeys are assigned automatically
64by U`+`+ library, however they can also by preassigned using
65`'`&`' character.&]
66[s3;%- &]
67[s0;%- &]
68[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
69[s3;%- &]
70[s5;:Label`:`:SetText`(const char`*`):%- [@(0.0.255) virtual] [_^Label^ Label][@(0.0.255) `&
71]_[* SetText]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 text])&]
72[s5;:Label`:`:operator`=`(const char`*`):%- [@(0.0.255) virtual] [_^Label^ Label][@(0.0.255) `&
73]_[* operator`=]([@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 s])&]
74[s2; Sets the text. Ignores `'`&`' used to mark hotkeys.&]
75[s3; &]
76[s4;%- &]
77[s5;:Label`:`:SetLabel`(const char`*`):%- [_^Label^ Label][@(0.0.255) `&]_[* SetLabel]([@(0.0.255) c
78onst]_[@(0.0.255) char]_`*[*@3 lbl])&]
79[s2; Sets the text, `'`&`' marks hotkeys.&]
80[s3; &]
81[s0; &]
82[s0; &]
83[s0;%- &]
84[ {{10000@3 [s0; [*@(229)4 LabelBox]]}}&]
85[s3; &]
86[s1;:LabelBox`:`:class:%- [@(0.0.255)3 class][3 _][*3 LabelBox][3 _:_][@(0.0.255)3 public][3 _][*@3;3 L
87abel]&]
88[s9; Rectangular static widget used to visually group other widgets.&]
89[s3;%- &]
90[s0;%- &]
91[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
92[s3;%- &]
93[s5;:LabelBox`:`:operator`=`(const char`*`):%- [@(0.0.255) virtual]
94[_^LabelBox^ LabelBox][@(0.0.255) `&]_[* operator`=]([@(0.0.255) const]_[@(0.0.255) char]_`*
95[*@3 s])&]
96[s2; Assigns the text of LabelBox.&]
97[s3; &]
98[s4; &]
99[s5;:LabelBox`:`:SetColor`(Color`):%- [_^LabelBox^ LabelBox][@(0.0.255) `&]_[* SetColor]([_^Color^ C
100olor]_[*@3 c])&]
101[s2; Sets the color of LabelBox.&]
102[s3; &]
103[s0; &]
104[s0;%- &]
105[ {{10000@3 [s0; [*@(229)4 ParentCtrl]]}}&]
106[s3; &]
107[s1;:ParentCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 ParentCtrl][3 _:_][@(0.0.255)3 public][3 _
108][*@3;3 Ctrl]&]
109[s9; This class is supposed to be used as logical parent in situation
110when more widgets are to be grouped together. The only difference
111from Ctrl is that ParentCtrl activates Transparent in constructor.&]
112[s3; &]
113[s0; &]
114[s0; &]
115[s0;%- &]
116[ {{10000@3 [s0; [*@(229)4 StaticRect]]}}&]
117[s3; &]
118[s1;:StaticRect`:`:class:%- [@(0.0.255)3 class][3 _][*3 StaticRect][3 _:_][@(0.0.255)3 public][3 _
119][*@3;3 Ctrl]&]
120[s9; Widget completely filled with single color.&]
121[s3;%- &]
122[s0;%- &]
123[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
124[s3;%- &]
125[s5;:StaticRect`:`:Color`(class Color`):%- [_^StaticRect^ StaticRect][@(0.0.255) `&]_[* Col
126or]([@(0.0.255) class]_[* Color]_[*@3 c])&]
127[s2; The color. Default is SColorFace.&]
128[s3; &]
129[s0; &]
130[s0; &]
131[s0;%- &]
132[ {{10000@3 [s0; [*@(229)4 ImageCtrl]]}}&]
133[s3; &]
134[s1;:ImageCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 ImageCtrl][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C
135trl]&]
136[s9; Display raster Image. Image is centered in the widget rectangle.&]
137[s3;%- &]
138[s0;%- &]
139[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
140[s3;%- &]
141[s5;:ImageCtrl`:`:SetImage`(const Image`&`):%- [_^ImageCtrl^ ImageCtrl][@(0.0.255) `&]_[* S
142etImage]([@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 `_img])&]
143[s2; Sets the image.&]
144[s3; &]
145[s0; &]
146[s0; &]
147[s0;%- &]
148[ {{10000@3 [s0; [*@(229)4 DrawingCtrl]]}}&]
149[s3; &]
150[s1;:DrawingCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 DrawingCtrl][3 _:_][@(0.0.255)3 public][3 _
151][*@3;3 Ctrl]&]
152[s9; Displays Drawing.&]
153[s3;%- &]
154[s0;%- &]
155[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
156[s3;%- &]
157[s5;:DrawingCtrl`:`:Background`(Color`):%- [_^Picture^ DrawingCtrl][@(0.0.255) `&]_[* Backg
158round]([_^Color^ Color]_[*@3 color])&]
159[s2; Sets background [%-*@3 color]. Default is white.&]
160[s3; &]
161[s4;%- &]
162[s5;:DrawingCtrl`:`:Get`(`)const:%- [_^Drawing^ Drawing]_[* Get]()_[@(0.0.255) const]&]
163[s2; Returns Drawing assigned to Picture.&]
164[s3;%- &]
165[s4;%- &]
166[s5;:DrawingCtrl`:`:KeepRatio`(bool`):%- [_^Picture^ DrawingCtrl][@(0.0.255) `&]_[* KeepRat
167io]([@(0.0.255) bool]_[*@3 keep]_`=_[@(0.0.255) true])&]
168[s2; If active, Picture keeps the aspect ratio of Drawing. Default
169is on.&]
170[s3; &]
171[s4;%- &]
172[s5;:DrawingCtrl`:`:NoKeepRatio`(`):%- [_^Picture^ DrawingCtrl][@(0.0.255) `&]_[* NoKeepRat
173io]()&]
174[s2; Do not keep aspect ratio.&]
175[s3; &]
176[s4;%- &]
177[s5;:DrawingCtrl`:`:Set`(const Drawing`&`):%- [_^Picture^ DrawingCtrl][@(0.0.255) `&]_[* Se
178t]([@(0.0.255) const]_[_^Drawing^ Drawing][@(0.0.255) `&]_[*@3 `_picture])&]
179[s5;:DrawingCtrl`:`:operator`=`(const Drawing`&`):%- [_^Picture^ DrawingCtrl][@(0.0.255) `&
180]_[* operator`=]([@(0.0.255) const]_[_^Drawing^ Drawing][@(0.0.255) `&]_[*@3 `_picture])&]
181[s2; Assigns the Drawing.&]
182[s3; &]
183[s4;%- &]
184[s5;:DrawingCtrl`:`:operator`=`(const Painting`&`):%- [_^Picture^ DrawingCtrl][@(0.0.255) `&
185]_[* operator`=]([@(0.0.255) const]_[_^Painting^ Painting][@(0.0.255) `&]_[*@3 `_picture])&]
186[s2; Assigns [%-*@3 `_picture], converted to Drawing.&]
187[s0; &]
188[s0; &]
189[s0;%- &]
190[ {{10000@3 [s0; [*@(229)4 SeparatorCtrl]]}}&]
191[s3; &]
192[s1;:SeparatorCtrl`:`:class:%- [@(0.0.255)3 class][3 _][*3 SeparatorCtrl][3 _:_][@(0.0.255)3 pub
193lic][3 _][*@3;3 Ctrl]&]
194[s9; Horizontal or vertical separator line. Direction depends on
195aspect ratio.&]
196[s3;%- &]
197[s0;%- &]
198[ {{10000F(128)G(128)@1 [s0; [* Public Method List]]}}&]
199[s3;%- &]
200[s5;:SeparatorCtrl`:`:Margin`(int`):%- [_^SeparatorCtrl^ SeparatorCtrl][@(0.0.255) `&]_[* M
201argin]([@(0.0.255) int]_[*@3 w])&]
202[s2; Sets the left`-right (for horizontal separator) or top`-bottom
203margin. Default value is 2.&]
204[s3; &]
205[s4;%- &]
206[s5;:SeparatorCtrl`:`:Margin`(int`,int`):%- [_^SeparatorCtrl^ SeparatorCtrl][@(0.0.255) `&
207]_[* Margin]([@(0.0.255) int]_[*@3 l], [@(0.0.255) int]_[*@3 r])&]
208[s2; Sets the top`-right (for horizontal separator) or top`-bottom
209to [%-*@3 l] and [%-*@3 r], in that order. Default value is 2.&]
210[s3; &]
211[s4;%- &]
212[s5;:SeparatorCtrl`:`:SetSize`(int`):%- [_^SeparatorCtrl^ SeparatorCtrl][@(0.0.255) `&]_[* S
213etSize]([@(0.0.255) int]_[*@3 w])&]
214[s2; Sets the size returned by GetMinSize `- included to affect the
215way how widget is treated in BarCtrl. Default value is 7.&]
216[s3; &]
217[s4;%- &]
218[s5;:SeparatorCtrl`:`:SetStyle`(const SeparatorCtrl`:`:Style`&`):%- [_^SeparatorCtrl^ S
219eparatorCtrl][@(0.0.255) `&]_[* SetStyle]([@(0.0.255) const]_[_^SeparatorCtrl`:`:Style^ S
220tyle][@(0.0.255) `&]_[*@3 s])&]
221[s2; Sets the visual style to SeparatorCtrl`::Style [%-*@3 s]. The style
222is a simple structure with two fields:&]
223[s7; [*@5 l1]-|the first margin&]
224[s7;%- [*@5 l2]-|the second margin&]
225[s3; &]
226[s0; ]]