ISDBApplication::MessageBox: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
(MessageBox buttons constants apparently were completely wrong)
Line 6: Line 6:
  |MessageText |String |Text to be shown in the message box.
  |MessageText |String |Text to be shown in the message box.
  |MsgType |EnumMsgBox |Type of the box, can be one of: mtWarning(0), mtError(1), mtInformation(2), mtConfirmation(3) or mtCustom(4).
  |MsgType |EnumMsgBox |Type of the box, can be one of: mtWarning(0), mtError(1), mtInformation(2), mtConfirmation(3) or mtCustom(4).
  |Buttons |Variant |Array of buttons to be shown, can be any of: mbYes(0), mbYesToAll(1), mbNo(2), mbNoToAll(3), mbOK(4), mbOkToAll(5), mbCancel(6), mbAbort(7), mbRetry(8), mbIgnore(9), mbIgnoreToAll(10), mbAll(11) and mbHelp(12).}}
  |Buttons |Variant |Array of buttons to be shown, can be any of: mbYes(0), mbYesToAll(1), mbNo(2), mbNoToAll(3), mbOk(4), mbOkToAll(5), mbEdit(6), mbEditToAll(7), mbCancel(8), mbAbort(9), mbRetry(10), mbIgnore(11), mbIgnoreToAll(12), mbAll(13), mbHelp(14).}}


===Method description===
===Method description===

Revision as of 17:05, 12 January 2013

CoClass SDBApplication, Interface ISDBApplication

Function MessageBox(MessageText As String, MsgType As EnumMsgBox, Buttons) As Long


Parameters

Name Type Description
MessageText String Text to be shown in the message box.
MsgType EnumMsgBox Type of the box, can be one of: mtWarning(0), mtError(1), mtInformation(2), mtConfirmation(3) or mtCustom(4).
Buttons Variant Array of buttons to be shown, can be any of: mbYes(0), mbYesToAll(1), mbNo(2), mbNoToAll(3), mbOk(4), mbOkToAll(5), mbEdit(6), mbEditToAll(7), mbCancel(8), mbAbort(9), mbRetry(10), mbIgnore(11), mbIgnoreToAll(12), mbAll(13), mbHelp(14).


Method description

Shows a customized message box and returns information about button that was pressed, which can be one of the following values: mrNone(0), mrOk(1), mrCancel(2), mrAbort(3), mrRetry(4), mrIgnore(5), mrYes(6), mrNo(7), mrAll(8), mrNoToAll(9), mrYesToAll(10), mrOkToAll(110) or mrIgnoreToAll(111).

Example code

res = SDB.MessageBox( SDB.Localize("Select tracks to be exported, please."), mtError, Array(mbOk))