Ejemplo n.º 1
0
 public AlphaColorDialog()
 {
     FullOpen                 = true;
     m_alphaPanel             = new Panel();
     m_alphaText              = new NumericTextBox();
     m_alphaLabel             = new Label();
     m_alphaBar               = new AlphaTrackBar();
     m_alphaPanel.BorderStyle = BorderStyle.None;
     m_alphaPanel.Width       = 50;
     m_alphaPanel.Height      = 268;
     m_alphaPanel.Padding     = new Padding(3);
     m_alphaBar.Name          = "alphaBar";
     m_alphaBar.Location      = new Point(10, 3);
     m_alphaBar.Height        = 180;
     m_alphaBar.Width         = 36;
     m_alphaBar.AutoSize      = false;
     m_alphaBar.ValueChanged += BarValueChanged;
     m_alphaText.Name         = "alphaText";
     m_alphaText.Height       = 12;
     m_alphaText.Width        = 28;
     m_alphaText.TextChanged += TextValueChanged;
     m_alphaLabel.Height      = 14;
     m_alphaLabel.Width       = 15;
     m_alphaLabel.Text        = "A:";
     m_alphaPanel.Controls.Add(m_alphaBar);
     m_alphaPanel.Controls.Add(m_alphaLabel);
     m_alphaPanel.Controls.Add(m_alphaText);
     m_alphaLabel.Font     = new Font(m_alphaLabel.Font.FontFamily, 9f);
     m_alphaLabel.Location = new Point(0, 189);
     m_alphaText.Font      = new Font(m_alphaText.Font.FontFamily, 9f);
     m_alphaText.Location  = new Point(14, 186);
 }
Ejemplo n.º 2
0
 public new void Dispose()
 {
     m_alphaText.Dispose();
     m_alphaLabel.Dispose();
     m_alphaBar.Dispose();
     m_alphaPanel.Dispose();
     m_alphaLabel = null;
     m_alphaText  = null;
     m_alphaBar   = null;
     m_alphaPanel = null;
     base.Dispose();
 }