12.2.5 Form - Minimum-Maximum Window

If you set the Utility window property to True, you can write a programme whose window follows the FreeDesktop standard. You can maximise such a window and it will assume a minimum size equal to the size of the form at development time in the IDE or the window created in the source code at runtime. If you implement this, then you should consider the following points:

The enclosed project uses the utility property in the (start) form to manually adjust the window size to the different image formats with sufficient precision - without allowing image fragments in the display at minimum window size:

B1
B2
Figure 12.2.5.1: Minimum window size

The 'Tips of the Day …' in the Help menu item in the Gambas IDE also employs the Utility window property to always display the complete and easy-to-read information:


Figure 12.2.5.2: Minimum window size for the selected tip

Download

Project

Download