Пример #1
0
        //- ctor
        public FormDesignerForm(MainForm parent, StudioFormTypes form_type)
        {
            InitializeComponent();

            base.MainForm = parent;
            FormType      = form_type;
            pDesignerCore = new pF.pDesigner.pDesigner(this.MainForm.PropertyWindow);

            //- the control: (pDesigner)pDesignerCore
            IpDesignerCore       = this.pDesignerCore as IpDesigner;
            pDesignerCore.Parent = this.pnl4pDesigner;
        }
Пример #2
0
    //- ctor
    public pDesignerMainForm() {
        InitializeComponent();

        //- the control: (pDesigner)pDesignerCore 
        IpDesignerCore = this.pDesignerCore as IpDesigner;
        pDesignerCore.Parent = this.pnl4pDesigner;


        //- Add the toolboxItems to the future toolbox 
        //- the pointer
        ToolboxItem toolPointer = new System.Drawing.Design.ToolboxItem();
        toolPointer.DisplayName = "<Pointer>";
        toolPointer.Bitmap = new System.Drawing.Bitmap( 16, 16 );
        listBox1.Items.Add( toolPointer );
        //- the controls
        listBox1.Items.Add( new ToolboxItem( typeof( Button ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( ListView ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( TreeView ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( TextBox ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( Label ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( TabControl ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( OpenFileDialog ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( CheckBox ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( ComboBox ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( GroupBox ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( ImageList ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( Panel ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( ProgressBar ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( ToolBar ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( ToolTip ) ) );
        listBox1.Items.Add( new ToolboxItem( typeof( StatusBar ) ) );
        
        
        //- init the (pDesigner)pDesignerCore 
        IpDesignerCore.Toolbox = listBox1;
    }