This commit is contained in:
parent
2fa637ab4d
commit
98ba49a249
@ -783,9 +783,11 @@ namespace Volian.Controls.Library
|
|||||||
if (highlight)
|
if (highlight)
|
||||||
{
|
{
|
||||||
MyFlexGrid.StyleBackColor = Color.Gray;
|
MyFlexGrid.StyleBackColor = Color.Gray;
|
||||||
|
MyFlexGrid.Styles.Fixed.BackColor = Color.Gray;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
||||||
if (MyFlexGrid.Focused) // If active Set BackColor to the active color
|
if (MyFlexGrid.Focused) // If active Set BackColor to the active color
|
||||||
SetActive();
|
SetActive();
|
||||||
else // Otherwise Set the BackColor to either the InactiveColor or the AnnotationColor
|
else // Otherwise Set the BackColor to either the InactiveColor or the AnnotationColor
|
||||||
|
@ -1557,6 +1557,8 @@ namespace Volian.Controls.Library
|
|||||||
btnStepPaste.Enabled = true;
|
btnStepPaste.Enabled = true;
|
||||||
SetPasteButtonEnabled();
|
SetPasteButtonEnabled();
|
||||||
}
|
}
|
||||||
|
if (MyFlexGrid != null)
|
||||||
|
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
||||||
MyEditItem.IdentifyChildren(false);
|
MyEditItem.IdentifyChildren(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,12 @@ namespace Volian.Controls.Library
|
|||||||
public partial class VlnFlexGrid : C1.Win.C1FlexGrid.C1FlexGrid
|
public partial class VlnFlexGrid : C1.Win.C1FlexGrid.C1FlexGrid
|
||||||
{
|
{
|
||||||
public static GridCopyInfo MyCopyInfo = new GridCopyInfo();
|
public static GridCopyInfo MyCopyInfo = new GridCopyInfo();
|
||||||
|
private Color _DefaultFixedBackgroundColor;
|
||||||
|
|
||||||
|
public Color DefaultFixedBackgroundColor
|
||||||
|
{
|
||||||
|
get { return _DefaultFixedBackgroundColor; }
|
||||||
|
}
|
||||||
|
|
||||||
public void CopyToCopiedFlexGrid(GridCopyOption myCopyOption)
|
public void CopyToCopiedFlexGrid(GridCopyOption myCopyOption)
|
||||||
{
|
{
|
||||||
@ -33,7 +39,6 @@ namespace Volian.Controls.Library
|
|||||||
this.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None;
|
this.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None;
|
||||||
sr.Close();
|
sr.Close();
|
||||||
}
|
}
|
||||||
//FlipCopied(); // create a flipped version of the grid
|
|
||||||
MyCopyInfo.MyCopyOption = myCopyOption;
|
MyCopyInfo.MyCopyOption = myCopyOption;
|
||||||
OnCopyOptionChanged(this, new EventArgs());
|
OnCopyOptionChanged(this, new EventArgs());
|
||||||
switch (MyCopyInfo.MyCopyOption)
|
switch (MyCopyInfo.MyCopyOption)
|
||||||
@ -560,6 +565,7 @@ namespace Volian.Controls.Library
|
|||||||
this.Styles.Focus.BackColor = Color.LightCyan;
|
this.Styles.Focus.BackColor = Color.LightCyan;
|
||||||
this.HighLight = HighLightEnum.WithFocus;
|
this.HighLight = HighLightEnum.WithFocus;
|
||||||
|
|
||||||
|
_DefaultFixedBackgroundColor = this.Styles.Fixed.BackColor;
|
||||||
this.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.Custom;
|
this.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.Custom;
|
||||||
|
|
||||||
this.AllowResizing = C1.Win.C1FlexGrid.AllowResizingEnum.Both;
|
this.AllowResizing = C1.Win.C1FlexGrid.AllowResizingEnum.Both;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user