Solved easy navigation between lists in a group?
#1
I have a question. I have a group (not a grouplist) with multiple lists. I want to move from one to the next. I know I need to specify the id of the list. e.g.:
xml:
<ondown>2</ondown> 

Is there also a way to use the position of the list instead of the id? Like:
xml:
<ondown>Container.Position(1)</ondown>

I also tried the most obvious:
xml:
<ondown>Down</ondown>
but that's also not working.

I tried to use arithmetics but I think that's not supported. Like 
xml:
<ondown>$PARAM[id]+1</ondown>

I appreciate any help.

Thanks guys!
Reply
#2
Are the lists vertical or horizontal? Do you want to focus the first item of the other lists or use the same position as the one you're moving from? A diagram would help a lot.
Reply
#3
(2024-08-09, 15:20)Hitcher Wrote: Are the lists vertical or horizontal? Do you want to focus the first item of the other lists or use the same position as the one you're moving from? A diagram would help a lot.

The lists are horizontal. I want to focus on the first item of the next list. Basically just a few rows back to back. Like So:

------List A-------
------List B-------
------List C-------

The problem is I may add further lists in between these. Then I'd have to rename each ondown/onup and the id of the lists. I'd like to avoid that if possible.

Thank you!
Reply
#4
Code:
Control.SetFocus(id,position[,absolute])
Will make a list with the "id" specified in the command gain focus at "position" number in its list. Set absolute to focus the first listitem of a container instead of the first visible listitem. Alias SetFocus(id,position)

So for list A use <ondown>Control.SetFocus(LIST_B_ID,0,absolute)</ondown>
Reply
#5
Thanks Hitcher, but you have misunderstood what I'm after. Your solution requires the ID of the list.

That's exactly what I do not want. I want to move from one list to the next WITHOUT having to specify the exact ID.

As I said:
Quote:The problem is I may add further lists in between these. Then I'd have to rename each ondown/onup and the id of the lists. I'd like to avoid that if possible.

I'm afraid it's not gonna be possible without Python.

Or does anyone have another suggestion? Move down(up) from one list to the next in a group without having to use the ID of the list.

Why is 
xml:
<ondown>Down</ondown>
not working?
Reply
#6
In a list Up, Down, Left, and Right will only control the list itself and not move control from it to another list.

I think you'll have to use a grouplist to achieve what you want.
Reply
#7
Ok, thank you Hitcher. So there is no easy navigation possible between lists in a group.

Should be added.
Reply
#8
(2024-08-10, 13:12)R.O.H. Wrote: Should be added.
That's what a grouplist is for - it handles all the navigation in the group.
Reply
#9
(2024-08-10, 13:24)Hitcher Wrote:
(2024-08-10, 13:12)R.O.H. Wrote: Should be added.
That's what a grouplist is for - it handles all the navigation in the group.
Indeed. I was able to convert my groups to grouplists. Problem solved! Thank you Hitcher.
Reply
#10
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
easy navigation between lists in a group?0