Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on June 03, 2020, 08:48:50 am



Title: Ask Reuben 32 - MINWIDTH, MINHEIGHT
Post by: Reuben B. on June 03, 2020, 08:48:50 am
The initial size of a Genero Desktop Client window is the minimum size necessary to display the content.  With forms that only have a small number of fields, that means the form can be too narrow to see the whole of the statusBar, toolBar,  topMenu,  action panel or ringMenu panel, or in the other dimension be too short to see the whole of the toolBar, action or ringMenu panel.  (Note: by using presentation styles, toolBars, action panels, and ringMenu panels can be displayed in both horizontal and vertical directions.)

There are a few ways this can be alleviated. If the statusBar was a concern, you could change the statusBarType to an entry that begins lines*.  You can add a blank line between rows of a GRID as in 4js.com/ask-reuben/ig-11.  You don’t really want to be getting into scenarios where you are making fields wider, or restructuring toolBar, topmenu, actions, simply because you have a small window.

The often overlooked solution is to use the MINHEIGHT, and MINWIDTH properties of a form.   Experiment to come up with suitable values to suit your situation, I typically use MINHEIGHT=25, MINWIDTH=80, the rationale being that was the size of the TUI green screen form of the past, and so most of my normal windows will be close to that size anyway.

Read more at https://4js.com/ask-reuben/ig-32/