The Question Box Object
TQuestionBox.showModal('Question Box Sample', 'Are you sure you want to close the box?');

Question box is a shared object that you may use to ask the user a yes/no question. When the user hits yes button or no button, the question box will hide and a corresponding callback will be called.

Question Box Methods and Properties
Method/Property Description
showModal Shows the question box object. Form:

showModal(title, message, yesCallback, noCallback, imageObject)

Where:
  • title is the question box title.
  • message is the question text.
  • yesCallback is the callback that will be called when the user clicks on the yes button.
  • noCallback is the callback that will be called when the user clicks on the no button.
  • imageObject is a TImage object that will show on the left of the box. The default image will show up when no image object is specified.