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

Home » Public Forums » archive » Set WIDGET_LIST value keeping TOP position fixed
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
Set WIDGET_LIST value keeping TOP position fixed [message #3501] Thu, 26 January 1995 12:14
mathews is currently offline  mathews
Messages: 6
Registered: January 1995
Junior Member
I've created a multi-selection widget_list compound widget that marks a selection
with a '* ' and an unselected item with a ' ' prefix.

I set the new value with the following in my event handler:

Widget_Control, event.id, SET_VALUE=value, SET_LIST_SELECT=event.index
Widget_Control, event.id, SET_UVALUE=value

Once I set the new values in the event handler the list top resets to a new
position if it is near the end of the list. I can use the SET_LIST_TOP keyword,
but there is no GET_LIST_TOP keyword to find out the original position
or is there. Is there any way to get the list-top index or to prevent the list
from resetting the position?

In summary, how do I set a scrollable list widget value and keep the same settings
such that the selected item is still highligted and the top of the list before is
the same after the update?

Jason
--
------------------------------------------------------------ -------------------
Jason Mathews, Code 633.2 |National Space Science Data Center (NSSDC)
NASA/Goddard Space Flight Center|Email: (Internet) mathews@nssdc.gsfc.nasa.gov
Greenbelt, MD 20771-0001 USA | (DECnet) NSSDCA::MATHEWS
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: how to handle 3-D data
Next Topic: Plot to Image Revisited

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

Current Time: Wed Oct 08 17:32:11 PDT 2025

Total time taken to generate the page: 0.00495 seconds