home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk23
/
dir02
/
f000790.re_
/
f000790.re
Wrap
Text File
|
1996-04-02
|
2KB
|
54 lines
' Example of MbeMessageBox Extension
'-----------------------------------------
'--------------------------------------------------------------------
'
' Copyright (1995) Bentley Systems, Inc., All rights reserved.
'
' $Workfile: msgbox.bas $
' $Revision: 6.1 $
' $Date: 10 Aug 1995 14:58:30 $
'
' "MicroStation" is a registered trademark of Bentley Systems, Inc.
'
' Limited permission is hereby granted to reproduce and modify this
' copyrighted material provided that the resulting code is used only
' in conjunction with Bentley Systems products under the terms of the
' license agreement provided therein, and that this notice is retained
' in its entirety in any such reproduction or modification.
'
'--------------------------------------------------------------------
' It shows different button configurations:
' MBE_OKBox
' MBE_OKCancelBox
' MBE_YesNoBox
' MBE_YesNoCancelBox
'
' It also shows different Icons:
' None
' MBE_CriticalIcon
' MBE_QuestionIcon
' MBE_InfoIcon
' MBE_WarningIcon
'-----------------------------------------
Sub WhichButton (buttonValue as long)
Select Case buttonValue
Case MBE_BUTTON_OK
MbeMessageBox "OK button was pressed"
Case MBE_BUTTON_CANCEL
MbeMessageBox "Cancel button was pressed"
Case MBE_BUTTON_YES
MbeMessageBox "Yes button was pressed"
Case MBE_BUTTON_NO
MbeMessageBox "No button was pressed"
End Select
end sub ' WhichButton
'-----------------------------------------
Sub main
Dim button as Long
WhichButton (MbeMessageBox ("Press a button", MBE_OKBox or MBE_InfoIcon))
WhichButton (MbeMessageBox ("Press a button", MBE_OKCancelBox or MBE_WarningIcon))
WhichButton (MbeMessageBox ("Press a button", MBE_QuestionIcon or MBE_YesNoBox))
WhichButton (MbeMessageBox ("Press a button", MBE_CriticalIcon or MBE_YesNoCancelBox))
End Sub
'-----------------------------------------