ISDBApplication::MessageBox

From MediaMonkey Wiki
Revision as of 13:34, 21 March 2007 by Jiri (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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), mbCancel(6), mbAbort(7), mbRetry(8), mbIgnore(9), mbIgnoreToAll(10), mbAll(11) and mbHelp(12).


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))