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!)
GuiWindow.OnAction question
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="doskabouter" data-source="post: 930002" data-attributes="member: 98267"><p>Had the most odd experience yesterday, I was using the webbrowser plugin while listening to music in the background, and when I pressed navigate back, or forward, the music also skipped to the previous track.</p><p> </p><p>What I did was navigate to the music plugin, selected some album, and start play. Next I navigated to the webbrowser and started browsing.</p><p>I did research it a bit: Set a breakpoint in the webbrowser plugin source on a line that handles the navigate back/forward, and when I press back/forward the breakpoint was caught, but the music already skipped a step.</p><p>On a second attempt (after visual studio got focus due to the breakpoint) navigation went well for the webbrowser, and didn't interfere with music playing.</p><p> </p><p>So it seems that the calling order for OnAction for all GuiWindow (and its descendants) is a bit random.</p><p> </p><p>Can anyone explain why it's not always the active window which gets the OnAction first, and is there a possibility to flag that action as handled, so that other windows won't act on it?</p></blockquote><p></p>
[QUOTE="doskabouter, post: 930002, member: 98267"] Had the most odd experience yesterday, I was using the webbrowser plugin while listening to music in the background, and when I pressed navigate back, or forward, the music also skipped to the previous track. What I did was navigate to the music plugin, selected some album, and start play. Next I navigated to the webbrowser and started browsing. I did research it a bit: Set a breakpoint in the webbrowser plugin source on a line that handles the navigate back/forward, and when I press back/forward the breakpoint was caught, but the music already skipped a step. On a second attempt (after visual studio got focus due to the breakpoint) navigation went well for the webbrowser, and didn't interfere with music playing. So it seems that the calling order for OnAction for all GuiWindow (and its descendants) is a bit random. Can anyone explain why it's not always the active window which gets the OnAction first, and is there a possibility to flag that action as handled, so that other windows won't act on it? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
GuiWindow.OnAction question
Contact us
RSS
Top
Bottom