23 :
ActiveWindow(p->GetScreen(), ax, ay, aw, ah, aid, 0, p)
49 sprintf_s(buf,
"Slider %d",
id);
80 sprintf_s(buf,
"Slider %d",
id);
98 if (w < 1 || h < 1 || !
shown)
101 Rect ctrl_rect(x,y,w,h);
119 int led_width = ((w - 6) / (
num_leds)) - 1;
120 int led_height = ((h - 5) / (
nvalues)) - 1;
124 int num_lit = fill_width / (led_width+1);
134 for (
int i = 0; i < num_lit; i++) {
148 if (thumb_rect.
x < 0)
166 for (
int i = 0; i <
nvalues; i++) {
168 FillRect(3,y0,3+fill_width,y0+led_height,fc);
220 int led_width = ((w - 5) / (
nvalues)) - 1;
230 FillRect(2, h-2-led_height, 2+led_width, h-2, fc);
240 if (thumb_rect.
y < 0)
258 for (
int i = 0; i <
nvalues; i++) {
260 FillRect(x0,h-3-led_height,x0+led_width,h-3,fc);
318 if (nNewValue >= 0) {
330 if (nNewValue == 0 || nNewValue == 1) {
394 if (index >= 0 && index <
nvalues)
402 if (index >= 0 && index <
MAX_VAL) {
403 value[index] = nNewValue;
412 if (index >= 0 && index < 2) {
413 marker[index] = nNewValue;
419 if (index >= 0 && index <
nvalues)
429 if (index >= 0 && index <
nvalues) {
439 if (index >= 0 && index <
nvalues) {