Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Problems wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 14 Topic 5633 of 5734
Post > Topic >>

Re: Problems with bitmapped button widget

by Bob Crawford <Snowman42@[EMAIL PROTECTED] > Apr 14, 2008 at 12:29 PM

On Apr 11, 10:38=A0am, Spon <christoph.b...@[EMAIL PROTECTED]
> wrote:
> On Apr 11, 3:26 pm, Spon <christoph.b...@[EMAIL PROTECTED]
> wrote:
>
>
>
>
>
> > On Apr 11, 12:56 pm, rhyme2ri2 <rhyme2...@[EMAIL PROTECTED]
> 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 =3D Widget_Button(pradar, UNAME=3D'cmddownloadall'
=A0$=

> > > =A0 =A0 =A0 ,XOFFSET=3D800 ,YOFFSET=3D100 ,SCR_XSIZE=3D30
,SCR_YSIZE=
=3D24 =A0$
> > > =A0 =A0 =A0 =A0,/ALIGN_CENTER,TOOLTIP=3D'Download All files' $
> > > =A0 =A0 =A0 ,VALUE=3D'downloadall.bmp'
,sensitive=3D0,frame=3D1,/BITMA=
P)
>
> > > 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 =3D 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 =3D 1?




 14 Posts in Topic:
Problems with bitmapped button widget
rhyme2ri2 <rhyme2ri2@[  2008-04-11 04:56:13 
Re: Problems with bitmapped button widget
David Fanning <news@[E  2008-04-11 06:18:25 
Re: Problems with bitmapped button widget
Spon <christoph.blau@[  2008-04-11 07:26:56 
Re: Problems with bitmapped button widget
David Fanning <news@[E  2008-04-11 08:43:39 
Re: Problems with bitmapped button widget
Spon <christoph.blau@[  2008-04-11 07:38:29 
Re: Problems with bitmapped button widget
Spon <christoph.blau@[  2008-04-11 08:01:36 
Re: Problems with bitmapped button widget
rhyme2ri2 <rhyme2ri2@[  2008-04-12 13:39:39 
Re: Problems with bitmapped button widget
Spon <christoph.blau@[  2008-04-14 01:25:13 
Re: Problems with bitmapped button widget
Bob Crawford <Snowman4  2008-04-14 12:29:03 
Re: Problems with bitmapped button widget
Spon <christoph.blau@[  2008-04-14 14:18:31 
Re: Problems with bitmapped button widget
rhyme2ri2 <rhyme2ri2@[  2008-04-22 03:43:16 
Re: Problems with bitmapped button widget
David Fanning <news@[E  2008-04-22 06:31:56 
Re: Problems with bitmapped button widget
Spon <christoph.blau@[  2008-04-22 06:28:45 
Re: Problems with bitmapped button widget
David Fanning <news@[E  2008-04-22 07:33:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 10:18:44 CDT 2008.