Contents | Index | < Browse | Browse >


   FONT SENSITIVITY :

Gui4Cli is Font Sensitive!

Well, ok.. not so much font-sensitive as font-aware..
(font-respectful ?.. font-give-a-damn ?..)

You can turn this feature off with the NOFONTSENSE global command.

What it does, is the following :

- On opening the GUIs window, it will check to see if the text, using
  the default window font, will fit into the respective gadget, and if not,
  it will enlarge the window and resize the gadgets, so that the text
  does fit.

The following restrictions apply (for now) :

- Only xBUTTON, xCYCLER, TEXT and xTEXTIN gadgets will be checked and
  even then, only when no GADFONT command has been declared for them.

  Other gadgets, such as sliders etc do not have text in them, and 
  others, such as listviews, are self-adjusting, so no action is taken
  on their behalf.

  This means that if you do not have any of these gadgets in your
  GUI, the GUI will not adjust itself.

- Resizing is done only to increase the GUI's size.

- Currently, width is not checked -  (tried it and didn't like it..)
  The width is resized proportionally to the height.

  
    NOTES ON DESIGNING GUIs :

The Left & Top sizes you declare will be offsets INSIDE the window.
Do not account for the window border, it will be added automatically.

If you want to make a GUI which other people might use, it is best
to make it so it looks good using TOPAZ 8 font, on a High-Res, 
Non-Interlaced screen. Then Gui4Cli can resize the window for a
bigger font, if needed.

Use the #MONO and #SCREEN keywords instead of actual font names
whereever possible, since they denote the users preferred monospace
and screen (proportional) font.

Buttons, Text and Cycler type gadget heights will be resized to the
font-height + 2 pixels, whereas xTEXTIN type gadgets will be resized
to font-height + 5 pixels. - So make the xTEXTIN gads a little taller.