Beispiel #1
0
 public MaskTop(ControlMask mask) : base(mask)
 {
     nodes = new Rectangle[3];
     for (int i = 0; i < nodes.Length; i++)
     {
         nodes[i] = new Rectangle(0, 0, mask.NodeSize, mask.NodeSize);
     }
 }
Beispiel #2
0
		public MaskComponent(ControlMask mask) {
			this.mask = mask;
			SetStyle(ControlStyles.SupportsTransparentBackColor, true);
			SetStyle(ControlStyles.DoubleBuffer, true);
			SetStyle(ControlStyles.AllPaintingInWmPaint, true);
			SetStyle(ControlStyles.UserPaint, true);
			SetStyle(ControlStyles.ResizeRedraw, true);
			BackColor = Color.Transparent;
		}
 public MaskComponent(ControlMask mask)
 {
     this.mask = mask;
     SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     SetStyle(ControlStyles.DoubleBuffer, true);
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     SetStyle(ControlStyles.UserPaint, true);
     SetStyle(ControlStyles.ResizeRedraw, true);
     BackColor = Color.Transparent;
 }
Beispiel #4
0
		public MaskBottom(ControlMask mask) : base(mask) {
			nodes = new Rectangle[3];
			for (int i = 0; i < nodes.Length; i++)
				nodes[i] = new Rectangle(0,0,mask.NodeSize,mask.NodeSize);
		}
Beispiel #5
0
		public MaskRight(ControlMask mask) : base(mask) {
			nodes = new Rectangle[1];
			nodes[0] = new Rectangle(0,0,mask.NodeSize,mask.NodeSize);
		}
Beispiel #6
0
 public MaskLeft(ControlMask mask) : base(mask)
 {
     nodes    = new Rectangle[1];
     nodes[0] = new Rectangle(0, 0, mask.NodeSize, mask.NodeSize);
 }