MantisBT - MPfm
View Issue Details
0000335MPfmUI | Custom Controls | Windows (WinForms)public2012-04-09 12:122012-04-28 22:33
ycastonguay 
ycastonguay 
normalfeatureN/A
resolvedfixed 
 
0.6.0.00.6.0.0 
0000335: Add a PaintHelper static class to regroup rendering code
Background gradients are rendered frequently in the custom controls and it would be a great idea to regroup all this code under a few methods in a PaintHelper static class.
No tags attached.
child of 0000307assigned ycastonguay Add themes (only for the Windows platform) 
Issue History
2012-04-09 12:12ycastonguayNew Issue
2012-04-09 12:12ycastonguayStatusnew => assigned
2012-04-09 12:12ycastonguayAssigned To => ycastonguay
2012-04-09 12:12ycastonguayRelationship addedchild of 0000307
2012-04-09 13:08svnCheckin
2012-04-09 13:08svnNote Added: 0000579
2012-04-12 11:12svnCheckin
2012-04-12 11:12svnNote Added: 0000586
2012-04-14 10:09ycastonguaySummaryAdd a ThemeHelper static class to regroup rendering code => Add a PaintHelper static class to regroup rendering code
2012-04-14 10:09ycastonguayDescription Updatedbug_revision_view_page.php?rev_id=158#r158
2012-04-14 10:10svnCheckin
2012-04-14 10:10svnNote Added: 0000589
2012-04-14 10:19svnCheckin
2012-04-14 10:19svnNote Added: 0000590
2012-04-14 10:48svnCheckin
2012-04-14 10:48svnNote Added: 0000591
2012-04-14 13:59svnCheckin
2012-04-14 13:59svnNote Added: 0000592
2012-04-14 15:51svnCheckin
2012-04-14 15:51svnNote Added: 0000593
2012-04-14 18:41svnCheckin
2012-04-14 18:41svnNote Added: 0000597
2012-04-17 19:10ycastonguayCategoryControls => Windows Controls
2012-04-22 09:48svnCheckin
2012-04-22 09:48svnNote Added: 0000615
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)
2012-04-28 22:02svnCheckin
2012-04-28 22:02svnNote Added: 0000638
2012-04-28 22:31svnCheckin
2012-04-28 22:31svnNote Added: 0000640
2012-04-28 22:33ycastonguayNote Added: 0000641
2012-04-28 22:33ycastonguayStatusassigned => resolved
2012-04-28 22:33ycastonguayFixed in Version => 0.6.0.0
2012-04-28 22:33ycastonguayResolutionopen => fixed

Notes
(0000579)
svn   
2012-04-09 13:08   
The user animal has checked in files related to this issue (revision 408).

Comment:
MPfm 0.6.0.0
- Added custom FlowLayoutPanel control with gradient background.
- Added ThemeHelper static class with the RenderBackgroundGradient method.
- Moved container controls into Container folder.

Related to issue 0000334 and issue 0000335.



Files modified:
U MPfm/branches/current/MPfm/frmMain.Designer.cs
U MPfm/branches/current/MPfm/frmMain.resx
A MPfm/branches/current/MPfm.WindowsControls/Containers/
A MPfm/branches/current/MPfm.WindowsControls/Containers/FlowLayoutPanel.cs
A MPfm/branches/current/MPfm.WindowsControls/Containers/FlowLayoutPanelTheme.cs
A MPfm/branches/current/MPfm.WindowsControls/Containers/Form.cs
A MPfm/branches/current/MPfm.WindowsControls/Containers/Panel.cs
A MPfm/branches/current/MPfm.WindowsControls/Containers/PanelTheme.cs
U MPfm/branches/current/MPfm.WindowsControls/Control.cs
U MPfm/branches/current/MPfm.WindowsControls/MPfm.WindowsControls.csproj
A MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
D MPfm/branches/current/MPfm.WindowsControls/Panel-Forms/
(0000586)
svn   
2012-04-12 11:12   
The user animal has checked in files related to this issue (revision 416).

Comment:
MPfm 0.6.0.0
- PaintHelper: Added the LoadFont and SetAntiAliasing methods
- Label: Now using PaintHelper methods.

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm.WindowsControls/Labels/Label.cs
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
(0000589)
svn   
2012-04-14 10:10   
The user animal has checked in files related to this issue (revision 419).

Comment:
MPfm 0.6.0.0

* Panel
  - Now inheriting from Control instead of System.Windows.Forms.Panel.
  - Now using PaintHelper methods instead of separate code.
  - Added TextAlign to control properties.
* Label
  - Moved TextAlign to control properties.
* PaintHelper
  - RenderBackgroundGradient: Fixed non visible border on bottom and right side.
  - Added the RenderTextWithAlignment method.

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm/frmMain.Designer.cs
U MPfm/branches/current/MPfm/frmMain.resx
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/LabelTheme.cs
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
(0000590)
svn   
2012-04-14 10:19   
The user animal has checked in files related to this issue (revision 420).

Comment:
MPfm 0.6.0.0
* LinkLabel
  - Added TextAlign to control properties.
  - Now using PaintHelper methods for rendering.

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm/frmMain.Designer.cs
U MPfm/branches/current/MPfm/frmMain.resx
U MPfm/branches/current/MPfm/frmSplash.Designer.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/LinkLabel.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/LinkLabelTheme.cs
(0000591)
svn   
2012-04-14 10:48   
The user animal has checked in files related to this issue (revision 421).

Comment:
MPfm 0.6.0.0
* PaintHelper
  - Added the RenderImageWithAlignment method.
* Button
  - Now inheriting from MPfm.WindowsControls.Control instead of System.Windows.Forms.Button.
  - Added TextAlign, ImageAlign and Image to control properties.
  - Now using PaintHelper methods for rendering.

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm/Other Screens/frmAddEditLoop.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmAddEditMarker.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmEditSongMetadata.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmEffects.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmLoadPlaylist.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmPlaylist.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmRenameSavePlaylist.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmSettings.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmThemes.Designer.cs
U MPfm/branches/current/MPfm/frmFirstRun.Designer.cs
U MPfm/branches/current/MPfm/frmMain.Designer.cs
U MPfm/branches/current/MPfm/frmUpdateLibraryStatus.Designer.cs
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/Button.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/Label.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/LinkLabel.cs
U MPfm/branches/current/MPfm.WindowsControls/MPfm.WindowsControls.csproj
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
D MPfm/branches/current/MPfm.WindowsControls/Themes/ExampleTheme.xml
(0000592)
svn   
2012-04-14 13:59   
The user animal has checked in files related to this issue (revision 422).

Comment:
MPfm 0.6.0.0
* PaintHelper
  - Added an overload to the RenderBackgroundGradient method (added rectangle for border).
* Button
  - Fixed artifacts by drawing the rectangle slightly off the control (-1, -1 to width+1, height+1).
* Panel
  - Fixed artifacts by drawing the rectangle slightly off the control (-1, -1 to width+1, height+1).

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/Button.cs
U MPfm/branches/current/MPfm.WindowsControls/Containers/Panel.cs
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
(0000593)
svn   
2012-04-14 15:51   
The user animal has checked in files related to this issue (revision 423).

Comment:
MPfm 0.6.0.0
* PaintHelper
  - Added padding to the RenderTextGradient method.

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/Button.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
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
U MPfm/branches/current/MPfm.WindowsControls/Misc/TextGradient.cs
(0000597)
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
(0000615)
svn   
2012-04-22 09:48   
The user animal has checked in files related to this issue (revision 442).

Comment:
MPfm 0.6.0.0
* OutputMeter (Windows Controls)
  - Using PaintHelper methods for rendering.
* PaintHelper (Windows Controls)
  - Added more overload methods for RenderBackgroundGradient (now supports RectangleF objects and a different rectangle for gradient).

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm.WindowsControls/Audio/OutputMeter.cs
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
(0000638)
svn   
2012-04-28 22:02   
The user animal has checked in files related to this issue (revision 459).

Comment:
MPfm 0.6.0.0
* PaintHelper (Windows Controls)
  - Fixed positiong issue with Junction font.
* First Run Window (WinForms)
  - Reset the look to the original theme.
* Main Window (WinForms)
  - Minor visual bug fixes.
* Edit Metadata Window (WinForms)
  - Minor visual bug fixes.
* Playlist Window (WinForms)
  - Minor visual bug fixes.
* Update Library Window (WinForms)
  - Minor visual bug fixes.

Related to issue 0000333 and issue 0000335.



Files modified:
U MPfm/branches/current/MPfm/Other Screens/frmEditSongMetadata.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmPlaylist.Designer.cs
U MPfm/branches/current/MPfm/Other Screens/frmPlaylist.cs
U MPfm/branches/current/MPfm/Other Screens/frmPlaylist.resx
U MPfm/branches/current/MPfm/frmFirstRun.Designer.cs
U MPfm/branches/current/MPfm/frmFirstRun.resx
U MPfm/branches/current/MPfm/frmMain.Designer.cs
U MPfm/branches/current/MPfm/frmMain.resx
U MPfm/branches/current/MPfm/frmUpdateLibraryStatus.Designer.cs
U MPfm/branches/current/MPfm/frmUpdateLibraryStatus.resx
U MPfm/branches/current/MPfm.WindowsControls/Misc/PaintHelper.cs
(0000640)
svn   
2012-04-28 22:31   
The user animal has checked in files related to this issue (revision 461).

Comment:
MPfm 0.6.0.0
* Wave Form Display (Windows Controls)
  - Now using PaintHelper methods for loading embedded fonts and anti-alisasing.
* Main Window (WinForms)
  - Minor visual bug fixes.

Related to issue 0000335.



Files modified:
U MPfm/branches/current/MPfm/frmMain.resx
U MPfm/branches/current/MPfm.WindowsControls/Audio/WaveFormDisplay.cs
(0000641)
ycastonguay   
2012-04-28 22:33   
There is still work on this task to be done; the SongGridView control needs to be updated, but that will be quite time consuming. So it will be done later.