Storage for check button content value information.
Inheritance: ButtonImageStates
コード例 #1
0
 /// <summary>
 /// Value copy form the provided source to ourself.
 /// </summary>
 /// <param name="source">Source instance.</param>
 public void CopyFrom(CheckButtonImageStates source)
 {
     base.CopyFrom(source);
     ImageCheckedNormal   = source.ImageCheckedNormal;
     ImageCheckedPressed  = source.ImageCheckedPressed;
     ImageCheckedTracking = source.ImageCheckedTracking;
 }
コード例 #2
0
 /// <summary>
 /// Initialize a new instance of the ButtonSpec class.
 /// </summary>
 public ButtonSpec()
 {
     _image                        = null;
     _toolTipImage                 = null;
     _colorMap                     = Color.Empty;
     _imageTransparentColor        = Color.Empty;
     _toolTipImageTransparentColor = Color.Empty;
     _text                     = string.Empty;
     _extraText                = string.Empty;
     UniqueName                = CommonHelper.UniqueString;
     _toolTipTitle             = string.Empty;
     _toolTipBody              = string.Empty;
     _allowInheritImage        = true;
     _allowInheritText         = true;
     _allowInheritExtraText    = true;
     _allowInheritToolTipTitle = true;
     ToolTipStyle              = LabelStyle.ToolTip;
     _style                    = PaletteButtonStyle.Inherit;
     _orientation              = PaletteButtonOrientation.Inherit;
     ProtectedType             = PaletteButtonSpecStyle.Generic;
     _edge                     = PaletteRelativeEdgeAlign.Inherit;
     _imageStates              = new CheckButtonImageStates
     {
         NeedPaint = OnImageStateChanged
     };
     ContextMenuStrip   = null;
     KryptonContextMenu = null;
     _buttonSpecView    = null;
 }
コード例 #3
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteButtonSpecCommon class.
 /// </summary>
 /// <param name="redirector">Palette redirector for sourcing inherited values.</param>
 internal KryptonPaletteButtonSpecTyped(PaletteRedirect redirector)
     : base(redirector)
 {
     _image                    = null;
     _text                     = string.Empty;
     _extraText                = string.Empty;
     _toolTipTitle             = string.Empty;
     _colorMap                 = Color.Empty;
     _allowInheritImage        = true;
     _allowInheritText         = true;
     _allowInheritExtraText    = true;
     _allowInheritToolTipTitle = true;
     _imageStates              = new CheckButtonImageStates();
     _imageStates.NeedPaint    = new NeedPaintHandler(OnImageStateChanged);
 }
コード例 #4
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteButtonSpecCommon class.
 /// </summary>
 /// <param name="redirector">Palette redirector for sourcing inherited values.</param>
 internal KryptonPaletteButtonSpecTyped(PaletteRedirect redirector)
     : base(redirector)
 {
     _image = null;
     _text = string.Empty;
     _extraText = string.Empty;
     _toolTipTitle = string.Empty;
     _colorMap = Color.Empty;
     _allowInheritImage = true;
     _allowInheritText = true;
     _allowInheritExtraText = true;
     _allowInheritToolTipTitle = true;
     _imageStates = new CheckButtonImageStates();
     _imageStates.NeedPaint = new NeedPaintHandler(OnImageStateChanged);
 }
コード例 #5
0
 /// <summary>
 /// Create the storage for the image states.
 /// </summary>
 /// <returns>Storage object.</returns>
 protected override ButtonImageStates CreateImageStates()
 {
     _imageStates = new CheckButtonImageStates();
     return(_imageStates);
 }
コード例 #6
0
 /// <summary>
 /// Create the storage for the image states.
 /// </summary>
 /// <returns>Storage object.</returns>
 protected override ButtonImageStates CreateImageStates()
 {
     _imageStates = new CheckButtonImageStates();
     return _imageStates;
 }
コード例 #7
0
 /// <summary>
 /// Value copy form the provided source to ourself.
 /// </summary>
 /// <param name="source">Source instance.</param>
 public void CopyFrom(CheckButtonImageStates source)
 {
     base.CopyFrom(source);
     ImageCheckedNormal = source.ImageCheckedNormal;
     ImageCheckedPressed = source.ImageCheckedPressed;
     ImageCheckedTracking = source.ImageCheckedTracking;
 }
コード例 #8
0
 /// <summary>
 /// Initialize a new instance of the ButtonSpec class.
 /// </summary>
 public ButtonSpec()
 {
     _image = null;
     _toolTipImage = null;
     _colorMap = Color.Empty;
     _imageTransparentColor = Color.Empty;
     _toolTipImageTransparentColor = Color.Empty;
     _text = string.Empty;
     _extraText = string.Empty;
     _uniqueName = CommonHelper.UniqueString;
     _toolTipTitle = string.Empty;
     _toolTipBody = string.Empty;
     _allowInheritImage = true;
     _allowInheritText = true;
     _allowInheritExtraText = true;
     _allowInheritToolTipTitle = true;
     _toolTipStyle = LabelStyle.ToolTip;
     _style = PaletteButtonStyle.Inherit;
     _orientation = PaletteButtonOrientation.Inherit;
     _type = PaletteButtonSpecStyle.Generic;
     _edge = PaletteRelativeEdgeAlign.Inherit;
     _imageStates = new CheckButtonImageStates();
     _imageStates.NeedPaint = new NeedPaintHandler(OnImageStateChanged);
     _contextMenuStrip = null;
     _kryptonContextMenu = null;
     _buttonSpecView = null;
 }