- Removed Debug
- Don't resize grid when initializing - Use LoadGrid which adjusts the Grid Font - Only save contents if in edit mode Changes to Comments Added Property MySymbolFontName - Setup GoTo button to handle ROTable Grids - Support GoTo for ROTable Grids (MyFlexGrid.IsRoTable) - Restored code to handle Vertical Alignment - Added MyItemInfo property - Removed commented-out debug in DPI property - Support Font Override - Use DisplayText to do ReplaceWords - Set Text Color to Black (Change Links to Black) Use DebugOutput property rather than _DebugOutput field - Override Font for printing grids - Override Font for printing text
This commit is contained in:
@@ -182,11 +182,35 @@ namespace Volian.Controls.Library
|
||||
OnEditModeChanged(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
private static string _MySymbolFontName;
|
||||
public static string MySymbolFontName
|
||||
{
|
||||
get { return StepRTB._MySymbolFontName; }
|
||||
set { StepRTB._MySymbolFontName = value; }
|
||||
}
|
||||
private static FontFamily _MyFontFamily = null;
|
||||
public static FontFamily MyFontFamily
|
||||
{
|
||||
get { return StepRTB._MyFontFamily; }
|
||||
set { StepRTB._MyFontFamily = value; }
|
||||
set
|
||||
{
|
||||
_MyFontFamily = value;
|
||||
if (value != null)
|
||||
{
|
||||
Font font;
|
||||
if (value.IsStyleAvailable(FontStyle.Regular))
|
||||
font = new Font(value, 10);
|
||||
else if (value.IsStyleAvailable(FontStyle.Bold))
|
||||
font = new Font(value, 10, FontStyle.Bold);
|
||||
else // (value.IsStyleAvailable(FontStyle.Italic))
|
||||
font = new Font(value, 10, FontStyle.Italic);
|
||||
using (StepRTB srtb = new StepRTB())
|
||||
{
|
||||
if (srtb.FontIsFixed(font)) _MySymbolFontName = "VESymbFix";
|
||||
else _MySymbolFontName = "Arial Unicode MS";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// use newer rich text box....
|
||||
//[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
|
||||
@@ -316,7 +340,7 @@ namespace Volian.Controls.Library
|
||||
else
|
||||
{
|
||||
if (VlnSettings.DebugMode || VlnSettings.ProductionMode)
|
||||
_FormatFont = new Font(_MyFontFamily == null ? formatFont.FontFamily : _MyFontFamily, formatFont.Size, formatFont.Style);
|
||||
_FormatFont = new Font(MyFontFamily == null ? formatFont.FontFamily : MyFontFamily, formatFont.Size, formatFont.Style);
|
||||
else
|
||||
_FormatFont = new Font("Bookman Old Style", formatFont.Size, formatFont.Style);
|
||||
// TODO: Release Mode
|
||||
|
Reference in New Issue
Block a user