home *** CD-ROM | disk | FTP | other *** search
-
- dcl_settings : default_dcl_settings { audit_level=3; }
-
-
- // -----------------------------------------------------------------
- // EXAMPLE 1: Sampler
- // THE FOLLOWING DIALOG CONTAINS EXAMPLES OF MOST KINDS OF TILES.
- // USE IT AS A BASIS FOR CREATING NEW DIALOGUE BOXES QUICKLY.
- // THIS EXAMPLE DOES NOT USE ANY "PRE-FAB" PIECES.
- // SEE EXAMPLE 2: prefab (BELOW) FOR A DIALOG CREATED USING THOSE.
- // -----------------------------------------------------------------
-
- sampler : dialog {
- label = "Main Title Goes Here";
-
- : column {
- : boxed_row {
- label = "Boxed Row";
- : row {
- : column {
- children_alignment = right;
- : text {
- label = "Pop-up List 1:";
- }
- : text {
- label = "Pop-up List 2:";
- }
- : text {
- label = "Edit Box 1:";
- }
- }
- : column {
- children_fixed_width = true;
- : popup_list {
- key = "poplist1";
- list = "Popcorn\nSoda Pop\nPop Tarts\nPopovers\nPoppyseeds";
- edit_width = 12;
- }
- : popup_list {
- key = "poplist2";
- list = "Pop Tarts\nPopcorn\nSoda Pop\nPopovers\nPoppyseeds";
- edit_width = 12;
- }
- :row {
- : edit_box {
- key = "editbox";
- edit_width = 14;
- edit_limit = 20;
- value = "Edit This";
- }
- : button {
- key = "pickbutton";
- label = "Pick";
- is_default = false;
- width = 8;
- }
- }
- }
- : column {
- : image {
- key = "image";
- aspect_ratio = 1;
- height = 2;
- width = 7;
- color = -16;
- }
-
- : row {
- : image_button {
- key = "image_button1";
- width = 3;
- height = 2;
- color = 2;
- }
- : image_button {
- key = "image_button2";
- width = 3;
- height = 2;
- color = 6;
- }
- }
- }
- }
- }
- : spacer {
- height = 1;
- }
- : row {
- fixed_width = true;
- alignment = centered;
- : toggle {
- key = "toggle0";
- label = "Un-checked Toggle";
- value = "0";
- }
-
- : toggle {
- key = "toggle1";
- label = "Checked Toggle";
- value = "1";
- }
- }
- : row {
- fixed_width = true;
- alignment = centered;
- : text {
- label = "1 - 100:";
- }
- : slider {
- key = "slider";
- // layout = horizontal;
- min_value = 0;
- max_value = 100;
- value = "50";
- fixed_width = true;
- width = 30;
- fixed_height = true;
- height = 1;
- small_increment = 1;
- big_increment = 10;
- }
- }
- : spacer {
- height = 1;
- }
- : boxed_row {
- label = "Boxed Row";
- children_fixed_width = true;
- children_fixed_height = true;
- : boxed_radio_column {
- key = "radio_column";
- label = "Boxed Radio Column";
- fixed_height = true;
- : radio_button {
- key = "radio1";
- label = "KPBS - Public Radio";
- value = "1";
- }
- : radio_button {
- key = "radio2";
- label = "91X - Alternative";
- value = "0";
- }
- : radio_button {
- key = "radio3";
- label = "KSON Country";
- value = "0";
- }
- }
- : list_box {
- key = "List1";
- label = "List Box";
- multiple_select = false;
- value = "1";
- list = "Ten Most Wanted List\nShopping List\nBlack List\nHit List\nWish List\nChristmas List\nPhone List";
- width = 30;
- height = 6;
- }
- }
- : row {
- children_fixed_width = true;
- fixed_width = true;
- alignment = centered;
- : button {
- key = "accept2";
- label = "OK";
- mnemonic = "O";
- is_default = true;
- width = 8;
- alignment = centered;
- }
- : spacer {
- width = 2;
- }
- : button {
- key = "cancel2";
- label = "Cancel";
- mnemonic = "C";
- is_default = false;
- width = 8;
- alignment = centered;
- }
- : spacer {
- width = 2;
- }
- : button {
- key = "help2";
- label = "Help";
- mnemonic = "H";
- is_default = false;
- width = 8;
- alignment = centered;
- }
- }
- }
- }
-
-
-
- // ---------------------------------------------------------------------
- // THE ROWS AND COLUMNS BELOW ARE EXAMPLES OF "PRE-FAB" CHUNKS OF STUFF
- // FOR USE LATER IN SEVERAL DIALOGS IN THE SAME .DCL FILE.
- // ---------------------------------------------------------------------
-
- okcancelhelp : column {
- fixed_height=true;
- children_fixed_width=true;
- children_alignment=left;
- : button {
- label=" OK ";
- key="accept2";
- // is_default=true;
- width=19;
- }
- : button {
- label="Cancel";
- key="cancel2";
- // is_cancel=true;
- width=19;
- }
- : button {
- label="Help...";
- key="help2";
- width=19;
- }
- }
-
- bottomrow : row {
- fixed_width = true;
- alignment = centered;
- children_fixed_width = true;
- ok_button;
- spacer_1;
- cancel_button;
- spacer_1;
- help_button;
- }
-
- stations : boxed_radio_column {
- key = "radio_column";
- label = "Boxed Radio Column";
- fixed_height = true;
- : radio_button {
- key = "radio1";
- label = "KPBS - Public Radio";
- value = "1";
- }
- : radio_button {
- key = "radio2";
- label = "91X - Alternative";
- value = "0";
- }
- : radio_button {
- key = "radio3";
- label = "KSON - Country";
- value = "0";
- }
- }
-
-
- commentbox : column {
- : text { label="Comments :"; }
- : edit_box {
- key="comments_edbx";
- width=49;
- edit_width=49;
- edit_limit=240;
- }
- }
-
- littlesliders : row {
- fixed_width = true;
- fixed_height = true;
- : text {
- label = "Here's a tiny horizontal slider...";
- }
- : slider {
- fixed_width = true;
- width = 4;
- key = "horiz";
- value = "0";
- min_value = 0;
- max_value = 999;
- small_increment = 1;
- big_increment = 1;
- }
- spacer_1;
- : text {
- label = "and a vertical one :";
- }
- : slider {
- layout = vertical;
- fixed_width = true;
- height = 2;
- key = "vert";
- value = "0";
- min_value = 0;
- max_value = 999;
- small_increment = 1;
- big_increment = 1;
- }
- }
-
-
-
- // ------------------------------------------------------------------------
- // EXAMPLE2
- // THIS DIALOGUE BOX USES THE "PRE-FAB" CHUNKS OF STUFF, ABOVE.
- // IF YOU COPY AND PASTE FROM HERE, BE SURE TO TAKE ALONG THE
- // PARTS THAT ARE CALLED BY THE DCL CODE YOU ARE COPYING.
- // ------------------------------------------------------------------------
-
- prefab : dialog {
- label = "This Dialogue Box Uses 'Pre-Fab' Pieces";
- : column {
- : row {
- stations;
- spacer_1;
- okcancelhelp;
- }
- spacer_1;
- littlesliders;
- commentbox;
- spacer_1;
- bottomrow;
- }
- }
-
- //-----------------------------------------------------------------------
- // THIS ONE SHOWS HOW BOXES AND COLUMNS NEST TOGETHER.
- //-----------------------------------------------------------------------
-
- boxes : dialog {
- label = "Lots o'Boxes and Columns";
-
- : boxed_column {
- : boxed_column {
- : boxed_column {
- : boxed_row {
- : button {
- key = "key1";
- label = "OK";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
-
- : button {
- key = "key2";
- label = "Done";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
- }
- : boxed_row {
- : button {
- key = "key3";
- label = "Go Away";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
-
- : button {
- key = "key4";
- label = "Cancel";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
-
- }
- }
- }
- }
- : boxed_row {
- : boxed_row {
- : boxed_row {
- : boxed_column {
- : button {
- key = "accept";
- label = "OK";
- is_default = true;
- fixed_width = true;
- color = 1;
- }
-
- : button {
- key = "key6";
- label = "Done";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
- }
- : boxed_column {
- : button {
- key = "key7";
- label = "Go Away";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
-
- : button {
- key = "key8";
- label = "Cancel";
- // is_default = true;
- fixed_width = true;
- color = 1;
- }
-
- }
- }
- }
- }
- }
-
-
-
-