2015-01-15, 12:47
In reFocus I am not using one individual button that cycles through the available viewtypes for the given window or content type. Instead I use a button that calls a menu containing individual buttons which switch to the available viewtypes.
Simplified:
calls
This works just fine really...except in the PVR.
For some reason the container it loads does not always seem to get refreshed. For example in the PVR Guide switching the viewmode from "Now" (ID="11") to "Next" (ID="12") does not change the viewtype (at least, not visually).
If I add a
to the buttons, it does actually switch the viewtype correctly.
With that extra action in place however, exiting and re-entering the PVR sometimes causes the EPG Timeline to come up blank/empty.
Surely the containers should refresh without that explicit onclick action?
Full relevant menu code here
edit: created a ticket for this here
Simplified:
PHP Code:
<control type="button" id="103">
<label>$LOCALIZE[31114]$INFO[Container.ViewMode,: ]</label>
<onclick>SetFocus(4000)</onclick>
</control>
calls
PHP Code:
<control type="group">
<control type="grouplist" id="4000">
<control type="button" id="402">
<label>viewtype name</label>
<onclick>Container.SetViewMode(50)</onclick>
</control>
</control>
</control>
This works just fine really...except in the PVR.
For some reason the container it loads does not always seem to get refreshed. For example in the PVR Guide switching the viewmode from "Now" (ID="11") to "Next" (ID="12") does not change the viewtype (at least, not visually).
If I add a
PHP Code:
<onclick>Container.Refresh</onclick>
to the buttons, it does actually switch the viewtype correctly.
With that extra action in place however, exiting and re-entering the PVR sometimes causes the EPG Timeline to come up blank/empty.
Surely the containers should refresh without that explicit onclick action?
Full relevant menu code here
edit: created a ticket for this here