Settings.Read (gb.settings)
Sub Read ( hObject As Object [ , sKey As String, vDefault As Variant ] )
Initializes the specified object from the settings file.
The settings must have been written with the
Write method.
This method can handle
Window objects, or any control having a
Settings property.
Window settings are its position, and its size if the window is resizable.
The key used to store the settings is the name of the window class, with the
Key optional argument added.
The settings of the other controls depends on the implementation of their
Settings property.
The key used to store the settings is the class name of the parent window of the control, followed
by the name of the control, or the value of
Key argument if it is specified.
Warning:
This will not work on a A wayland desktop as wayland does not support top level window positioning.
Note:
When restoring a window position the underlying window manager may perform it's own positioning functions too (like snap)
Due to this the restored position may get adjusted and not be exact. Re-positioning may be required once the program has fully loaded.