vle-alert
(vle-alert title msg
flags)
shows a message box, which can be customised
in wide range (based on Windows' ::MessageBox()
function)
Author: Lee Mac, Copyright © 2012 -
www.lee-mac.com, original code:
http://lee-mac.com/popup.html
Arguments
|
title the title for the message box (the caption
string)
msg the
message to be displayed; will be word-wrapped
flags combination (addition) of integers specifying
behaviour
flags for button :
0 MB_OK
1 MB_OKCANCEL
2 MB_ABORTRETRYIGNORE
3 MB_YESNOCANCEL
4 MB_YESNO
5 MB_RETRYCANCEL
6 MB_CANCELTRYCONTINUE
flags for icons :
16 MB_ICONHAND / MB_ICONSTOP
32 MB_ICONQUESTION
48 MB_ICONEXCLAMATION
64 MB_ICONASTERISK /
MB_ICONINFORMATION
flags for default button (for <return>
input) :
0
MB_DEFBUTTON1
256 MB_DEFBUTTON2
512 MB_DEFBUTTON3
768 MB_DEFBUTTON4
flags for behaviour :
0
|
MB_APPLMODAL
|
4096
|
MB_SYSTEMMODAL
|
8192
|
MB_TASKMODAL
|
16384
|
MB_HELP
|
|
|
65536
|
MB_SETFOREGROUND
|
131072
|
MB_DEFAULT_DESKTOP_ONLY
|
|
|
262144
|
MB_TOPMOST
|
524288
|
MB_RIGHT
|
1048576
|
MB_RTLREADING
|
|
Return
|
number of button which was
used to finish the dialogue
1 OK button
2 Cancel button
3 Abort button
4 Retry button
5 Ignore button
6 Yes button
7 No button
10 Try Again button
11 Continue button
|
Example
|
(vle-alert "My CAD App" "Dear
Customer ...." (+ 4 32 4096))
will show Yes+No button, the question mark
icon, as system modal dialogue
|
Alias
|
|
Remarks
|
|