Override the default font for Demo Mode

Check for null MyFlexGrid before using it.
Added Static LineWidth0 method used for drawing borders on the screen
Fixed logic to draw borders on the VlnFlexGrid
Fixed logic to draw grid borders on the pdf output.
This commit is contained in:
Rich
2011-04-07 23:35:07 +00:00
parent f1074ce770
commit 2d16db5bf2
6 changed files with 310 additions and 145 deletions

View File

@@ -274,6 +274,13 @@ namespace VEPROMS
tc.Enter += new EventHandler(tc_Enter);
tc.Leave += new EventHandler(tc_Leave);
this.Deactivate += new EventHandler(frmVEPROMS_Deactivate);
if (VlnSettings.DemoMode) StepRTB.MyFontFamily = GetFamily("Bookman Old Style");
}
private FontFamily GetFamily(string name)
{
foreach (FontFamily ff in FontFamily.Families)
if (ff.Name == name) return ff;
return null;
}
void frmVEPROMS_Deactivate(object sender, EventArgs e)
{