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

Home » Public Forums » archive » Re: Help with WIDGET_TEXT (non-) events
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Help with WIDGET_TEXT (non-) events [message #5753] Thu, 15 February 1996 00:00
Ken Knighton is currently offline  Ken Knighton
Messages: 44
Registered: May 1995
Member
zawodny@arbd0.larc.nasa.gov (Joseph M Zawodny) wrote:
> Hello,
>
> I have an application where I am currently using a non-editable
> text widget to display a variable length list. The text widget has a
> YSIZE of 1 and SCROLL set. This way only one item (the "current" item)
> is displayed and the user can change the "current" item using the
> vertical scroll bar.

What you need is a compound widget with a label or text widget and a
couple of arrow buttons to change the current value being displayed.
A quick and dirty implementation of a "spinner" widget that handles
sequential numeric values rather than a list of strings can be found
at:

ftp.rsinc.com

compound widget:
/pub/training/solutions/spinner.ex3

arrow bitmap function:
/pub/training/ascii/arrows.pro

program to test compound widget:
/pub/training/ascii/spintest.pro

These routines are used in RSI's training courses. The spinner widget
could be fairly easily modified to store a string array as part of
its state variable and display the value of the current index rather
than a number. A text widget could be used rather than the label
widget to get around the problem of sizing.

By the way, there are some other excellent examples in these same
directories. These programs go along with the training manuals which
RSI sells or which come included with the courses they teach.

I hope this helps.

Ken Knighton knighton@gav.gat.com knighton@cts.com
General Atomics
San Diego CA
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Automatically Compiling IDL
Next Topic: ignore last message "more - disk space allocation problem"

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

Current Time: Fri Oct 10 14:29:58 PDT 2025

Total time taken to generate the page: 1.36262 seconds