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


|