StatusBarHeight() parameter as option
Posted: Sat Sep 17, 2016 6:17 am
Hi,
When you open a window you can use MenuHeight() to correct the inner size if you want a menu.
But you can not use StatusBarHeight() for this too, because it requires already a number of status bar,
which is not possible, because the window which is needed to define it is not there
I have to ResizeWindow() after CreateStatusBar().
So I would know that I have 300 pixels for my gadgets.
Bernd
When you open a window you can use MenuHeight() to correct the inner size if you want a menu.
But you can not use StatusBarHeight() for this too, because it requires already a number of status bar,
which is not possible, because the window which is needed to define it is not there

I have to ResizeWindow() after CreateStatusBar().
Code: Select all
OpenWindow(0, 0, 0, 400, 300 + MenuHeight() + StatusBarHeight(), "Would be nice")
Bernd