[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:49:26 CET 2023


Le 21/01/2023 à 15:32, Bruce Steers a écrit :
> 
> Did some more testing.  putting this in my program...
> 
> Public Sub Form_State()
> 
>    Debug Me.Geometry.X, Me.Geometry.Y, Me.Geometry.W, Me.Geometry.H
> 
> End
> 
> seems to keep correct size when minimizing.
> The above problems were with GTK3 only.
> the X=0 , Y=32 are my Screen.AvailableX/Y properties.
> 
> QT5 gives this..
> FMain.Form_State.57: 108        102     1008    471 , Normal size
> FMain.Form_State.57: 109        102     1006    471 ' Form.Geometry on 
> maximizing. (So close)
> 
> Respects
> BruceS
> 

The Geometry property is updated when the window is moved or resize, not 
when the state changes. So its value during the State event handler can 
be random.

-- 
Benoît Minisini.



More information about the User mailing list