home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Add more events to GUITVGuide.cs code
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xavier" data-source="post: 14432" data-attributes="member: 10592"><p>I would like to add the management of other events to the function <strong>OnAction</strong> in <strong>GUITVGuide.cs</strong> code.</p><p></p><p>If I modify the code in this way nothing doesn't happen.</p><p></p><p>[code]</p><p> public override void OnAction(Action action)</p><p> {</p><p> switch (action.wID)</p><p> {</p><p></p><p>// --- change start here...</p><p></p><p> case Action.ActionType.ACTION_RECORD:</p><p> {</p><p> ShowContextMenu();</p><p> break;</p><p> }</p><p></p><p>// --- change end here... </p><p></p><p> case Action.ActionType.ACTION_PREVIOUS_MENU:</p><p> {</p><p> GUIWindowManager.ShowPreviousWindow();</p><p> return;</p><p> }</p><p></p><p> case Action.ActionType.ACTION_KEY_PRESSED:</p><p> if (action.m_key!=null)</p><p> OnKeyCode((char)action.m_key.KeyChar);</p><p> break;</p><p></p><p>// --- other code...</p><p>[/code]</p><p></p><p>The event <strong>ACTION_RECORD</strong> is always managed by the code of <strong>GuiTVHome.cs</strong> and it seems that something prevents from also training it in <strong>GUITVGuide.cs</strong>. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> </p><p></p><p>How can I do for managing it in custom designed way?</p><p></p><p>xavier</p></blockquote><p></p>
[QUOTE="xavier, post: 14432, member: 10592"] I would like to add the management of other events to the function [b]OnAction[/b] in [b]GUITVGuide.cs[/b] code. If I modify the code in this way nothing doesn't happen. [code] public override void OnAction(Action action) { switch (action.wID) { // --- change start here... case Action.ActionType.ACTION_RECORD: { ShowContextMenu(); break; } // --- change end here... case Action.ActionType.ACTION_PREVIOUS_MENU: { GUIWindowManager.ShowPreviousWindow(); return; } case Action.ActionType.ACTION_KEY_PRESSED: if (action.m_key!=null) OnKeyCode((char)action.m_key.KeyChar); break; // --- other code... [/code] The event [b]ACTION_RECORD[/b] is always managed by the code of [b]GuiTVHome.cs[/b] and it seems that something prevents from also training it in [b]GUITVGuide.cs[/b]. :( How can I do for managing it in custom designed way? xavier [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Add more events to GUITVGuide.cs code
Contact us
RSS
Top
Bottom