comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: sec : u Re: Widget Fonts

Re: sec : u Re: Widget Fonts
type: item
description: 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 [[ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
creator: Martin Schultz
date: 2001-03-27T08:37:57-00:00