Overseer.ChoiceBox

ChoiceBox is used to create dialogs or user menus. Add choices to the box using the AddAnswer method, then call Display to show it to the user. Display will return the answerID string chosen by the user.

Properties (Methods)

There are no properties for this object.

Methods (Properties)

AddAnswer, Clear, Display

long AddAnswer(String answer, String AnswerID)
Adds one answer to the ChoiceBox. The string answer will be shown to the user. Upon making a choice, the string answerID will be returned from this method. If answerID is not specified, the method returns the answer index of the string chosen. The size of an answer on the screen can be controlled with the \n (new line character) in the answer string. To break a line without increasing the size of the answer box, use \r instead.
void Clear()
Removes all answers from ChoiceBox.
String Display(String header, String title)
Displays the choice dialog with all the current answers. Returns the answerID of the user selected answer. The String header is displayed at the top of the dialog, allowing for a description of the situation being presented by the ChoiceBox. The size of this header can be controlled with the \n character in the header string. To break lines in the header, you must use the \r\n pair.


Copyright© 2001 Thought Guild Inc.