Adding dialogs to scripts

When the dialog is complete, the code is added to the script by selecting all of the text in the script area and pasting it into the main script code in BlueZone Script Host and Debugger. The dialog code can be tested by itself in BlueZone Script Host and Debugger by pasting the text in a new script project, adding the Dialog script command, and clicking ScriptPlay Script from the menu bar or clicking the Play Script toolbar icon.

Note: The code generated in BlueZone Dialog Editor is only the dialog definition. To invoke the dialog, use the dialog script command shown at the bottom of the following dialog definition. For example, Dialog Dialog1.

Sample dialog text

BeginDialog Dialog1, 0, 0, 186, 233, "Sample Dialog with All Controls"
  ButtonGroup ButtonPressed
    OkButton 135, 10, 50, 15
    CancelButton 135, 30, 50, 15
  OptionGroup RadioGroup1
    RadioButton 10, 30, 60, 10, "RadioButton", Radio1
  CheckBox 10, 40, 50, 15, "CheckBox", Check1
  Text 10, 5, 70, 10, "This is Text"
  EditBox 10, 80, 60, 15, Edit1
  ListBox 10, 110, 65, 40, "Item1"+chr(9)+"Item2"+chr(9)+"Item3", List1
  DropListBox 90, 110, 75, 40, "Item1"+chr(9)+"Item2"+chr(9)+"Item3", List2
  StaticComboBox 10, 175, 65, 45, "Item1"+chr(9)+"Item2"+chr(9)+"Items3", Combo1
  ComboBox 90, 175, 85, 50, "Item1"+chr(9)+"Item2"+chr(9)+"Item3", Combo2
  Text 90, 100, 65, 10, "DropDown ListBox"
  Text 90, 165, 80, 10, "ComboBox"
  GroupBox 5, 20, 70, 40, "GroupBox"
  Text 10, 100, 50, 10, "ListBox"
  Text 10, 70, 50, 10, "EditBox"
  Text 10, 165, 65, 10, "Static ComboBox"
  ButtonGroup ButtonPressed
    PushButton 135, 50, 50, 15, "Button", Button3
  Text 90, 5, 30, 10, "Picture"
  Picture 85, 25, 70, 60, "bz1.bmp", Picture2
EndDialog
Dialog Dialog1