home *** CD-ROM | disk | FTP | other *** search
ObjectVision Datafile | 1991-11-14 | 4.7 KB | 124 lines |
- Message Box DLL Calculator!
- Windows API Message Box Constants
- Message Box DLL Help
- Show Message Box
- Register Message Box DLL
- Message Box Type
- Message Text
- Message Title
- Message Box Buttons
- Message Box Icon
- Message Button Value
- Message Icon Value
- Default Highlight Button
- Message Default Button Value
- Message Box Return Value
- Message Box Mode Value
- Message Box Mode
- Cancel
- View Constants
- Close
- Courier
- System
- Courier
- Helvetica
- Helvetica
- /* MessageBox() Constants */
- Hex Decimal
- OK 0x0000 0
- OKCANCEL 0x0001 1
- ABORTRETRYIGNORE 0x0002 2
- YESNOCANCEL 0x0003 3
- YESNO 0x0004 4
- RETRYCANCEL 0x0005 5
- NOICON 0X0000 0
- ICONHAND 0x0010 16
- ICONQUESTION 0x0020 32
- ICONEXCLAMATION 0x0030 48
- ICONINFORMATION 0x0040 64
- DEFBUTTON1 0x0000 0
- DEFBUTTON2 0x0100 256
- DEFBUTTON3 0x0200 512
- APPLMODAL 0x0000 0
- SYSTEMMODAL 0x1000 4096
- This demo shows how to use the Windows API
- MessageBox function with Object Vision 2.0's
- DLL capability. Although OV 2.0 includes a simple
- Message Box function, there is no built in function for
- the other normal Windows Message Boxes such as
- OK Cancel, Abort Retry Ignore, etc.
- The DLL Call to USER.EXE is simple. However
- the parameter for the Message Box type normally
- uses #defines from the windows.h header file (in C
- and Pascal). Windows.h substitutes descriptive constants
- such as MB_OKCANCEL for the underlying numeric
- constants. Since there is no windows.h available to
- OV it can get quite tedious to calculate all the numeric
- options to get the Message Box type that you want.
- In this demo the value of MB type is calculated
- based on the selection made with the radio buttons.
- There are two basic Message Box types that
- are useful with OV:
- Application Modal: allows switching from OV to
- another application.
- System Modal: prevents switching to any other
- application and brings all background processes
- to a halt. This is generally used for extreme
- situations such as low memory conditions, etc.
- @MESSAGEBOX
- @MESSAGEBOX
- IyCCH
- Message Text,Message Title,Message Box Type
- USER.EXE
- MessageBox
- OK CANCEL
- This is the text of the Message Box!
- OV Message Box Demo
- Message Box Buttons
- OK CANCEL
- ABORT RETRY IGNORE
- YES NO
- YES NO CANCEL
- RETRY CANCEL
- NO ICON
- ICON QUESTION
- ICON STOP
- ICON EXCLAMATION
- ICON INFORMATION
- NO ICON
- RETRY CANCEL
- YES NO
- YES NO CANCEL
- ABORT RETRY IGNORE
- OK CANCEL
- NO ICON
- ICON EXCLAMATION
- ICON INFORMATION
- ICON STOP
- ICON QUESTION
- FIRST BUTTON
- SECOND BUTTON
- THIRD BUTTON
- FIRST BUTTON
- THIRD BUTTON
- SECOND BUTTON
- FIRST BUTTON
- IGNORE
- RETRY
- ABORT
- CANCEL
- NO FOCUS
- 32768
- TASK MODAL
- SYSTEM MODAL
- APPLICATION MODAL
- APPLICATION MODAL
- SYSTEM MODAL
- APPLICATION MODAL
- Message Box DLL Help
- Constants Cancel
- Message Box DLL Help
- Windows API Message Box Constants
- Windows API Message Box Constants
- Cancel
-