Recent

Author Topic: Hint window peculiarity  (Read 1590 times)

bytebites

  • Hero Member
  • *****
  • Posts: 778
Hint window peculiarity
« on: November 09, 2020, 02:14:45 pm »
Lazarus trunk version: When hint window has 9 lines, the last line does not appear,  there is empty line. With 17 lines there is two missing lines.
2.10 version is correct.

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Hint window peculiarity
« Reply #1 on: November 09, 2020, 05:02:39 pm »
I see no problem
Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. var
  3.   i: integer;
  4.   s: string;
  5. begin
  6.   s := '';
  7.   for i := 1 to 20 do
  8.     s := s + IntToStr(i) + LineEnding;
  9.  
  10.   with tlabel.Create(form1) do
  11.   begin
  12.     parent := form1;
  13.     Caption := 'see hint window';
  14.     left := 50;
  15.     top := 50;
  16.     hint := Trim(s);
  17.     Visible := True;
  18.     ShowHint := True;
  19.   end;
  20. end;
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4676
  • I like bugs.
Re: Hint window peculiarity
« Reply #2 on: November 09, 2020, 07:00:26 pm »
Works correctly here, too.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

bytebites

  • Hero Member
  • *****
  • Posts: 778
Re: Hint window peculiarity
« Reply #3 on: November 09, 2020, 07:10:49 pm »
Gtk 2 on linux Mint.

Bart

  • Hero Member
  • *****
  • Posts: 5680
    • Bart en Mariska's Webstek
Re: Hint window peculiarity
« Reply #4 on: November 09, 2020, 08:21:36 pm »
Please file a bugreport and attach the sample project (sources only).
Category should be WidgetSet, and specify it is GTK2.

Bart

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4676
  • I like bugs.
Re: Hint window peculiarity
« Reply #5 on: November 10, 2020, 10:26:58 am »
Yes, with GTK2 I can reproduce the problem.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018