company logo

GUIBaseContext :: decisionOk - Show decision dialog

The function displays a decision box with Ok/Cancel buttons. The text displayed in the decision box is taken from the string or constructed from a message resource.

Implementation overview

Implementation details

  1. Display Decision from message resource
    bool GUIBaseContext  :: decisionOk ( int32 iMessageNumber, odaba::String &sParameter1, odaba::String &sParameter2, odaba::String &sParameter3 )

    The function creates the decision text from a message resource 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
  2. to list
  3. Display decision from text
    bool GUIBaseContext  :: decisionOk ( odaba::String &sText )

    The desision box displays the message passen in sText .

    • sText - Text string
  4. to list