MantisBT - MPfm
View Issue Details
0000297MPfmUI | Custom Controls | Windows (WinForms)public2012-02-19 11:162012-03-11 19:43
ycastonguay 
ycastonguay 
normalmajoralways
resolvedfixed 
0.4.3.0 
0.6.0.00.6.0.0 
0000297: The embedded fonts aren't visible in design time (in Visual Studio)
This is because the controls can't find the path to MPfm.Fonts.dll.
The path to the executing assembly can be found only by running this code inside a control:

ITypeResolutionService typeResService = GetService(typeof(ITypeResolutionService)) as ITypeResolutionService;
if (typeResService != null)
{
    path = typeResService.GetPathOfAssembly(Assembly.GetExecutingAssembly().GetName());
}

This must be run outside of the constructor.
No tags attached.
child of 0000307assigned ycastonguay Add themes (only for the Windows platform) 
Issue History
2012-02-19 11:16ycastonguayNew Issue
2012-02-19 11:16ycastonguayStatusnew => assigned
2012-02-19 11:16ycastonguayAssigned To => ycastonguay
2012-02-19 11:40svnCheckin
2012-02-19 11:40svnNote Added: 0000430
2012-02-19 15:33svnCheckin
2012-02-19 15:33svnNote Added: 0000431
2012-02-19 15:34ycastonguayStatusassigned => resolved
2012-02-19 15:34ycastonguayFixed in Version => 0.6.0.0
2012-02-19 15:34ycastonguayResolutionopen => fixed
2012-03-11 19:43ycastonguayRelationship addedchild of 0000307
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
(0000430)
svn   
2012-02-19 11:40   
The user admin has checked in files related to this issue (revision 323).

Comment:
MPfm 0.5.3.0
- The embedded fonts are now visible in Visual Studio for the Label control.
- Added a generic Control class with a LoadEmbeddedFonts method.

Related to issue 0000297.

Files modified:
U MPfm/branches/current/MPfm/Other Screens/frmThemes.Designer.cs
U MPfm/branches/current/MPfm.WindowsControls/Fonts/CustomFontEditor.cs
U MPfm/branches/current/MPfm.WindowsControls/Fonts/EmbeddedFontCollection.cs
U MPfm/branches/current/MPfm.WindowsControls/Fonts/EmbeddedFontHelper.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/Label.cs
U MPfm/branches/current/MPfm.WindowsControls/MPfm.WindowsControls.csproj
A MPfm/branches/current/MPfm.WindowsControls/Misc/Control.cs

(0000431)
svn   
2012-02-19 15:33   
The user admin has checked in files related to this issue (revision 324).

Comment:
MPfm 0.5.3.0
- Replaced the loading of embedded fonts with the new technique to allow embedded fonts
  to be visible at design time. All the controls are converted now.

Related to issue 0000297.

Files modified:
U MPfm/branches/current/MPfm.WindowsControls/Audio/OutputMeter.cs
U MPfm/branches/current/MPfm.WindowsControls/Audio/WaveFormDisplay.cs
U MPfm/branches/current/MPfm.WindowsControls/Buttons-Toolbars/Button.cs
U MPfm/branches/current/MPfm.WindowsControls/Labels/LinkLabel.cs
U MPfm/branches/current/MPfm.WindowsControls/Library/SongGridView.cs
U MPfm/branches/current/MPfm.WindowsControls/Misc/Control.cs
U MPfm/branches/current/MPfm.WindowsControls/Panel-Forms/Panel.cs