message boxes

Parent Previous Next

See msgBox  for button constants used in message boxes.



(2) Message boxes: as of r592, there are four methods that present simple alert boxes:
 TW.information( parent, title, text [, buttons [, default ] ] )
 TW.question( parent, title, text [, buttons [, default ] ] )
 TW.warning ( parent, title, text [, buttons [, default ] ] )
 TW.critical( parent, title, text [, buttons [, default ] ] )
All take the same parameters:
 - parent: either null, or a reference to a TeXworks window (normally TW.target) that the alert should be
associated with
 - title: string to use as the window title. NOTE that this may or may not actually be displayed, depending on
the OS, so it should not be used for important content!
 - text: string to display in the message box
You can optionally specify one or more buttons to display (default is just an "OK" button), and also which
button should be the default. These are specified via numeric flags; see the QMessageBox documentation for
values.
The four "flavors" of message box may or may not differ significantly in visual appearance, depending on the
platform (and possibly Qt style) in use. Choose the appropriate one for the situation, but don't rely on precise
appearance.


http://code.google.com/p/texworks/issues/detail?id=221


default is to be one of the button constants

Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites