示例#1
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();
        }