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

Home » Public Forums » archive » Re: Problems with CW_FSLIDER
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 CW_FSLIDER [message #12121 is a reply to message #11983] Tue, 23 June 1998 00:00 Go to previous messageGo to previous message
Heiko H�nnefeld is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Longword plotting problems...
Next Topic: Q: 3-D objects in spherical coordinates

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

Current Time: Sat Oct 11 07:48:39 PDT 2025

Total time taken to generate the page: 0.80276 seconds