Exemple #1
0
        private void btnRectDraw_Click(object sender, EventArgs e)
        {
            operation = OPERATION.DRAWING;
            toolStripLabel1.Text = "マウスをドラッグして描画します。";
            drawmethod = rectdraw;
            dropdown.Items.Clear();
            dropdown.Items.Add(btnSolidBrush);
            dropdown.Items.Add(btnHatchBrush);
            dropdown.Items.Add(btnTextureBrush);
            dropdown.Items.Add(btnLinearGradientBrush);
            toolStripSplitBtnDevice.ToolTipText = drawmethod.GetDrawDeviceName();
            DrawMethod.UpdateDevice();
            toolStripSplitBtnDevice.Invalidate();

            ToolStripButton btn = (ToolStripButton)sender;
            if (btnSelected != null) btnSelected.Checked = false;
            btnSelected = btn;
            btnSelected.Checked = true;
        }
Exemple #2
0
        private void btnStringDraw_Click(object sender, EventArgs e)
        {
            operation = OPERATION.SET_TEXT_POS;
            toolStripLabel1.Text = "文字を書く位置をクリックしてください。";
            drawmethod = stringdraw;
            dropdown.Items.Clear();
            dropdown.Items.Add(btnSolidBrush);
            dropdown.Items.Add(btnHatchBrush);
            dropdown.Items.Add(btnTextureBrush);
            dropdown.Items.Add(btnLinearGradientBrush);
            toolStripSplitBtnDevice.ToolTipText = drawmethod.GetDrawDeviceName();
            DrawMethod.UpdateDevice();
            toolStripSplitBtnDevice.Invalidate();

            ToolStripButton btn = (ToolStripButton)sender;
            if (btnSelected != null) btnSelected.Checked = false;
            btnSelected = btn;
            btnSelected.Checked = true;
        }
Exemple #3
0
        private void btnCopyRect_Click(object sender, EventArgs e)
        {
            operation = OPERATION.COPY_IMG_SEL_ST;
            toolStripLabel1.Text = "マウスをドラッグして選択します。";
            drawmethod = copyrect;
            dropdown.Items.Clear();
            toolStripSplitBtnDevice.ToolTipText = drawmethod.GetDrawDeviceName();
            DrawMethod.UpdateDevice();
            toolStripSplitBtnDevice.Invalidate();

            ToolStripButton btn = (ToolStripButton)sender;
            if (btnSelected != null) btnSelected.Checked = false;
            btnSelected = btn;
            btnSelected.Checked = true;
        }