[Gambas-user] font size in TolTip

Benoit Minisini gambas at ...1...
Mon Apr 12 14:11:32 CEST 2004


On Friday 09 April 2004 08:40, Frank Berg wrote:
> Hi,
>
> how get i increase the fontsize in the TolTip section for exsample of an
> button.toltip
>
> frank

I'm currently modify the way Gambas handles font size. Now it will do that the 
way Gnome do, i.e., by using its own resolution, by the Font.Resolution 
property.

The default font resolution will be 96 DPI. If you want to change it, you must 
do it at the very beginning of your program, before creating any widget.

If the screen resolution is different from the font resolution, then Gambas 
will adapt. This way, a 10 point font will always display the same, whatever 
the screen resolution is.

If you prefer, a 10 point font size will be in reality a multiple of a pixel 
size. The multiple depending on the value of Font.Resolution!

Otherwise, I will eventually define a Application.ToolTip.Font property :-)

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list