OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Input dialog boxes are simple dialog boxes that prompt the user for a single line of text input.
You can run input dialog boxes as either modal or modeless dialog boxes, but you will usually run them modally. Input dialog box objects have a dialog box resource associated with them, provided in the resource script file owl\inputdia.rc. Your application's .RC file must include owl\inputdia.rc.
When you construct an input dialog box object, you specify a pointer to the parent window object, a caption, a prompt, and the text buffer and its size. The contents of the text buffer is the default input text. When the user chooses OK or presses Enter, the line of text entered is automatically transferred into the character array.
Here is an example:
In this example, patientName is a text buffer that gets filled with the user's input when the user chooses OK. It is initialized to an empty string for the default text.