company logo

GUIBaseContext :: messageBox - Show message box

The function displays a message box. The text displayed in the message box is taken from the string or constructed from a message resource.

Implementation overview

Implementation details

  1. Display message box for last error
    GUIBaseContext  :: messageBox (  )

    The function displays a message box for the last registered application error. Text variables in the message are replaced as being passed to the error.

  2. to list
  3. Create message from message resource
    GUIBaseContext  :: messageBox ( int32 iMessageNumber, odaba::String &sParameter1, odaba::String &sParameter2, odaba::String &sParameter3 )

    The function creates the message text from a message resource (error definition) defined in the resource database. The function locates the message resource identified by the message number iMessageNumber and replaces message variables by parameters passed in sParameter1 ... sParameter3.

    When passing iMessageNumber 0 or with an undefined value, parameters are combined to a message, directly.

    • iMessageNumber - Message number

      The message number passed refers be an error/message definition the resource database.

    • sParameter1 - String parameter
    • sParameter2 - String parameter
    • sParameter3 - String parameter
  4. to list
  5. Display test in message box
    GUIBaseContext  :: messageBox ( odaba::String &sText )

    The message box displays the message passen in sText.

    • sText - Text string
  6. to list