Posts: 2,087
Joined: Jun 2007
Reputation:
92
djh_
Aeon Project Founder
Posts: 2,087
I'm customising some dialogs at the moment, including the context menu, and whenever I open one the first input is lost. So, if I'm in the video OSD and want to move between options, the first push left or right will be ignored. Am I doing something obvious wrong?
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
Sounds like when two controls with same id or current control isnt focused first off
Posts: 17,416
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,416
Could be your default control isn't visible on load. Can you post the code?
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
I'd call the includes after setting defaultcontrol firstly. Im guessing the includes are the list contents.
Posts: 2,087
Joined: Jun 2007
Reputation:
92
djh_
Aeon Project Founder
Posts: 2,087
Tried both but the problem persists.
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
the list control is not visible when the dialog opens, so it can't be focused.
you'd need to remove the delay from the WindowOpen animation.
Posts: 2,087
Joined: Jun 2007
Reputation:
92
djh_
Aeon Project Founder
Posts: 2,087
Yup, that was it. Thanks!
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Posts: 2,087
Joined: Jun 2007
Reputation:
92
djh_
Aeon Project Founder
Posts: 2,087
2017-02-22, 00:37
(This post was last modified: 2017-02-22, 00:41 by djh_.)
Okay, so removing the delay fixes the problem, but now I'm not sure how to replicate the effect. I need the list to fade in after 350ms, and applying the animation to the list item labels, etc, has no effect...
EDIT: nm, fixed it by using a dummy button with a fade-in of 350ms, which then passes focus to the list.
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
Or could draw it off screen then animate into position with 0 time and 350 delay.