[Gambas-user] Settings.Write(MyForm) could it only update pos/size if not maximized?

Benoit Minisini benoit.minisini at gambas-basic.org
Sat Jan 21 19:38:08 CET 2023


Le 21/01/2023 à 14:46, Bruce Steers a écrit :
> 
> I tried using the new property.
> Changed the line 420 in Settings.class WriteWindow method..
> 
>    If hWindow.Maximized Or If hWindow.FullScreen Then
>      aVal = [hWindow.Geometry.X, hWindow.Geometry.Y, hWindow.Geometry.W, 
> hWindow.Geometry.H, S, 1]
>    Else
>      aVal = [X, Y, W, H, S, 0]
>    Endif
> 
> But i found if maximized...
> hWindow.Geometry.X is always 0
> hWindow.Geometry.Y is always 32
> hWindow.Geometry.W is 3px larger than normal W
> hWindow.Geometry.H is 1px larger
> 
> Respects
> BruceS
> 

No problem here (using KWin window manager), both with Qt or GTK+.

-- 
Benoît Minisini.



More information about the User mailing list