27 static int old_cursor;
32 :
ScrollWindow(p->GetScreen(), ax, ay, aw, ah, aid, 0, p), caret_x(0), caret_y(0)
42 sprintf_s(buf,
"EditBox %d",
id);
47 :
ScrollWindow(s, ax, ay, aw, ah, aid), caret_x(0), caret_y(0)
57 sprintf_s(buf,
"EditBox %d",
id);
90 label_rect.
x = border_size;
91 label_rect.
y = border_size;
92 label_rect.
w -= border_size * 2;
93 label_rect.
h -= border_size * 2;
109 text_flags = text_flags | DT_SINGLELINE;
158 char* buf =
new(__FILE__,__LINE__)
char[
sel_length+1];
214 if (x_caret >=
Width()-4) {
377 if (vk >=
'A' && vk <=
'Z') {
381 Insert((
char) tolower(vk));
405 case VK_DELETE:
Delete();
break;
408 case VK_SPACE:
Insert(
' ');
break;
409 case VK_RETURN:
Insert(
'\n');
break;
411 case VK_NUMPAD0:
Insert(
'0');
break;
412 case VK_NUMPAD1:
Insert(
'1');
break;
413 case VK_NUMPAD2:
Insert(
'2');
break;
414 case VK_NUMPAD3:
Insert(
'3');
break;
415 case VK_NUMPAD4:
Insert(
'4');
break;
416 case VK_NUMPAD5:
Insert(
'5');
break;
417 case VK_NUMPAD6:
Insert(
'6');
break;
418 case VK_NUMPAD7:
Insert(
'7');
break;
419 case VK_NUMPAD8:
Insert(
'8');
break;
420 case VK_NUMPAD9:
Insert(
'9');
break;
421 case VK_DECIMAL:
Insert(
'.');
break;
422 case VK_ADD:
Insert(
'+');
break;
423 case VK_SUBTRACT:
Insert(
'-');
break;
424 case VK_MULTIPLY:
Insert(
'*');
break;
425 case VK_DIVIDE:
Insert(
'/');
break;
427 case '0':
if (flags & 1)
Insert(
')');
else Insert(
'0');
break;
428 case '1':
if (flags & 1)
Insert(
'!');
else Insert(
'1');
break;
429 case '2':
if (flags & 1)
Insert(
'@');
else Insert(
'2');
break;
430 case '3':
if (flags & 1)
Insert(
'#');
else Insert(
'3');
break;
431 case '4':
if (flags & 1)
Insert(
'$');
else Insert(
'4');
break;
432 case '5':
if (flags & 1)
Insert(
'%');
else Insert(
'5');
break;
433 case '6':
if (flags & 1)
Insert(
'^');
else Insert(
'6');
break;
434 case '7':
if (flags & 1)
Insert(
'&');
else Insert(
'7');
break;
435 case '8':
if (flags & 1)
Insert(
'*');
else Insert(
'8');
break;
436 case '9':
if (flags & 1)
Insert(
'(');
else Insert(
'9');
break;
437 case 186:
if (flags & 1)
Insert(
':');
else Insert(
';');
break;
438 case 187:
if (flags & 1)
Insert(
'+');
else Insert(
'=');
break;
439 case 188:
if (flags & 1)
Insert(
'<');
else Insert(
',');
break;
440 case 189:
if (flags & 1)
Insert(
'_');
else Insert(
'-');
break;
441 case 190:
if (flags & 1)
Insert(
'>');
else Insert(
'.');
break;
442 case 191:
if (flags & 1)
Insert(
'?');
else Insert(
'/');
break;
443 case 192:
if (flags & 1)
Insert(
'~');
else Insert(
'`');
break;
444 case 219:
if (flags & 1)
Insert(
'{');
else Insert(
'[');
break;
445 case 221:
if (flags & 1)
Insert(
'}');
else Insert(
']');
break;
446 case 220:
if (flags & 1)
Insert(
'|');
else Insert(
'\\');
break;
447 case 222:
if (flags & 1)
Insert(
'"');
else Insert(
'\'');
break;