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 Skins
Selectbutton bug
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="GannTrader" data-source="post: 260773" data-attributes="member: 30382"><p>Hi</p><p></p><p>This bug isnt fixed yet and since its a bug in the core someone should correct it.</p><p>It quite easy to correct the function SetPosition, se below.</p><p>The code is copied from another part of the GUISelectButtonControl.cs</p><p>But somone shoult take a look at the properties posx and posy so they funktion as well.</p><p></p><p>public override void SetPosition(int dwPosX, int dwPosY)</p><p> {</p><p> if (dwPosX < 0) return;</p><p> if (dwPosY < 0) return;</p><p> base.SetPosition(dwPosX, dwPosY);</p><p> _imageFocused.SetPosition(dwPosX, dwPosY);</p><p> _imageNonFocused.SetPosition(dwPosX, dwPosY);</p><p></p><p> // position right arrow</p><p> int x1 = 8;</p><p> int x2 = 16;</p><p> GUIGraphicsContext.ScaleHorizontal(ref x1);</p><p> GUIGraphicsContext.ScaleHorizontal(ref x2);</p><p> int dwX = (dwPosX + _width - x1) - x2;</p><p></p><p> int y1 = 16;</p><p> GUIGraphicsContext.ScaleVertical(ref y1);</p><p> int dwY = dwPosY + (_height - y1) / 2;</p><p> _imageRight.SetPosition(dwX, dwY);</p><p> _imageRightFocus.SetPosition(dwX, dwY);</p><p></p><p> // Position left arrow</p><p> dwX = dwPosX + x1;</p><p> _imageLeft.SetPosition(dwX, dwY);</p><p> _imageLeftFocus.SetPosition(dwX, dwY);</p><p>}</p></blockquote><p></p>
[QUOTE="GannTrader, post: 260773, member: 30382"] Hi This bug isnt fixed yet and since its a bug in the core someone should correct it. It quite easy to correct the function SetPosition, se below. The code is copied from another part of the GUISelectButtonControl.cs But somone shoult take a look at the properties posx and posy so they funktion as well. public override void SetPosition(int dwPosX, int dwPosY) { if (dwPosX < 0) return; if (dwPosY < 0) return; base.SetPosition(dwPosX, dwPosY); _imageFocused.SetPosition(dwPosX, dwPosY); _imageNonFocused.SetPosition(dwPosX, dwPosY); // position right arrow int x1 = 8; int x2 = 16; GUIGraphicsContext.ScaleHorizontal(ref x1); GUIGraphicsContext.ScaleHorizontal(ref x2); int dwX = (dwPosX + _width - x1) - x2; int y1 = 16; GUIGraphicsContext.ScaleVertical(ref y1); int dwY = dwPosY + (_height - y1) / 2; _imageRight.SetPosition(dwX, dwY); _imageRightFocus.SetPosition(dwX, dwY); // Position left arrow dwX = dwPosX + x1; _imageLeft.SetPosition(dwX, dwY); _imageLeftFocus.SetPosition(dwX, dwY); } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
Selectbutton bug
Contact us
RSS
Top
Bottom