comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problems with bitmapped button widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Problems with bitmapped button widget [message #59872 is a reply to message #59775] Mon, 14 April 2008 12:29 Go to previous messageGo to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Apr 11, 10:38 am, Spon <christoph.b...@gmail.com> wrote:
> On Apr 11, 3:26 pm, Spon <christoph.b...@gmail.com> wrote:
>
>
>
>
>
>> On Apr 11, 12:56 pm, rhyme2ri2 <rhyme2...@gmail.com> wrote:
>
>>> Hello all,
>
>>> A very simple thing i'm trying to do but somehow i'm stuck with it....
>>> I want a bitmapped button. For this i'm using following :
>
>>> cmddownloadall = Widget_Button(pradar, UNAME='cmddownloadall'  $
>>>       ,XOFFSET=800 ,YOFFSET=100 ,SCR_XSIZE=30 ,SCR_YSIZE=24  $
>>>        ,/ALIGN_CENTER,TOOLTIP='Download All files' $
>>>       ,VALUE='downloadall.bmp' ,sensitive=0,frame=1,/BITMAP)
>
>>> Well this is it and i'm not able to get the image button. Issues like
>>> checking the availability of file or trying to provide the full path
>>> name of image file are already addressed by me :)
>>> Image is a 24-bit bitmap.
>
>>> What it shows is just a blank button with the frame or sometimes just
>>> the text written in value..(strange but true)
>
>>> Can any one point out where m i wrong??
>
>>> Thanks & Regards
>>> -Ritu
>
>> Using IDL v6.4 on Windows XP Pro, I can duplicate your problem. It
>> goes away when I set sensitivity = 1
>> I guess it might be a bug.
>> Can anyone else verify this?
>
>> Regards,
>> Chris
>
> Looking at it again, it may even be a Feature. I can merrily show and
> hide the bitmap at will if I stick in a second button that switches
> the sensitivity of the bitmap button on and off.- Hide quoted text -
>
> - Show quoted text -

On my system at least 'c:\windows\coffee bean.bmp' is an 8-bit
bitmap.

Using a 24-bit version has a slightly different effect, rather than
hiding the whole image the color appears to be turned on/off.

BTW Using your example code the image is visible when the button is
labelled "On". Isn't that sensitivity = 1?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Atmospheric correction
Next Topic: Saving Workbench Layout?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 22:51:44 PDT 2025

Total time taken to generate the page: 0.64255 seconds