Re: no bitmap on widget base in Solaris [message #72912] |
Tue, 19 October 2010 07:10 |
JamesMeteo
Messages: 6 Registered: October 2010
|
Junior Member |
|
|
> put the slash/backslash in the path, not in the filename...
> case StrLowCase(!Version.os_family) of
> 'unix': bpath='/usr/local/itt/idl80/resource/bitmaps/'
> 'windows': bpath='C:\Program Files\ITT\IDL\IDL80\resource\bitmaps\'
> endcase
>
> b=widget_base(bitmap=bpath+'hand.bmp', xsize=300)
>
> Jean
A good point about my example but the basic story, as I should have
gotten from Help, is that WIDGET_BASE only supports BITMAP on
Windows,
not on Motif.
James
|
|
|
Re: no bitmap on widget base in Solaris [message #72917 is a reply to message #72912] |
Tue, 19 October 2010 03:09  |
jeanh
Messages: 79 Registered: November 2009
|
Member |
|
|
On 18/10/2010 4:01 PM, JamesMeteo wrote:
> Hello all,
>
> The following IDL 8 program puts the 'hand' bitmap on the base widget
> with Windows XP but not with Solaris running X, where I get the 'X'
> icon instead:
>
> case StrLowCase(!Version.os_family) of
> 'unix': bpath='/usr/local/itt/idl80/resource/bitmaps'
> 'windows': bpath='C:\Program Files\ITT\IDL\IDL80\resource\bitmaps'
> endcase
>
> b=widget_base(bitmap=bpath+'\hand.bmp', xsize=300)
> widget_control,b,/realize
>
> end
>
> Is there a workaround for Solaris for getting the bitmap to appear?
>
> James Drake
> The Aerospace Corporation
put the slash/backslash in the path, not in the filename...
case StrLowCase(!Version.os_family) of
'unix': bpath='/usr/local/itt/idl80/resource/bitmaps/'
'windows': bpath='C:\Program Files\ITT\IDL\IDL80\resource\bitmaps\'
endcase
b=widget_base(bitmap=bpath+'hand.bmp', xsize=300)
Jean
|
|
|