25 :
ActiveWindow(p->GetScreen(), ax, ay, aw, ah, aid, 0, p), blend_mode(
Video::BLEND_ALPHA)
31 sprintf_s(buf,
"ImageBox %d",
id);
42 sprintf_s(buf,
"ImageBox %d",
id);
66 Rect box_rect(x,y,w,h);
90 int vert_space = label_rect.
h;
91 int horz_space = label_rect.
w;
93 DrawText(
text.
data(), 0, label_rect, DT_CALCRECT | DT_WORDBREAK | DT_CENTER);
94 vert_space = (vert_space - label_rect.
h)/2;
96 label_rect.
w = horz_space;
99 label_rect.
y += vert_space;
120 Rect box_rect(x,y,w,h);
159 label_rect.
y += img_h;
160 label_rect.
h -= img_h;
164 label_rect.
x += img_w;
165 label_rect.
w -= img_w;
169 label_rect.
w -= img_w;
173 label_rect.
h -= img_h;
194 if (img_h > h) img_h = h-2;
195 if (img_w > w) img_w = w-2;
197 int img_x_offset = 0;
198 int img_y_offset = 0;
205 case 1: img_x_offset = (w/2-img_w/2);
208 case 2: img_x_offset = w - img_w;
212 case 3: img_y_offset = (h/2-img_h/2);
214 case 4: img_x_offset = (w/2-img_w/2);
215 img_y_offset = (h/2-img_h/2);
217 case 5: img_x_offset = w - img_w;
218 img_y_offset = (h/2-img_h/2);
223 img_y_offset = h - img_h;
225 case 7: img_x_offset = (w/2-img_w/2);
226 img_y_offset = h - img_h;
228 case 8: img_x_offset = w - img_w;
229 img_y_offset = h - img_h;
234 img_rect.
x = img_x_offset;
235 img_rect.
y = img_y_offset;