Re: Problems with CW_FSLIDER [message #12121 is a reply to message #11983] |
Tue, 23 June 1998 00:00   |
Heiko H�nnefeld
Messages: 7 Registered: June 1998
|
Junior Member |
|
|
dlhopols@knmi.nl wrote:
> Hi Heiko,
> I run SGI/IRIX UNIX with IDL 5.0 and, using the following program (which you
> gave as a sample):
>
> =======================================
> pro test_slider_event,event
> print,'--------- begin test_slider_event structure ----------------'
> help,event,/structure
> print,'--------- end test_slider_event structure ----------------'
> END
> pro test_slider
> base=WIDGET_BASE()
> axes = CW_FSLIDER(base,VALUE=-300.0, $
> MAXIMUM=300.0, MINIMUM=-300.0, /EDIT,FRAME=5)
> WIDGET_CONTROL, /REALIZE, base
> xmanager,'test_slider',base, $
> event_handler = 'test_slider_event',/no_block
> END
> ============================================================ ====
>
> And I get as a result of the print, where the VALUE varies as I would expect.:
>
> IDL>
> --------- begin test_slider_event structure ----------------
> ** Structure <1035b408>, 5 tags, length=20, refs=1:
> ID LONG 11
> TOP LONG 10
> HANDLER LONG 10
> VALUE FLOAT 130.909
> DRAG INT 0
> --------- end test_slider_event structure ----------------
>
> Does this simulate what you expect? Let me know if there's another test that
> I can run. I wasn't sure what you meant by changing the initial value.
>
> Rose
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/ Now offering spam-free web-based newsreading
Hi Rose,
try your test program again and change line 8 to the following:
axes = CW_FSLIDER(base,VALUE=0.0, $
MAXIMUM=300.0, MINIMUM=-300.0, /EDIT,FRAME=5)
The effect is, that the current value is set to -300.
If, however, you change line 8 to
axes = CW_FSLIDER(base,VALUE=53.1, $
MAXIMUM=300.0, MINIMUM=-300.0, /EDIT,FRAME=5)
it works fine as it should.
By the way, I am sorry for posting the last message in HTML - thank you for your
e-mails.
Heiko
--
Heiko H�nnefeld
HASYLAB / DESY
Notkestr. 85
22603 Hamburg
Tel.: 040 / 8998-2698
Fax.: 040 / 8998-2787
e-mail: hhuenne@desy.de
|
|
|