Example #1
0
 public CustomButton()
 {
     _flags = (CbFlags)0;
     this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                   ControlStyles.UserPaint |
                   ControlStyles.OptimizedDoubleBuffer |
                   ControlStyles.SupportsTransparentBackColor,
                   true);
 }
 public CustomButton()
 {
     _flags = (CbFlags)0;
     this.SetStyle(ControlStyles.AllPaintingInWmPaint |
         ControlStyles.UserPaint |
         ControlStyles.OptimizedDoubleBuffer |
         ControlStyles.SupportsTransparentBackColor,
         true);
 }
Example #3
0
 protected void ClearFlag(CbFlags f)
 {
     _flags ^= f;
 }
Example #4
0
 protected void SetFlag(CbFlags f)
 {
     _flags |= f;
 }
Example #5
0
 protected bool GetFlag(CbFlags f)
 {
     return((_flags & f) > 0);
 }
 protected bool GetFlag(CbFlags f)
 {
     return (_flags & f) > 0;
 }
 protected void ClearFlag(CbFlags f)
 {
     _flags ^= f;
 }
 protected void SetFlag(CbFlags f)
 {
     _flags |= f;
 }