Re: button sizing, sun vs sgi [message #6981 is a reply to message #6910] |
Thu, 05 September 1996 00:00   |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Jeff Hall wrote:
>
> I have developed an application on a Sun/Solaris,
> but when I run it on an SGI the buttons and text
> in the buttons are too big.
>
> There is also a sizing problem on the PowerMac.
>
> How can I control the button & font size of the
> widgets on the different platforms?
Here are the changes I had to make when I ported our Solaris-happy
IDL programs to an SGI machine:
The following are changes necessary when porting this software to
a Silicon Graphics machine running IRIX 5.2 (put these commands in
your idl_startup file):
; Choose pseudo-color 8-bit visual
device, pseudo_color=8
; Select default backing-store method to be provided by IDL, as SGI
; X server does not seem to provide it
device, retain=2
; Change size of font so programs fit on-screen (IRIX 4.0 or later)
; Reference: sgi.doc document in $IDL_DIR/notes
WIDGET_CONTROL, $
DEFAULT_FONT="-adobe-helvetica-bold-r-normal-*-14-100-*-*-*-*-* "
; Set default plotting font to same hardware font above
; (Create a pixmap window to avoid window creation upon
; calling DEVICE, FONT= ; then delete window)
window, xsize=5,ysize=5,/free,/pixmap
!p.font = 0 ; Use hardware font
device, FONT="-adobe-helvetica-bold-r-normal-*-10-100-*-*-*-*-*"
wdelete ; Delete window created
Hope this helps.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|