27 :
ScrollWindow(p, ax, ay, aw, ah + (ah-2)*maxentries + 2, 0, 0, p), combo_box(ctrl)
43 rect.
h = (ah-2)*maxentries + 2;
47 if (
rect.
h > screen_height) {
49 rect.
h = screen_height;
58 :
ScrollWindow(s, ax, ay, aw, ah + (ah-2)*maxentries + 2, 0), combo_box(ctrl)
74 rect.
h = (ah-2)*maxentries + 2;
78 if (
rect.
h > screen_height) {
80 rect.
h = screen_height;
175 Rect btn_rect(x,y,w,h);
181 Rect btn_rect(x,y,w,h);
184 DrawItem(*item, btn_rect, sub_state);
224 int vert_space = label_rect.
h;
225 int horz_space = label_rect.
w;
228 vert_space = (vert_space - label_rect.
h)/2;
230 label_rect.
w = horz_space;
233 label_rect.
y += vert_space;
236 label_rect.
x += state;
237 label_rect.
y += state;
248 Rect label_rect = btn_rect;
281 if (new_seln !=
seln) {
376 r.
h = (ah-2)*length + 2;
380 if (r.
h > screen_height) {
385 else if (r.
y + r.
h > screen_height) {
386 r.
y = screen_height - r.
h;
395 return items[index]->data();
403 *
items[index] = item;