[Gambas-user] How Settings.Read works?

Benoit Minisini benoit.minisini at gambas-basic.org
Thu Sep 29 15:04:37 CEST 2022

Le 29/09/2022 à 15:01, bb a écrit :
> On Thu, 2022-09-29 at 13:19 +0200, Benoit Minisini wrote:
>> Settings class has special support for windows (and controls having a
>> Settings property).
>> So, for windows, you just have to write 'Settings.Write(Me)' to save its
>> geometry, and 'Settings.Read(Me)' to restore it.
>> You can't use the default value argument in that case, as you can't
>> guess the format used for storing the window data.
>> Regards,
> Maybe I have misunderstood this for years. I thought that the property 
> involved was the
> Layout property. I have used that property in many custom grid controls 
> to save and
> restore the user's choice of column widths.
> Can I save more than just the layout by creating a more complex Settings 
> property (and if so, how?)
> b

The settings is not necessarily just the layout.

Benoît Minisini.

More information about the User mailing list