Subversion Repositories Kolibri OS

Rev

Rev 7614 | Rev 9453 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. checkbox checkbox1 = { "Checkbox", true };
  3. more_less_box spinbox1 = { 23, 0, 999, "SpinBox" };
  4. edit_box edit_cmm = {180,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff,
  5.         0x10000000,sizeof(param)-2,#param,0, 0b};
  6. char st_str[16];
  7. edit_box edit_st = {180,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff,
  8.         0x10000000,sizeof(st_str)-2,#st_str,0, 0b};
  9.  
  10.  
  11. void DrawUiElementsPreview(dword x,y,h)
  12. {
  13.         incn y2;
  14.         y2.n = y;
  15.         spinbox1.draw(x, y2.inc(30));
  16.         WriteText(x, y2.inc(30), 0x90, sc.work_text, "C-- Edit");
  17.         DrawEditBoxPos(x, y2.inc(20), #edit_cmm);
  18.         WriteText(x, y2.inc(35), 0x90, sc.work_text, "Strandard Edit");
  19.         DrawStEditBoxPos(x, y2.inc(20), #edit_st);
  20.         DrawStandartCaptButton(x, y+h-40, GetFreeButtonId(), "Button1");
  21.         DrawStandartCaptButton(x+100, y+h-40, GetFreeButtonId(), "Button2");
  22. }
  23.  
  24. :void DrawStEditBoxPos(dword x,y, edit_box_pointer)
  25. {
  26.         dword c_inactive = MixColors(sc.work_graph, sc.work, 128);
  27.         dword c_active = MixColors(sc.work_graph, 0, 128);
  28.         ESI = edit_box_pointer;
  29.         ESI.edit_box.left = x;
  30.         ESI.edit_box.top = y;
  31.         ESI.edit_box.blur_border_color = c_inactive;
  32.         ESI.edit_box.focus_border_color = c_active;
  33.         edit_box_draw  stdcall (edit_box_pointer);
  34. }