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

Home » Public Forums » archive » Re: sec : u Re: Widget Fonts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: sec : u Re: Widget Fonts [message #24347] Tue, 27 March 2001 00:37
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
andrew cool wrote:
>
> Martin Schultz wrote:
>>
> <snip lotsa widget font stuff>
>>
>> Cheers,
>> Martin
>>
>> PS: By pure chance, I recently discovered IDL's xfont utility.
>> Apparently it only works for Unix platforms, although it shouldn't be
>> too hard to write a tool that would be platform independent.
>>
>
> Not so, Martin! XFONT has worked on VMS since '92 ...
>
> Andrew C.
>

Sorry! Just how could I forget this one outstanding operating system?
Shame on me, really. What I meant to say was that the font descriptor
string for consumer OS's like Windows or Mac may look different to the
Unix (and I assume VMS) world, but the properties that are defined,
are more or less the same. So it would just be logical in the IDL
"philosophy" to have an XFONT tool that does the same on all
platforms, namely let the user select a font. Then one could finally
add a button to all widget programs to allow the user to change the
widget font, and it would be as easy as:

PRO|FUNCTION fontbutton_event, event

;; important portions skipped ;-)

newfont = XFont(self.font)
IF newfont NE "" THEN self.font = newfont
Widget_Control, self.tlb, /destroy
self->GUI

END


Ooops! Sorry, I am speaking object-IDL here ;-)

Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Previous Topic: controlling plot appearance (was "line graph problems")
Next Topic: Detecting IDLDE or runtime

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

Current Time: Fri Oct 10 14:58:30 PDT 2025

Total time taken to generate the page: 1.16784 seconds