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
MediaPortal 1 Plugins
My Recipies 0.2
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="AndyQ" data-source="post: 15490" data-attributes="member: 12991"><p><strong>Fix for small niggle</strong></p><p></p><p>Just started playing with this and noticed a small feature where if you view page 2 (or greater) or a recipie, click back and select another recipie then the newly opened recipie opens on the last page selected (which isn't useful if that recipie only has one page).</p><p></p><p>Anyway, heres a small fix (not sure if it is the correct way to do things as only started looking at the code this morning) that corrects that behaviour.</p><p></p><p>Not sure either how to get this into CVS (not got that far either <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Change to WindowsPlugins\GUIRecipies\GuiRecipies.cs method ShowDetails:</p><p></p><p>private void ShowDetails(Recipie rec) // show recipie directions</p><p>{</p><p><strong> GUITextControl control = (GUITextControl)this.GetControl((int)Controls.CONTROL_TEXTBOX);</strong></p><p><strong> control.OnMessage(new GUIMessage( GUIMessage.MessageType.GUI_MSG_LABEL_RESET, GetID, 0, (int)Controls.CONTROL_TEXTBOX, 0, 0, null ) );</strong></p><p></p><p> GUIControl.SetControlLabel(GetID, (int)Controls.CONTROL_TEXTBOX, rec.ToString() );</p><p> GUIPropertyManager.SetProperty("#itemcount"," ");</p><p>}</p></blockquote><p></p>
[QUOTE="AndyQ, post: 15490, member: 12991"] [b]Fix for small niggle[/b] Just started playing with this and noticed a small feature where if you view page 2 (or greater) or a recipie, click back and select another recipie then the newly opened recipie opens on the last page selected (which isn't useful if that recipie only has one page). Anyway, heres a small fix (not sure if it is the correct way to do things as only started looking at the code this morning) that corrects that behaviour. Not sure either how to get this into CVS (not got that far either :) Change to WindowsPlugins\GUIRecipies\GuiRecipies.cs method ShowDetails: private void ShowDetails(Recipie rec) // show recipie directions { [b] GUITextControl control = (GUITextControl)this.GetControl((int)Controls.CONTROL_TEXTBOX); control.OnMessage(new GUIMessage( GUIMessage.MessageType.GUI_MSG_LABEL_RESET, GetID, 0, (int)Controls.CONTROL_TEXTBOX, 0, 0, null ) );[/b] GUIControl.SetControlLabel(GetID, (int)Controls.CONTROL_TEXTBOX, rec.ToString() ); GUIPropertyManager.SetProperty("#itemcount"," "); } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Recipies 0.2
Contact us
RSS
Top
Bottom