This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user