GTK2: THintWindow, blocks mouse from window below
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
On Windows, using a THintWindow (with NO controls in it) is "transparent" to mouse actions.
Clicking the Hint, will click the window below the hint.
On GTK2 this is not the case.
This only applies, if the hint window, has no child controls. Child controls in a hint window can accept mouse clicks themself.
See issue #21952 "Code Completion in Ubuntu" for steps to reproduce.
On Windows, if "long line hint" is displayed (enable in editor options / resize completion form to force hint):
- single click (mouse over hint) highlights (selects, but does not close completion) the entry below the hint (hint is also updated to show the highlight)
- double click, selects and completes.
Additional information:
procedure THintWindow.WMNCHitTest(var Message: TLMessage);
begin
Message.Result := HTTRANSPARENT;
end;
Mantis conversion info:
- Mantis ID: 21962
- Version: 1.1 (SVN)