I am using gambas2 (which is a bit like a linux version of visual basic).
At the start of program, how do determine what size to set the application
window?
I believe that the following are factors to consider:
command line switches
users local configuration file
system configuration file
window manager default window size
size when application was last used (presumably window manager decides this)
X11 default window size if the window manager is not running
Hard coded default
Maximum limits
These are in order of precedence, so if I have command line switches, or
parameters in thr use local configuration file or the application system
configuration file, then I will use those.
However, what do I do next?
Does the window manager or X11 provide a default window size?
If so, how do I get my application to use the default size provided by
the window manager?
Can I do something like the following?
FMain.Width = Default
FMain.Height = Default
(There is no value for Default in the form designer, and it does not
allow me to set the window size to zero, so how would I obtain a
default?)
Are there any other factors to consider (not in my list of factors above)?
Also what does the AutoResize property do? Does it affect my window size
in any way and is it anything to do with any of the above?
Mark.
--
Mark Hobley
Linux User: #370818
http://markhobley.yi.org/