show_option1(caption,prompt,items)

Shows a dialog box to the user,containing a list of items.User can select one of them.caption is the text to show in the titlebar of the dialog.prompt is the prompt to the user.items is a string containing a list of items to show,separated by "|".Ex "Red|Green|Blue".It returs the index of the item selected Ex 0 for Red, 1 for Green ,2 for blue.If the user press cancel it returns -1

Example

ch=show_option1("My Game","Select a color.","Red|Green|Blue");

Screen Shot of Dialog Box