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 7 of 14 Topic 5633 of 5734
Post > Topic >>

Re: Problems with bitmapped button widget

by rhyme2ri2 <rhyme2ri2@[EMAIL PROTECTED] > Apr 12, 2008 at 01:39 PM

On Apr 11, 8:01=A0pm, Spon <christoph.b...@[EMAIL PROTECTED]
> wrote:
> On Apr 11, 3:43 pm, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
>
>
>
>
>
> > Spon writes:
> > > 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?
>
> > I can't duplicate it. Do you have an example program?
>
> > Cheers,
>
> > David
> > --
> > David Fanning, Ph.D.
> > Fanning Software Consulting, Inc.
> > Coyote's Guide to IDL Programming:http://www.dfanning.com/
> > Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> Sure thing, here it is:
>
> -----
> pro testbuttonwidget_event, event
> =A0 print, 'button press detected.'
> end
>
> pro testbuttonwidget_switch, event
> =A0 widget_control, event.top, get_uvalue =3D uval
> =A0 uval.state =3D (uval.state + 1) MOD 2
> =A0 widget_control, uval.butn, sensitive =3D uval.state
> =A0 if uval.state eq 0 then switchvalue =3D 'Off' $
> =A0 =A0 else switchvalue =3D 'On'
> =A0 widget_control, uval.turn, set_value =3D switchvalue
> =A0 widget_control, event.top, set_uvalue =3D uval
> end
>
> pro testbuttonwidget_quit, event
> =A0 widget_control, event.top, /destroy
> end
>
> pro testbuttonwidget, debug =3D debug
>
> file =3D 'c:\windows\coffee bean.bmp'
>
> check =3D query_bmp(file, debug)
> if check ne 1 then message, 'Not a bitmap.'
>
> base =3D widget_base(/col)
> butn =3D widget_button(base, xoffset =3D 80, $
> =A0 yoffset =3D 80, scr_xsize =3D 64, scr_ysize =3D $
> =A0 64, /align_center, tooltip =3D 'Download all files', $
> =A0 value =3D file, sensitive =3D 0, frame =3D 1, /bitmap)
> turn =3D widget_button(base, value =3D 'Off', $
> =A0 event_pro =3D 'testbuttonwidget_switch')
> exit =3D widget_button(base, value =3D 'Quit', $
> =A0 event_pro =3D 'testbuttonwidget_quit')
> widget_control, base, /realize
> uval =3D {butn:butn, turn:turn, state:0}
> widget_control, base, set_uvalue =3D uval
> xmanager, 'testbuttonwidget', base, /no_block
>
> return
> end
>
> ------ Hide quoted text -
>
> - Show quoted text -



Well i'v IDL 6.3....
and ya  i tries with sensitivity 1 too... but even it is not happening

It gives the error that 'Can't load bitmap file: filename' this is
it....
But the file is there for sire
I even tries using FilePath bt invain...

ne more solutions

_Thanks & Regards
-Ritu




 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:11:55 CDT 2008.