示例#1
0
 private void CBAddLabel_CheckedChanged(object sender, EventArgs e)
 {
     if (CBAddLabel.Checked)
     {
         UncheckOtherCheckboxes(sender);
         Label control = new Label(graphicsControl1, graphicsControl1.MainDialog, data);
         graphicsControl1.Create(control);
     }
     else
     {
         CancelIfNoneChecked();
     }
 }
        private void StyleBrowserDialog_Load(object sender, EventArgs e)
        {
            Dialog mainDialog = new Dialog(graphicsControl1, new Rectangle(0, 0, 200, 200), null);
            mainDialog.Fullscreen = true;
            mainDialog.ImageType = ImageType.None;
            graphicsControl1.AddDialog(mainDialog);

            label = new Label(graphicsControl1, mainDialog, null);
            label.Text = TBTestText.Text;
            label.TextStyle = SelectedFont;
            label.Size = new Size(graphicsControl1.DrawWidth, graphicsControl1.DrawHeight);
            label.Offset = new Point(0, 0);
            label.RenderPriority = 513;
            mainDialog.AddControl(label);
            graphicsControl1.Invalidate();
        }
示例#3
0
        private void StyleBrowserDialog_Load(object sender, EventArgs e)
        {
            Dialog mainDialog = new Dialog(graphicsControl1, new Rectangle(0, 0, 200, 200), null);

            mainDialog.Fullscreen = true;
            mainDialog.ImageType  = ImageType.None;
            graphicsControl1.AddDialog(mainDialog);

            label                = new Label(graphicsControl1, mainDialog, null);
            label.Text           = TBTestText.Text;
            label.TextStyle      = SelectedFont;
            label.Size           = new Size(graphicsControl1.DrawWidth, graphicsControl1.DrawHeight);
            label.Offset         = new Point(0, 0);
            label.RenderPriority = 513;
            mainDialog.AddControl(label);
            graphicsControl1.Invalidate();
        }
 private void CBAddLabel_CheckedChanged(object sender, EventArgs e)
 {
     if (CBAddLabel.Checked)
     {
         UncheckOtherCheckboxes(sender);
         Label control = new Label(graphicsControl1, graphicsControl1.MainDialog, data);
         graphicsControl1.Create(control);
     }
     else
         CancelIfNoneChecked();
 }