[Gambas-bugtracker] Bug #2053: Menu Editor not able to see/set Caption

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed Jan 27 16:14:03 CET 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2053&from=L21haW4-

Comment #11 by Benoît MINISINI:

Text box without border has a minimum height equal to the font height.

If the text box height is lower than this minimum height, it is hidden. This is what you get.

The fields that disappear on the IDE are ButtonBox controls that have an height of 3 x Desktop.Scale, and Desktop.Scale is (1 + ((<font size in point>) * (<screen resolution>) * 2 / 3 / 96).

ButtonBox controls embed a textbox whose height is the height of the ButtonBox minus the size of the border frame, that depends on the widget style!

You see, it's almost impossible to guess if the textbox will be actually visible or not.

All that just to avoid tons of GTK+3 warnings on the error output... :-/




More information about the Bugtracker mailing list