Alaska Software Inc. - Marked item in listbox
Username: Password:
AuthorTopic: Marked item in listbox
Jari SolloMarked item in listbox
on Tue, 08 Apr 2014 08:38:29 +0300
Hi folks!
Is there a way to get info which item is marked (single click) in listbox? 
How is that done?

Thanks.
Otto TrappRe: Marked item in listbox
on Tue, 08 Apr 2014 08:44:08 +0200
Hello,

Have a look at the methods XbpListbox:getData() and 
XbpListbox:editBuffer(). Both return an array that holds one or more 
numeric values indicating the marked items in the listbox. Multiple 
selection in the listbox is only possible when XbpListbox:markMode is 
set to either XBPLISTBOX_MM_MULTIPLE or XBPLISTBOX_MM_EXTENDED. The 
default value is XBPLISTBOX_MM_SINGLE.

Usually the difference between :getData() and :editBuffer() methods is 
that you call oXbp:getData() to save an Xbp component's value/data (then 
oXbp:dataLink is a code block and is also evaluated), while you call 
oXbp:editBuffer() to simply retrieve the value the oXbp holds.

Otto
Jari SolloRe: Marked item in listbox
on Tue, 08 Apr 2014 14:17:38 +0300
Thanks, Otto!
That was exactly what I was looking for, just did not find it from reference 
document some reason.

-J-

"Otto Trapp" kirjoitti 
viestissä:460d1fb4$1b09d500$2346bc@news.alaska-software.com...

Hello,

Have a look at the methods XbpListbox:getData() and
XbpListbox:editBuffer(). Both return an array that holds one or more
numeric values indicating the marked items in the listbox. Multiple
selection in the listbox is only possible when XbpListbox:markMode is
set to either XBPLISTBOX_MM_MULTIPLE or XBPLISTBOX_MM_EXTENDED. The
default value is XBPLISTBOX_MM_SINGLE.

Usually the difference between :getData() and :editBuffer() methods is
that you call oXbp:getData() to save an Xbp component's value/data (then
oXbp:dataLink is a code block and is also evaluated), while you call
oXbp:editBuffer() to simply retrieve the value the oXbp holds.

Otto