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
"Calendar" plugin
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="Smirnuff" data-source="post: 21531" data-attributes="member: 10545"><p>Sorry carreno, this completely slipped my mind, I do need reminding often!</p><p></p><p>I had originally planned to put a bit more time and effort into this as its definately something that will have value in future plugins but there hasn't been enough of it to do so.</p><p></p><p>Here's what you can do:</p><p></p><p></p><p>[code]</p><p> protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType)</p><p> {</p><p> if(control == jan)</p><p> {</p><p> // adjust display for January</p><p> }</p><p> else if(control == feb)</p><p> {</p><p> // adjust display for February</p><p> }</p><p></p><p> // ...</p><p> // ...</p><p> // ...</p><p></p><p> else if(control == dec)</p><p> {</p><p> // adjust display for December</p><p> }</p><p> }</p><p>[/code]</p><p></p><p>Tips:</p><p></p><p>Using a GridLayout will make it easier to position the components within the calendar (see the sticky post on Skinning Engine Improvements in this forum).</p><p></p><p>Consider using something like the following id scheme for the row items:</p><p></p><p>Row 1: 101 102 103 104 105 106 107</p><p>Row 2: 201 202 203 204 205 206 207</p><p>Row 3: 301 302 303 304 305 306 307</p><p>Row 4: 401 402 403 404 405 406 407</p><p>Row 5: 501 502 503 504 505 506 507</p><p></p><p>There are lots of ways in which you could implement this, feel free to send me the project (smirnuff@gmail.com) and I'll try and take a look but can't promise that its going to be before the end of the weekend.</p><p></p><p>Cheers,</p><p>Smirnoff.</p></blockquote><p></p>
[QUOTE="Smirnuff, post: 21531, member: 10545"] Sorry carreno, this completely slipped my mind, I do need reminding often! I had originally planned to put a bit more time and effort into this as its definately something that will have value in future plugins but there hasn't been enough of it to do so. Here's what you can do: [code] protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) { if(control == jan) { // adjust display for January } else if(control == feb) { // adjust display for February } // ... // ... // ... else if(control == dec) { // adjust display for December } } [/code] Tips: Using a GridLayout will make it easier to position the components within the calendar (see the sticky post on Skinning Engine Improvements in this forum). Consider using something like the following id scheme for the row items: Row 1: 101 102 103 104 105 106 107 Row 2: 201 202 203 204 205 206 207 Row 3: 301 302 303 304 305 306 307 Row 4: 401 402 403 404 405 406 407 Row 5: 501 502 503 504 505 506 507 There are lots of ways in which you could implement this, feel free to send me the project (smirnuff@gmail.com) and I'll try and take a look but can't promise that its going to be before the end of the weekend. Cheers, Smirnoff. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
"Calendar" plugin
Contact us
RSS
Top
Bottom