Recent

Author Topic: Hint clipping on bottom, and a fix  (Read 639 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2615
    • UVviewsoft
Hint clipping on bottom, and a fix
« on: April 21, 2023, 10:03:59 am »
When my app changes the Screen.HintFont (it changes only Size to e.g. 7...9),  hint for ATTabs becomes clipped on the bottom.

Lazarus 2.3.0 (rev main-2_3-1386-g23b2324f9f) FPC 3.2.3 x86_64-linux-gtk2

How it looks: attached.
I found the easy fix: add "or DT_NOCLIP" here:
lcl/include/hintwindow.inc

Code: Pascal  [Select][+][-]
  1. function THintWindow.GetDrawTextFlags: Cardinal;
  2. var
  3.   EffectiveAlignment: TAlignment;
  4. begin
  5.   Result := DT_NOPREFIX or DT_VCENTER or DT_WORDBREAK or DT_NOCLIP;  
  6.  

Bug is visible only on Linux GTK2 (Qt5 is ok).

AlexTP

  • Hero Member
  • *****
  • Posts: 2615
    • UVviewsoft
Re: Hint clipping on bottom, and a fix
« Reply #1 on: April 21, 2023, 01:17:57 pm »

 

TinyPortal © 2005-2018