Main Page | Report Page

 

  Computers Forum Index » Computer Languages (IDL-PVWAVE) » no bitmap on widget base in Solaris...

Author Message
JamesMeteo...
Posted: Mon Oct 18, 2010 8:01 pm
 
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
 
jeanh...
Posted: Tue Oct 19, 2010 2:09 pm
 
On 18/10/2010 4:01 PM, JamesMeteo wrote:
Quote:
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
 
JamesMeteo...
Posted: Tue Oct 19, 2010 2:10 pm
 
Quote:
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
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Jul 23, 2014 3:36 pm