[Gambas-user] Settings.Write(MyForm) could it only update pos/size if not maximized?
benoit.minisini at gambas-basic.org
Sat Jan 21 19:50:51 CET 2023
Le 21/01/2023 à 19:49, Benoit Minisini a écrit :
> 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
>> 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)
> 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.
Actually it's not random, it's supposed to be the value before the state
is taken into account.
More information about the User