mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 20:19:29 +02:00
LCL: MessageDlg: changed result type to TModalResult for nicer code completion
git-svn-id: trunk@38623 -
This commit is contained in:
parent
231d80c777
commit
2edf8a1512
@ -492,18 +492,18 @@ var
|
|||||||
{ MessageDlg }
|
{ MessageDlg }
|
||||||
|
|
||||||
function MessageDlg(const aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint): TModalResult;
|
||||||
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint): TModalResult;
|
||||||
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultButton: TMsgDlgBtn): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultButton: TMsgDlgBtn): TModalResult;
|
||||||
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; const HelpKeyword: string): Integer;
|
Buttons: TMsgDlgButtons; const HelpKeyword: string): TModalResult;
|
||||||
function MessageDlgPos(const aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlgPos(const aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer): TModalResult;
|
||||||
function MessageDlgPosHelp(const aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlgPosHelp(const aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer;
|
||||||
const HelpFileName: string): Integer;
|
const HelpFileName: string): TModalResult;
|
||||||
function CreateMessageDialog(const Msg: string; DlgType: TMsgDlgType;
|
function CreateMessageDialog(const Msg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons): TForm;
|
Buttons: TMsgDlgButtons): TForm;
|
||||||
function QuestionDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function QuestionDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
|
@ -128,7 +128,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function MessageDlg(const aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint): TModalResult;
|
||||||
var
|
var
|
||||||
DefaultIndex,
|
DefaultIndex,
|
||||||
CancelValue,
|
CancelValue,
|
||||||
@ -143,7 +143,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint): TModalResult;
|
||||||
var
|
var
|
||||||
DefaultIndex,
|
DefaultIndex,
|
||||||
CancelValue,
|
CancelValue,
|
||||||
@ -158,7 +158,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultButton: TMsgDlgBtn): Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint; DefaultButton: TMsgDlgBtn): TModalResult;
|
||||||
var
|
var
|
||||||
DefaultIndex,
|
DefaultIndex,
|
||||||
CancelValue,
|
CancelValue,
|
||||||
@ -173,14 +173,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; const HelpKeyword: string): Integer;
|
Buttons: TMsgDlgButtons; const HelpKeyword: string): TModalResult;
|
||||||
begin
|
begin
|
||||||
// TODO: handle HelpKeyword
|
// TODO: handle HelpKeyword
|
||||||
Result:=MessageDlg(aCaption, aMsg, DlgType, Buttons, 0);
|
Result:=MessageDlg(aCaption, aMsg, DlgType, Buttons, 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function MessageDlgPos(const aMsg: String; DlgType: TMsgDlgType;
|
function MessageDlgPos(const aMsg: String; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; Helpctx : Longint; X,Y : Integer): Integer;
|
Buttons: TMsgDlgButtons; Helpctx : Longint; X,Y : Integer): TModalResult;
|
||||||
var
|
var
|
||||||
DefaultIndex,
|
DefaultIndex,
|
||||||
CancelValue,
|
CancelValue,
|
||||||
@ -196,7 +196,7 @@ end;
|
|||||||
|
|
||||||
function MessageDlgPosHelp(const aMsg: string; DlgType: TMsgDlgType;
|
function MessageDlgPosHelp(const aMsg: string; DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer;
|
Buttons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer;
|
||||||
const HelpFileName: string): Integer;
|
const HelpFileName: string): TModalResult;
|
||||||
begin
|
begin
|
||||||
DebugLn ('MessageDlgPosHelp ****** NOT YET FULLY IMPLEMENTED ********');
|
DebugLn ('MessageDlgPosHelp ****** NOT YET FULLY IMPLEMENTED ********');
|
||||||
//TODO: set helpcontext and helpfile
|
//TODO: set helpcontext and helpfile
|
||||||
|
Loading…
Reference in New Issue
Block a user