XmScrolledList

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
XmScrolledList

 

XmScrolledList
Submitted by Anonymous on Wed, 09/10/2003 - 05:28.

Hi!

I`m using XmScrolledList (and Motif 1.2) to display a list of objects also visible in a graphic window. When an object is selected in the graphic window it is also selected on the list. When the list selection changes it would be nice if the list was scrolled so that the new selection is visible. Is there a "ready made" way to handle this?

Thank You in advance,

Sampsa

‹ DB Widgets DTTerm in linux ›

 

Wed, 09/10/2003 - 16:41#1

Wed, 09/10/2003 - 16:41#1

Anonymous

XmScrolledList

There is a pre-defined function called
"XmListSetPos(Widget wid, int position)"

you`ll just have to map the object you pick with a position value associated with it and then call the function.

that`s all there is to it....;-)

Steven Orton
Software Engineer
Northrop Grumman IT
Newport, RI