Changes

Dialogs and Message Boxes in VB6

189 bytes added, 20:28, 11 February 2008
/* Common Dialog Control */
The following lines were added (+) and removed (-):
* The FileOpen method calls VBGetOpenFileName, which calls Windows GetOpenFileName.* The '''FileOpen''' method calls VBGetOpenFileName, which calls Windows GetOpenFileName.* The FileSaveAs method calls VBGetSaveFileName, which calls Windows GetSaveFileName.* The '''FileSaveAs''' method calls VBGetSaveFileName, which calls Windows GetSaveFileName.* The FilePrint method calls VBPrintDlg, which calls Windows PrintDlg.* The '''FilePrint''' method calls VBPrintDlg, which calls Windows PrintDlg.* The FilePageSetup method calls VBPageSetupDlg, which calls Windows PageSetupDlg.* The '''FilePageSetup''' method calls VBPageSetupDlg, which calls Windows PageSetupDlg.* The OptionFont method calls VBChooseFont, which calls Windows ChooseFont.* The '''OptionFont''' method calls VBChooseFont, which calls Windows ChooseFont.* The OptionColor method calls VBChooseColor, which calls Windows ChooseColor.* The '''OptionColor''' method calls VBChooseColor, which calls Windows ChooseColor.* vbOKOnly 0 Display OK button only.  * '''vbOKOnly''' 0 Display OK button only. (default)* vbOKCancel 1 Display OK and Cancel buttons.  * '''vbOKCancel''' 1 Display OK and Cancel buttons.  * vbAbortRetryIgnore 2 Display Abort, Retry, and Ignore buttons.  * '''vbAbortRetryIgnore''' 2 Display Abort, Retry, and Ignore buttons.  * vbYesNoCancel 3 Display Yes, No, and Cancel buttons.  * '''vbYesNoCancel''' 3 Display Yes, No, and Cancel buttons.  * vbYesNo 4 Display Yes and No buttons.  * '''vbYesNo''' 4 Display Yes and No buttons.  * vbRetryCancel 5 Display Retry and Cancel buttons.  * '''vbRetryCancel''' 5 Display Retry and Cancel buttons.  * vbCritical 16 Display Critical Message icon.  * vbQuestion 32 Display Warning Query icon. * vbExclamation 48 Display Warning Message icon. * vbInformation 64 Display Information Message icon. * vbDefaultButton1 0 First button is default. * vbDefaultButton2 256 Second button is default. * vbDefaultButton3 512 Third button is default. * vbDefaultButton4 768 Fourth button is default. * vbApplicationModal 0 Application modal; the user must respond to the message box before continuing work in the current application. * vbSystemModal 4096 System modal; all applications are suspended until the user responds to the message box. * vbMsgBoxHelpButton 16384 Adds Help button to the message box * VbMsgBoxSetForeground 65536 Specifies the message box window as the foreground window * vbMsgBoxRight 524288 Text is right aligned * vbMsgBoxRtlReading 1048576 Specifies text should appear as right-to-left reading on Hebrew and Arabic systemsReturn Values;* '''vbCritical''' 16 Display Critical Message icon.  * Constant Value Description * '''vbQuestion''' 32 Display Warning Query icon. * vbOK 1 OK  * '''vbExclamation''' 48 Display Warning Message icon. * vbCancel 2 Cancel  * '''vbInformation''' 64 Display Information Message icon. * vbAbort 3 Abort   * vbRetry 4 Retry  * '''vbDefaultButton1''' 0 First button is default. * vbIgnore 5 Ignore  * '''vbDefaultButton2''' 256 Second button is default. * vbYes 6 Yes  * '''vbDefaultButton3''' 512 Third button is default. * vbNo 7 No* '''vbDefaultButton4''' 768 Fourth button is default.  * '''vbApplicationModal''' 0 Application modal; the user must respond to the message box before continuing work in the current application. * '''vbSystemModal''' 4096 System modal; all applications are suspended until the user responds to the message box.  * '''vbMsgBoxHelpButton''' 16384 Adds Help button to the message box * '''VbMsgBoxSetForeground''' 65536 Specifies the message box window as the foreground window * '''vbMsgBoxRight''' 524288 Text is right aligned * '''vbMsgBoxRtlReading''' 1048576 Specifies text should appear as right-to-left reading on Hebrew and Arabic systems Return Values* '''vbOK''' 1 OK  * '''vbCancel''' 2 Cancel  * '''vbAbort''' 3 Abort  * '''vbRetry''' 4 Retry  * '''vbIgnore''' 5 Ignore  * '''vbYes''' 6 Yes  * '''vbNo''' 7 No 
Bureaucrat, administrator
16,192
edits