#include <OBOX.H>
List of all members.
Definition at line 29 of file OBOX.H.
Popup a message box and ask user 'Ok' or 'Cancel'
Syntax :: ask( <char*> )
<char*> msgStr = pointer to the message, use ' ' to seperate lines [char*] buttonDes1 = the description of button 1 (default : "Ok") [char*] buttonDes2 = the description of button 2 (default : "Cancel") [int] x1, y1 = the left corner of the box, if not given center the box on the screen
Return : 1 - if user select "Ok" button 0 - if user select "Cancel" button
Definition at line 273 of file Obox.cpp.
References BOX_BOTTOM_MARGIN, BOX_LINE_SPACE, BOX_TOP_MARGIN, and BOX_X_MARGIN.
Display a Ok and Cancel button, and wait for player to click one of them
<Button&> buttonOk, buttonCancel = the defined buttons [char*] strOk, strCancel = the string of the button Ok & Cancel ( default : "Ok" & "Cancel" )
Definition at line 237 of file Obox.cpp.
References BOX_BUTTON_MARGIN.
Display two buttons, and wait for player to click one of them
[char*] buttonDes1 = the description of button 1 (default : "Ok") [char*] buttonDes2 = the description of button 2 (default : "Cancel") [int] rightClickClose = whether pressing the right button will close the window (default: 1)
Definition at line 181 of file Obox.cpp.
References BOX_BUTTON_MARGIN, CURSOR_NORMAL, KEY_ESC, and KEY_RETURN.
Given a string and then calculate the size of the box which can contain the string.
<char*> msgStr = the message string <int> minHeight = minimum height of the box [int] x1, y1 = the top left corner of the box
Definition at line 134 of file Obox.cpp.
References BOX_LINE_SPACE, BOX_X_MARGIN, MAX_BOX_WIDTH, VGA_HEIGHT, and VGA_WIDTH.
Close the previously opened box
Definition at line 112 of file Obox.cpp.
Popup a message box and ask user to press the 'Ok' button
Syntax :: msg( <char*> )
<char*> msgStr = pointer to the message, use ' ' to seperate lines. [int] enableTimeOut = enable time out or not (default: 1) [int] x1, y1 = the left corner of the box, if not given center the box on the screen.
Definition at line 309 of file Obox.cpp.
[int] timeOut - 1=enable inactive timeout 0=disable inactive timeout (default : 1 )
Definition at line 159 of file Obox.cpp.
Given the width & height of the box, and open the box
<int> boxWidth, boxHeight - width & height of the box
[int] downCentre - whether paint down the center of the box (default : 1)
Definition at line 76 of file Obox.cpp.
References VGA_HEIGHT, and VGA_WIDTH.
Open the box with the given coordinations
<int> x1, y1, x2, y2 - coordination of the box (default : use current settings)
Definition at line 56 of file Obox.cpp.
Definition at line 90 of file Obox.cpp.
References box_x1, box_x2, box_y1, box_y2, err_when, and opened_flag.
<char*> formatStr - formated message with % argument <....> the argument list
Definition at line 420 of file Obox.cpp.
Popup a progress indicator
Syntax :: progress( <char*> )
Definition at line 345 of file Obox.cpp.
Definition at line 383 of file Obox.cpp.
References progress_val, and String::str_buf.
Popup a box and display a message. Call Box::close() to close the box.
Syntax :: tell( <char*> )
<char*> tellStr = pointer to the message, use ' ' to seperate lines [int] x1, y1 = the left corner of the box, if not given center the box on the screen
Definition at line 453 of file Obox.cpp.
Definition at line 32 of file OBOX.H.
Definition at line 31 of file OBOX.H.
Referenced by paint().
[static]
Definition at line 44 of file Obox.cpp.
Definition at line 34 of file OBOX.H.
Referenced by progress_update().
Definition at line 33 of file OBOX.H.