This commit is contained in:
2011-04-20 20:12:24 +00:00
parent a54391cc69
commit d8071395fe
3 changed files with 20 additions and 3 deletions

View File

@@ -538,12 +538,31 @@ namespace Volian.Controls.Library
if (StepRTB.MySymbolFontName != "Arial Unicode MS")
str = _ReplaceArialUnicodeMS.Replace(str, "$1" + StepRTB.MySymbolFontName + "$3");
str = _ReplaceTextFont.Replace(str, "$1" + ff.Name + "$4");
// To prevent scroll bars from being flashed on/off
// - save an image of the current grid
// - set Visible to false
// - draw the saved grid image
// - do the the load/reload of the grid
// - set Visible back to true.
System.Drawing.Image img = this.CreateImage();
Visible = false;
if (Parent is GridItem)
{
using (Graphics gr = (Parent as GridItem).CreateGraphics())
{
gr.DrawImage(img, Left, Top);
}
}
Clear();
MergedRanges.Clear();
using (StringReader sr = new StringReader(str))
{
ReadXml(sr);
this.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None;
sr.Close();
}
Visible = true;
}
private void SetupGrid(int numrows, int numcols) //C1FlexGrid NewGrid()
{