Greetings,

The latest version of the GW Toolki (8.4.4) has support for the DefaultSelect property in the SimpleDialogs object:

Set s = SharedObjects("com.gwmicro.gwtoolkit.simpledialogs").listboxdialog
s.additem "red", "red"
s.additem "green", "green"
s.additem "blue", "blue"
s.sort = true
s.defaultbutton = "&Select"
s.cancelbutton = "Close"
s.DefaultSelect = 2
print s.ChooseItem("Select a color")

That would result in a dialog with the green list box item automatically selected.

Aaron

--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to