Hi guys
I have a list of pictures of actors that show beside each movie.
I press a button to bring actors pictures in focus to scroll through them.
If i scroll to 3rd actor in list and go back, once i scroll to next movie and bring up the actors the 3rd actor will be in focus.
Is there way to reset focus back to first position when scrolling to next item.
Thanks for any info
Have you tried setting focus to the list at a certain position?
Code:
Control.SetFocus(id,position)
(2017-09-21, 11:53)Hitcher Wrote: [ -> ]Have you tried setting focus to the list at a certain position?
Code:
Control.SetFocus(id,position)
Thanks for reply
Where in list do i put the
Code:
Control.SetFocus(id,position)
Tried
Code:
<onload condition="Control.HasFocus(7000)">Control.SetFocus(7000,1)</onload>
but think i'm doing it wrong.
Cheers
You don't put it in the list, you use it in the button that moves focus to the list
e.g.
Code:
<onclick>Control.SetFocus(7000,1)</onclick>
(2017-09-21, 13:12)jurialmunkey Wrote: [ -> ]You don't put it in the list, you use it in the button that moves focus to the list
e.g.
Code:
<onclick>Control.SetFocus(7000,1)</onclick>
Cheers jurialmunkey and hitcher that did the trick
Just noticed that if i move to near end of actor list (after first 4 items) and move to next movie the list position doesn't get reset to first position.
Moving within the first 4 items in actor list it succesfully returns to first position in next movie.
It seems to go like this:
First 4 items:Correctly returns to first position in next movie.
5th Item: Returns to second position in next movie
6th Item: Returns to third positon in next movie and so on.
I'm using the code:
Code:
<onclick>Control.SetFocus(7000,0)</onclick>
Anybody test this on their end.
Thanks
(2017-09-22, 20:34)Hitcher Wrote: [ -> ]Try -
Code:
<onclick>Control.SetFocus(7000,0,absolute)</onclick>
Unfortunately still the same using the absolute
I think absolute only works for Leia.
As a hack, in your list container you could put something like
Code:
<control type="list">
<onfocus>PageUp</onfocus>
<onfocus>PageUp</onfocus>
<onfocus>PageUp</onfocus>
<onfocus>PageUp</onfocus>
(2017-09-23, 02:53)jurialmunkey Wrote: [ -> ]I think absolute only works for Leia.
As a hack, in your list container you could put something like
Code:
<control type="list">
<onfocus>PageUp</onfocus>
<onfocus>PageUp</onfocus>
<onfocus>PageUp</onfocus>
<onfocus>PageUp</onfocus>
Cheers jurialmunkey looks like this works so far
Actually you can try using what I do in the video info dialog for fTV.
Add this to the button before the set focus action.
Code:
<onclick>Control.Move(7000,$INFO[Container(7000).CurrentItem,-])</onclick>
<onclick>Control.Move(7000,1)</onclick>
(2017-09-23, 09:50)Hitcher Wrote: [ -> ]Actually you can try using what I do in the video info dialog for fTV.
Add this to the button before the set focus action.
Code:
<onclick>Control.Move(7000,$INFO[Container(7000).CurrentItem,-])</onclick>
<onclick>Control.Move(7000,1)</onclick>
Cheers hitcher this works great too
(2017-09-24, 14:33)the_bo Wrote: [ -> ] (2017-09-23, 09:50)Hitcher Wrote: [ -> ]Actually you can try using what I do in the video info dialog for fTV.
Add this to the button before the set focus action.
Code:
<onclick>Control.Move(7000,$INFO[Container(7000).CurrentItem,-])</onclick>
<onclick>Control.Move(7000,1)</onclick>
Cheers hitcher this works great too
Yes this is a much better solution as it should work no matter how many items are in the list.