[Gambas-user] How Settings.Read works?

bb adamnt42 at gmail.com
Thu Sep 29 15:01:05 CEST 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220929/bcf57dce/attachment.htm>


More information about the User mailing list