About Store Forum Documentation Contact



Post Reply 
List setcur question
Author Message
RedcrowProd Offline
Member

Post: #1
List setcur question
Hi,
Wondering why setcur on list doesnt highlight the line that is the new cur ?

Or is there any manual way that i could do that?
(This post was last modified: 06-13-2020 04:40 AM by RedcrowProd.)
06-13-2020 04:21 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: List setcur question
there's List.cur and List.lit and 'setCur' sets cur only
06-13-2020 04:51 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #3
RE: List setcur question
List.lit doesn't seems to do it tho, it is in valid indexes right ?
Is lit only for over and not sel ?
I do setdata for list
Setcur(index)
Lit=index

Elm is not Selected
(This post was last modified: 06-13-2020 07:14 AM by RedcrowProd.)
06-13-2020 07:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: List setcur question
Code:
// elements
   Int       cur, // current     element  (in visible  indexing mode)
             lit; // highlighted element  (in visible  indexing mode)
   Memc<Int> sel; // selected    elements (in absolute indexing mode to allow selecting hidden elements), this allows to obtain all selected elements, this is valid only if 'flag' has LIST_MULTI_SEL option enabled

I recommend that you can do debugging the source to figure out what's the problem in this case.

You can also check List.cur_mode
06-14-2020 06:04 AM
Find all posts by this user Quote this message in a reply
Post Reply