Example #1
0
        public MainFrame()
        {
            //
            // Windows ���������֧���������
            //
            ratFont=new ItopVector.Struct.TextStyle("����",12,false,false,false);
            notifyFontChanged =true;
            ItopVector.SpecialCursors.LoadCursors();//���ع����Դ

            //����ͣ���ؼ�
            CreateDockControl();

            InitializeComponent();
            this.WindowState=FormWindowState.Maximized;
            this.dotNetBarManager1.Images=ItopVector.Resource.ResourceHelper.LoadBitmapStrip(base.GetType(),"ItopVectorDraw.ToolbarImages.bmp",new Size(16,16),new Point(0,0));
        }
Example #2
0
        private void tabStrip1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            frmDocument frm;

            if(e.OldTab!=null)
            {
                frm=e.OldTab.AttachedControl as frmDocument;
                if (frm!=null)
                {
                    frm.documentControl1.PropertyGrid=null;
                }
            }
            TabItem tab=e.NewTab;
            if (tab==null)
            {
                return;
            }
            frm =tab.AttachedControl as frmDocument;
            if (frm==null)return;
            documentControl1_ScaleChanged(frm.documentControl1,EventArgs.Empty);
            frm.documentControl1.PropertyGrid=this.propertyGrid;
            this.miniatureView.VectorControl = frm.documentControl1;
            this.TextStyle=frm.documentControl1.TextStyle;

            UpdateToolBottom(frm.documentControl1.Operation);
        }