Advertisement
JoshDreamland

ENIGMA Widgets: Build Dialog

Feb 2nd, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. local int window = wgt_window_create(480, 96);
  2. local int layout = wgt_layout_create(window,
  3.     "OOOOOOO#"
  4.     "PUXYWHS#"
  5.     "FRGGIIS"
  6.     , 2, 2);
  7. local int cbbobj, bpause, bfreeze, bundo, bredo, bstop, tegx, tegy, tegw, tegh, cbgrid, cbiso;
  8.   wgt_layout_insert_widget(layout, "O", cbbobj =  wgt_combobox_create("object0|object1|object2|cat|hat|box|wall|toilet|cloud|mushroom"));
  9.   wgt_layout_insert_widget(layout, "P", bpause =  wgt_button_create("Pause"));
  10.   wgt_layout_insert_widget(layout, "F", bfreeze = wgt_button_create("Freeze"));
  11.   wgt_layout_insert_widget(layout, "U", bundo =   wgt_button_create("Undo"));
  12.   wgt_layout_insert_widget(layout, "R", bredo =   wgt_button_create("Redo"));
  13.   wgt_layout_insert_widget(layout, "X", tegx =    wgt_textline_create("X",3));
  14.   wgt_layout_insert_widget(layout, "Y", tegy =    wgt_textline_create("Y",3));
  15.   wgt_layout_insert_widget(layout, "W", tegw =    wgt_textline_create("W",3));
  16.   wgt_layout_insert_widget(layout, "H", tegh =    wgt_textline_create("H",3));
  17.   wgt_layout_insert_widget(layout, "G", cbgrid =  wgt_checkbox_create("Grid"));
  18.   wgt_layout_insert_widget(layout, "I", cbiso =   wgt_checkbox_create("Iso"));
  19.   wgt_layout_insert_widget(layout, "S", bstop =   wgt_button_create("Stop"));
  20.   wgt_window_show(window);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement