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

Home » Public Forums » archive » Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning [message #61279] Mon, 14 July 2008 04:10 Go to previous message
Justus Skorps is currently offline  Justus Skorps
Messages: 20
Registered: April 2007
Junior Member
Hi,

I just tried to use the colorbuttonbitmap tool in a program and got a
problem with it:

I am working on an Solaris system and normally, when I enter

Device, get_current_font=font

I get an empty string as answer. But after using the
colorbuttonbitmap.pro another value is set ('-dt-interface system-
medium-r-normal-m sans-17-170-72-72-p-97-iso8859-1') and I cannot
reset the font. Trying to enter the empty string with

Device, set_font=''

does not work. The problem is now that any letters as marks, titles...
have an different size depending if the colorbuttonbitmap function has
been used or not. After using the function I have to quit IDL and
start it again, a simple reset does not work, to get the normal font
size back.

Anyone has a solution for this problem?

Thanks,
Justus

---The code snipplet (taken from colorbuttonbitmap.pro from D.
Fanning):

wTLB = Widget_Base()
wBtn = Widget_Button(wTLB)
font = Widget_Info(wBtn, /FontName)
Widget_Control, wTLB, /Destroy

Window, XSize=100, YSize=100, /Pixmap, /Free, Retain=2
Device, Set_Font=font
WDelete, !D.Window
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format Code Question
Next Topic: Plea for RESOLVE_ALL Help!

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

Current Time: Fri Oct 10 13:36:23 PDT 2025

Total time taken to generate the page: 0.08255 seconds