Recent

Author Topic: wsMinimized only working sometimes  (Read 2947 times)

winni

  • Hero Member
  • *****
  • Posts: 3197
wsMinimized only working sometimes
« on: December 03, 2021, 09:43:47 am »
Hi!

I placed a button on the Form to minimize it:

Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button4Click(Sender: TObject);
  2. begin
  3.    WindowState:= wsMinimized;
  4. end;
  5.  

It only works sometimes.
After the start of the app it works definitly not.

What kind of miracle is this??

Winni

PS: Lin64, gtk2, laz 2.012,  fpc 3.2
« Last Edit: December 03, 2021, 09:48:03 am by winni »

Handoko

  • Hero Member
  • *****
  • Posts: 5130
  • My goal: build my own game engine using Lazarus
Re: wsMinimized only working sometimes
« Reply #1 on: December 03, 2021, 09:56:26 am »
I've just tested it on Lazarus 2.0.10 64-bit GTK2 Ubuntu Mate 21.10. It worked correctly, couldn't reproduce the issue.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: wsMinimized only working sometimes
« Reply #2 on: December 03, 2021, 10:48:12 am »
Hi!

Thanx for testing.

I am here with Suse Tumbleweed and KDE.
The error is reproducable,

I've got not the solution but this workaround:

Code: Pascal  [Select][+][-]
  1.  Application.Minimize;
  2.  
  3.  

Winni

 

TinyPortal © 2005-2018