 |
ERD_dialog |
Function (ROM Call 0x151) |
Displays an error dialog box.
ERD_dialog displays an error dialog box with a message corresponding to the
error code err_no. See the TI manual for a meaning of the various
error codes. ERD_dialog returns TRUE or
FALSE, depending of whether the user
exits the dialog box by pressing ENTER or ESC key. This routine may cause
heap compression.
prog_flag is a flag which may be FALSE or
TRUE. Normally, it needs to be FALSE,
but when it is TRUE, in addition to the standard button
whith message "Esc=CANCEL", another button with message "Enter=GOTO" will be
added in the error dialog box. This is mostly useless, but
error dialog boxes have this option (TIOS uses this when you break a BASIC program).
Note, however, that pressing Enter will not perform the actual transfer to the program
editor.
Uses: ER_catch, ER_success, find_error_message, HeapAlloc, HeapFreeIndir, EV_captureEvents, EV_clearPasteString, EV_eventLoop, EV_restorePainting, EV_suspendPainting, OSWriteLinkBlock, sprintf, off, OSSetSR, OSTimerRestart, XR_stringPtr, EV_errorCode, sf_width, ResetSymFlags, DrawStaticButton, WinActivate, WinAttr, WinClose, WinFont, WinOpen, WinStrXY, ROM Call 0x471
Used by: ERD_process, cmd_input, cmd_inputstr, cmd_prompt, Dialog, VarNew, VarSaveAs, EV_defaultHandler, EV_eventLoop, handleVarLinkKey, HomeExecute, TE_handleEvent, TE_pasteText, GT_Error, GT_Trace, SP_Define, ROM Call 0x45B, ROM Call 0x5F1