怎样获得Dialog的返回值OpenDialog
SaveDialog
OpenPictureDialog
SavePictureDialog
FontDialog
ColorDialog
PrintDialog
PrintSetupDialog
FindDialog
ReplaceDialog
SaveDialog
OpenPictureDialog
SavePictureDialog
FontDialog
ColorDialog
PrintDialog
PrintSetupDialog
FindDialog
ReplaceDialog
filename:String;
......
if OpenDialog.Execute then
filename:=OpenDialog.FileName
......
bFlag: boolean;
.......
bFlag = ...Dialog.Execute;
bFlag 就是调用对话框的结果
。。
TDialog introduces the abstract Execute method, which descendant classes use to open the dialog instance at runtime. Execute returns true if the dialog executes normally (typically, if the user closes the dialog by clicking the OK button). It returns false if the dialog fails to appear or the user cancels.