comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: changing font type on a widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: changing font type on a widget [message #63046] Thu, 23 October 2008 13:28
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Cindy writes:


> How do I change the font and size of text on a button (or other
> widget)? For example...
>
> myButton = Widget_Button(myBase, value='Test')
>
> How can I change 'Test' to say 'Times' and increase it's size by 2.

On my Windows machine, I would do it like this:

myButton = Widget_Button(myBase, value='Test', font='times*24')

On my Linux machine, I would do it like this:

myButton = Widget_Button(myBase, value='Test', font='-adobe-times-
medium-r-normal--24-240-75-75-p-124-iso8859-1')

> What are the size units?

I've no idea. Font "sizes" are normally expressed as "point sizes".
But as far as I know, these have "meaning" only when you are printing
something with a printing press. I don't think they really have
meaning when you are talking about something on a display. :-)

Cheers,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PLOTS in different windows with different RANGE
Next Topic: how to suppres warning

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:56:12 PDT 2025

Total time taken to generate the page: 0.00434 seconds