mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:10:16 +02:00
Dialogs: Do not show an icon in MessageDlg is DialogType = mtCustom.
Reason: Delphi compatibility. Resolves issue #0025475. git-svn-id: trunk@43621 -
This commit is contained in:
parent
8db920c565
commit
26611f46f0
@ -159,7 +159,7 @@ begin
|
||||
end;
|
||||
else
|
||||
begin
|
||||
FBitmap := GetDialogIcon(idDialogInfo);
|
||||
//FBitmap := GetDialogIcon(idDialogInfo); //Delphi does not display an Icon in this case
|
||||
if ACaption <> '' then
|
||||
Caption := ACaption
|
||||
else
|
||||
@ -303,7 +303,7 @@ begin
|
||||
if FBitmap <> nil then
|
||||
cMinLeft := cBitmapX + max(32, FBitmap.Width) + cLabelSpacing
|
||||
else
|
||||
cMinLeft := 0;
|
||||
cMinLeft := cLabelSpacing;
|
||||
|
||||
// calculate required width for the text
|
||||
reqWidth := cMinLeft + TextBox.Right;
|
||||
|
Loading…
Reference in New Issue
Block a user