TaskDialog: TLCLTaskDialog and Win32 WS: remove type definitions (and conversion routines) that were copied from the old LCLTaskDialog unit. Part 2.

This commit is contained in:
Bart 2023-08-18 17:57:18 +02:00
parent 17bf02baad
commit 8012169318

View File

@ -204,9 +204,8 @@ end;
const
LCL_IMAGES: array[TTaskDialogIcon] of Integer = (
0 {tdiNone}, idDialogWarning {tdiWarning}, idDialogError {tdiError}, idDialogInfo {tdiInformation}, idDialogShield {tdiShield}, idDialogConfirm {tdiQuestion});
//LCL_FOOTERIMAGES: array[TTaskDialogIcon] of Integer = (
//0 {tdiNone}, idDialogWarning {tdiWarning}, idDialogError {tdiError}, idDialogInfo {tdiInformation}, idDialogShield {tdiShield}, idDialogConfirm {tdiQuestion});
0 {tdiNone}, idDialogWarning {tdiWarning}, idDialogError {tdiError}, idDialogInfo {tdiInformation},
idDialogShield {tdiShield}, idDialogConfirm {tdiQuestion});
const
TD_BTNMOD: array[TTaskDialogCommonButton] of Integer = (
@ -227,33 +226,6 @@ end;
//function TF_DIALOGICON(const aIcon: TTaskDialogIcon): TLCLTaskDialogIcon;
//begin
// case aIcon of
// tdiWarning: Result := tiWarning;
// tdiError: Result := tiError;
// tdiInformation: Result := tiInformation;
// tdiShield: Result := tiShield;
// tdiQuestion: Result := tiQuestion;
// else
// Result := tiBlank;
// end;
//end;
//function TF_FOOTERICON(const aIcon: TTaskDialogIcon): TLCLTaskDialogFooterIcon;
//begin
// case aIcon of
// tdiWarning: Result := tfiWarning;
// tdiError: Result := tfiError;
// tdiInformation: Result := tfiInformation;
// tdiShield: Result := tfiShield;
// tdiQuestion: Result := tfiQuestion;
// else
// Result := tfiBlank;
// end;
//end;
function IconMessage(Icon: TTaskDialogIcon): string;
begin
case Icon of