Function Entry: VLE-ALERT

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VLE-ALERT

Name

vle-alert

Class

BricsCAD VLE Library Function

Syntax

(vle-alert title msg flags)

Arguments and Values

  • 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 MBOK
  • 1 MBOKCANCEL
  • 2 MBABORTRETRYIGNORE
  • 3 MBYESNOCANCEL
  • 4 MBYESNO
  • 5 MBRETRYCANCEL
  • 6 MBCANCELTRYCONTINUE
  • flags for icons :
  • 16 MBICONHAND / MBICONSTOP
  • 32 MBICONQUESTION
  • 48 MBICONEXCLAMATION
  • 64 MBICONASTERISK /
  • MBICONINFORMATION
  • flags for default button (for <return>
  • input) :
  • 0
  • MBDEFBUTTON1
  • 256 MBDEFBUTTON2
  • 512 MBDEFBUTTON3
  • 768 MBDEFBUTTON4
  • flags for behaviour :
  • 0
  • MBAPPLMODAL

Description

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

Return Values

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

Examples

(vle-alert "My CAD App" "Dear
Customer ...." (+ 4 32 4096))

will show Yes+No button, the question mark
icon, as system modal dialogue

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes