Lisp HUG Maillist Archive

CAPI list-panel question

Sorry if I'm missing the obvious, but I haven't seen a way to get the 
item *index* into the selected item of a list-panel. In my particular 
case the text value means nothing because I'm making a Chess PGN Viewer 
(I'm listing all the moves made) and multiple moves can all have the 
same text representation.

Similarly, I don't see any methods for setting the selected item to a 
particular index.

Jeff M.

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: CAPI list-panel question

list-panel inherits from choice, so you should be able to use the choice-selection accessor to read and set the selected item index.

Erik


24 okt 2013 kl. 17:39 skrev Jeffrey Massung:

> 
> Sorry if I'm missing the obvious, but I haven't seen a way to get the item *index* into the selected item of a list-panel. In my particular case the text value means nothing because I'm making a Chess PGN Viewer (I'm listing all the moves made) and multiple moves can all have the same text representation.
> 
> Similarly, I don't see any methods for setting the selected item to a particular index.
> 
> Jeff M.
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
> 


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:34 UTC