Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 32 - MINWIDTH, MINHEIGHT  (Read 3857 times)
Reuben B.
Four Js
Posts: 1046


« 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/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines