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
Quality Assurance
Bugtracker Feed
0004062: SendThreadMessage issue with GUI_MSG_ITEM_SELECT message on Filmstrip
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="MediaPortal-Bot" data-source="post: 931441" data-attributes="member: 48617"><p>There exists an issue when sending a thread message to select an item on a filmstrip control.<br /> <br /> Scenario:<br /> In the trakt plugin; facade images are downloaded in a background thread; when the image is successfully downloaded it's set to the facade using the ThumbnailImage, IconImage and IconImageBig properties.<br /> On the chance that the user has selected a facade item which gets an image update we send a message to force a selection of the current item so skin properties are updated on screen e.g. #selectedthumb. We need to send a GUIMessage using the SendThreadMessage method because we are not on the main thread.<br /> <br /> Code Sample:<br /> GUIWindowManager.SendThreadMessage(new GUIMessage(GUIMessage.MessageType.GUI_MSG_ITEM_SELECT, GUIWindowManager.ActiveWindow, 0, (int)TraktGUIControls.Facade, ItemId, 0, null));<br /> <br /> The Bug:<br /> When in Filmstrip layout and you enter the window (default facade index = 0); after the image for the selected item is set to the facade the Last index of the Filmstrip is selected rather than the First! (the same thing happens regardless of the previous selected index). I have confirmed that the ItemId is definitely not the last index of the facade.<br /> <br /> This works ok in List, Icon and BigIcon layouts. I haven't tested CoverFlow, but wouldn't be surprised if the same as Filmstrip.<br /> <br /> The other way to send a message is to use GUIGraphicsContext.SendMessage, but that can't be used when working from another thread. However this works ok for Filmstrip.<br /> <br /> I can reproduce the issue using MediaPortal 1.2 and MediaPortal 1.3, so it's nothing new.</p><p></p><p><a href="http://mantis.team-mediaportal.com/view.php?id=4062" target="_blank">Continue reading...</a></p></blockquote><p></p>
[QUOTE="MediaPortal-Bot, post: 931441, member: 48617"] There exists an issue when sending a thread message to select an item on a filmstrip control.<br /> <br /> Scenario:<br /> In the trakt plugin; facade images are downloaded in a background thread; when the image is successfully downloaded it's set to the facade using the ThumbnailImage, IconImage and IconImageBig properties.<br /> On the chance that the user has selected a facade item which gets an image update we send a message to force a selection of the current item so skin properties are updated on screen e.g. #selectedthumb. We need to send a GUIMessage using the SendThreadMessage method because we are not on the main thread.<br /> <br /> Code Sample:<br /> GUIWindowManager.SendThreadMessage(new GUIMessage(GUIMessage.MessageType.GUI_MSG_ITEM_SELECT, GUIWindowManager.ActiveWindow, 0, (int)TraktGUIControls.Facade, ItemId, 0, null));<br /> <br /> The Bug:<br /> When in Filmstrip layout and you enter the window (default facade index = 0); after the image for the selected item is set to the facade the Last index of the Filmstrip is selected rather than the First! (the same thing happens regardless of the previous selected index). I have confirmed that the ItemId is definitely not the last index of the facade.<br /> <br /> This works ok in List, Icon and BigIcon layouts. I haven't tested CoverFlow, but wouldn't be surprised if the same as Filmstrip.<br /> <br /> The other way to send a message is to use GUIGraphicsContext.SendMessage, but that can't be used when working from another thread. However this works ok for Filmstrip.<br /> <br /> I can reproduce the issue using MediaPortal 1.2 and MediaPortal 1.3, so it's nothing new. [url="http://mantis.team-mediaportal.com/view.php?id=4062"]Continue reading...[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugtracker Feed
0004062: SendThreadMessage issue with GUI_MSG_ITEM_SELECT message on Filmstrip
Contact us
RSS
Top
Bottom