Tuesday, May 27, 2014

Creating Drop Down dialog box using Wise Scripts

item: Set Variable
  Variable=ENV
end
item: If/While Statement
  Variable=ENV
  Flags=00010000
end
item: Custom Dialog Set
  Name=Application Name
  item: Dialog
    Title=Appplication Name
    Width=290
    Height=152
    Font Name=Helv
    Font Size=8
    item: Combobox
      Control Name=TEST1
      Rectangle=84 6 184 102
      Variable=ENV
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000010000001000000011
      Text=A
      Text=B
      Text=C
      Text=
    end
    item: Static
      Rectangle=2 7 89 22
      Destination Dialog=4
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000000000000000000000
      Text=Please Select Option :
    end
    item: Push Button
      Rectangle=110 70 172 91
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000010000000000000000
      Text=OK
    end
  end
end
item: If/While Statement
  Variable=ENV
end
item: Display Message
  Title=%APPTITLE%
  Text=Option not selected . Please select an Option to Continue...
  Flags=00101000
end
item: Else Statement
end
item: Custom Dialog Set
  Name=Install
  item: Dialog
    Title=Install
    Width=212
    Height=86
    Font Name=Helv
    Font Size=8
    item: Static
      Rectangle=5 5 118 14
      Destination Dialog=4
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000000000000000000000
      Text=Option Selected: %ENV%
    end
    item: Static
      Rectangle=5 20 207 30
      Destination Dialog=4
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000000000000000000000
      Text=To continue installing, Click Yes. To go back to previous screen, Click No.
    end
    item: Push Button
      Rectangle=58 41 93 56
      Variable=NO
      Value=2
      Action=1
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000010000000000000000
      Text=Yes
    end
    item: Push Button
      Rectangle=101 41 136 56
      Variable=NO
      Value=1
      Action=1
      Enabled Color=00000000000000001111111111111111
      Create Flags=01010000000000010000000000000000
      Text=No
    end
  end
end
item: If/While Statement
  Variable=NO
  Value=1
end
item: Set Variable
  Variable=ENV
end
item: End Block
end
item: End Block
end
item: End Block
end

Note: Copy the highlighted content to notepad and change to .wse format and use it



No comments:

Post a Comment