2015-04-11, 12:13
Is there a way to get the current item and total number of items for a content in a grouplist?
(2015-04-11, 12:13)Eddage Wrote: Is there a way to get the current item and total number of items for a content in a grouplist?Container(id).NumItems and Container(id).CurrentItem don't work in grouplists ? I know that Container(id).CurrentItem has been fixed in Isengard since it didn't work in previous releases but didn't try for grouplists.
(2015-04-11, 14:59)sualfred Wrote: As far as I know, nope.That make sense having it working in all kind of lists ... +1
I also searched for a way to display the total number or the current page position a few days ago.
It ended up with a label "scroll down for more" based on the visiblity of a hidden scrollbar.
+1 for this feature.
(2015-04-11, 14:18)Jayz2K Wrote:(2015-04-11, 12:13)Eddage Wrote: Is there a way to get the current item and total number of items for a content in a grouplist?Container(id).NumItems and Container(id).CurrentItem don't work in grouplists ? I know that Container(id).CurrentItem has been fixed in Isengard since it didn't work in previous releases but didn't try for grouplists.
Are you trying to group built-in buttons ? If so, you can still make a simple list with custom items sending clicks to the built-in button id.
(2015-04-11, 16:28)Eddage Wrote: It's for things like the video/audio osd settings and context menu so as far as I know there isn't a way around it.
Item 1
<onclick>Control.SetFocus(5,1)</onclick>
<onclick>SendClick(5)</onclick>
Item 2
<onclick>Control.SetFocus(5,2)</onclick>
<onclick>SendClick(5)</onclick>
Etc.
(2015-04-11, 17:09)ronie Wrote: keep in mind that a grouplist can contain a mixture of controls: labels, images, buttons, even disabled buttons and hidden items.
so it's not very straightforward to add those infolabels i think.
(2015-04-11, 17:55)sualfred Wrote:(2015-04-11, 17:09)ronie Wrote: keep in mind that a grouplist can contain a mixture of controls: labels, images, buttons, even disabled buttons and hidden items.
so it's not very straightforward to add those infolabels i think.
Yep, you're right. But since a pagecontrol<->scrollbar works fine, I would be satisfied to have something like ControlGroup(id).CurrentPage & ControlGroup(id).NumPages
(2015-08-06, 12:51)mkortstiege Wrote: Bit late to the party, but shouldn't Container(id).HasNext / HasPrevious work for this?