MantisBT - MPfm
View Issue Details
0000336MPfmUI | Custom Controls | Windows (WinForms)public2012-04-14 18:292012-04-14 18:42
ycastonguay 
ycastonguay 
normalfeatureN/A
resolvedfixed 
 
0.6.0.00.6.0.0 
0000336: Add transparency to the Fader and TrackBar controls
Add transparency by calling the same code found in the Label and LinkLabel controls.

                // Check if the gradient background should be used
                if (!theme.IsBackgroundTransparent)
                {
                    // Draw background gradient (cover -1 pixel to fix graphic bug)
                    Rectangle rectBackground = new Rectangle(-1, -1, ClientRectangle.Width + 2, ClientRectangle.Height + 2);
                    Rectangle rectBorder = new Rectangle(0, 0, ClientRectangle.Width - 1, ClientRectangle.Height - 1);
                    PaintHelper.RenderBackgroundGradient(g, rectBackground, rectBorder, theme.TextGradient);
                }
                else
                {
                    // Call paint background
                    base.OnPaintBackground(pe); // CPU intensive when transparent
                }
No tags attached.
child of 0000307assigned ycastonguay Add themes (only for the Windows platform) 
Issue History
2012-04-14 18:29ycastonguayNew Issue
2012-04-14 18:29ycastonguayStatusnew => assigned
2012-04-14 18:29ycastonguayAssigned To => ycastonguay
2012-04-14 18:29ycastonguayRelationship addedchild of 0000307
2012-04-14 18:41svnCheckin
2012-04-14 18:41svnNote Added: 0000598
2012-04-14 18:42ycastonguayStatusassigned => resolved
2012-04-14 18:42ycastonguayFixed in Version => 0.6.0.0
2012-04-14 18:42ycastonguayResolutionopen => fixed
2012-04-17 19:10ycastonguayCategoryControls => Windows Controls
2012-04-24 20:59ycastonguayCategoryWindows Controls => UI | Windows | Custom Controls
2012-04-24 20:59ycastonguayCategoryUI | Windows | Custom Controls => Custom Controls | Windows
2012-04-24 21:00ycastonguayCategoryCustom Controls | Windows => UI | Custom Controls | Windows
2012-04-24 21:01ycastonguayCategoryUI | Custom Controls | Windows => UI | Custom Controls | Windows (WinForms)

Notes
(0000598)
svn   
2012-04-14 18:41   
The user animal has checked in files related to this issue (revision 427).

Comment:
MPfm 0.6.0.0
* Fader
  - Added transparency
  - Now using PaintHelper methods
* TrackBar
  - Added transparency
  - Now using PaintHelper methods
* Label
  - Fixed background border bug.
* LinkLabel
  - Fixed background border bug.
* Panel
  - Fixed background border bug.

Related to issue 0000335 and issue 0000336.



Files modified:
U MPfm/branches/current/MPfm/Other Screens/frmEffects.Designer.cs
U MPfm/branches/current/MPfm/frmMain.Designer.cs
U MPfm/branches/current/MPfm/frmMain.resx
U MPfm/branches/current/MPfm.WindowsControls/Audio/Fader.cs
U MPfm/branches/current/MPfm.WindowsControls/Audio/FaderTheme.cs
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/TrackBar.cs
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/TrackBarTheme.cs
U MPfm/branches/current/MPfm.WindowsControls/Containers/Panel.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/Label.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/LinkLabel.cs