Наследование: System.Windows.Forms.Form
Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>

        internal ColorSwatchPanel()
        {
            InitializeComponent();

            m_startX = m_swatchRegion.X + OUTER_PADDING;
            m_startY = m_swatchRegion.Y + OUTER_PADDING;
            this.colorTip.SetToolTip(this, "blah");

            dragFormSwatch = new DragForm();

            this.AllowDrop = true;
        }
Пример #2
0
        /// <summary>
        /// Constructor. 
        /// </summary>
        internal ColorSwatchPanel()
        {
            InitializeComponent();

            m_startX = m_swatchRegion.X + OUTER_PADDING;
            m_startY = m_swatchRegion.Y + OUTER_PADDING;
            this.colorTip.SetToolTip( this, "blah" );

            dragFormSwatch = new DragForm();

            this.AllowDrop = true;
        }
Пример #3
0
 /// <summary>
 /// Overrides the base class' OnLoad method and instantiates a new
 /// DragForm object that will be used to create the visual drag effect
 /// when adding the currently selected color to the color swatch panel.
 /// </summary>
 /// <param name="e">An EventArgs that contains the event data.</param>
 protected override void OnLoad(EventArgs e)
 {
     dragForm = new DragForm();
 }
Пример #4
0
        /// <summary>
        /// Overrides the base class' OnLoad method and instantiates a new
        /// DragForm object that will be used to create the visual drag effect
        /// when adding the currently selected color to the color swatch panel.
        /// </summary>
        /// <param name="e">An EventArgs that contains the event data.</param>

        protected override void OnLoad(EventArgs e)
        {
            dragForm = new DragForm();
        }