WPCubed Product Support

Stack Overflow using Hyperlink Event

If I create a HyperLinkEvent procedure with or without something in it (comment out the line of code), and I double-click a hyperlink, it causes a Stack Overflow.

Example:

procedure TWPToolsFMXDemo.WPRichText1HyperLinkEvent(Sender: TObject; text,
  url: string; IgnoredNumber: Integer);
begin
  //MessageDlg(url, TMsgDlgType.mtInformation, [TMsgDlgBtn.mbOK], 0 );
end;

Delphi 10.4.2

WPTools FMX 2020-05-04

Windows 64 bit build

#1 ✎ ♥ 0
2.9k Views 2 users read 1 min
wpsupport

The hyperlink event is not intended for this use. This works fine on VCL but under FMX it is a completely different thing.

With FMX you always need to decouple user actions from output methods or showing a dialog box using a timer or a message handler. If you don't do this, you may miss screen updates.

#2 ♥ 0
This category is archived. No new posts are possible.