mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:09:20 +02:00
TaskDialog: implement CommandLinkHint for emulated TaskDialog as well. Resolves issue #31395.
This commit is contained in:
parent
fff6152dde
commit
1aea03f44f
@ -392,12 +392,10 @@ begin
|
||||
if (tfEmulateClassicStyle in FDlg.Flags) then
|
||||
SetBounds(X,Y,aWidth-10-X,40) else
|
||||
SetBounds(X,Y,aWidth-16-X,40);
|
||||
Caption := NoCR(CustomButtons[i], aHint);
|
||||
if (aHint <> '') then
|
||||
begin
|
||||
Caption := CustomButtons[i];
|
||||
Hint := FDlg.Buttons[i].CommandLinkHint;
|
||||
if (Hint <> '') then
|
||||
ShowHint := True;
|
||||
Hint := aHint; // note shown as Hint
|
||||
end;
|
||||
inc(Y,Height+2);
|
||||
ModalResult := i+TaskDialogFirstButtonIndex;
|
||||
OnClick := @HandleEmulatedButtonClicked;
|
||||
|
Loading…
Reference in New Issue
Block a user