Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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 [[ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[