//

        public SettingsCell_Properties()
        {
            InitializeComponent();

            toolStripButtonEvents.Image     = EditorResourcesCache.Events;
            toolStripButtonProperties.Image = EditorResourcesCache.Properties;

            toolStripButtonProperties.Text = EditorLocalization.Translate("SettingsWindow", toolStripButtonProperties.Text);
            toolStripButtonEvents.Text     = EditorLocalization.Translate("SettingsWindow", toolStripButtonEvents.Text);

            toolStrip1.Renderer = EditorThemeUtility.GetToolbarToolStripRenderer();
        }
Exemplo n.º 2
0
        public HCItemProjectRibbonAndToolbarActionsForm()
        {
            InitializeComponent();

            if (WinFormsUtility.IsDesignerHosted(this))
            {
                return;
            }

            toolStrip1.Renderer = EditorThemeUtility.GetToolbarToolStripRenderer();

            //double distance = 22.0 * EditorAPI.DPIScale;
            //kryptonSplitContainer2.Panel1MinSize = (int)distance;
            //kryptonSplitContainer2.SplitterDistance = (int)distance;
        }
Exemplo n.º 3
0
        public MessageLogWindow()
        {
            InitializeComponent();

            //kryptonRichTextBox1
            {
                kryptonRichTextBox1 = EditorAssemblyInterface.Instance.CreateTextEditorControl();
                var control = (Control)this.kryptonRichTextBox1;

                this.kryptonSplitContainer1.Panel2.Controls.Add(control);
                control.Dock     = System.Windows.Forms.DockStyle.Fill;
                control.Location = new System.Drawing.Point(0, 0);
                control.Name     = "kryptonRichTextBox1";
                this.kryptonRichTextBox1.EditorReadOnly = true;
                control.Size = new System.Drawing.Size(363, 165);
                //!!!!
                //this.kryptonRichTextBox1.StateCommon.Content.Font = new System.Drawing.Font( "Courier New", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( (byte)( 204 ) ) );
                control.TabIndex = 2;
                this.kryptonRichTextBox1.EditorText     = "";
                this.kryptonRichTextBox1.EditorWordWrap = true;                //false;

                kryptonRichTextBox1.Border = true;
            }

            toolStripButtonClear.Image   = EditorResourcesCache.Delete;
            toolStripButtonOptions.Image = EditorResourcesCache.Options;

            Log.Handlers.InfoHandler += Handlers_InfoHandler;
            //Log.Handlers.InvisibleInfoHandler += Handlers_InvisibleInfoHandler;
            Log.Handlers.WarningHandler += Handlers_WarningHandler;
            Log.Handlers.ErrorHandler   += Handlers_ErrorHandler;

            //configure list
            contentBrowser1.SetData(new ContentBrowser.Item[0], false);
            contentBrowser1.AddImageKey("Info", Properties.Resources.Info_16, Properties.Resources.Info_32);
            contentBrowser1.AddImageKey("Warning", Properties.Resources.Warning_16, Properties.Resources.Warning_32);
            contentBrowser1.AddImageKey("Error", Properties.Resources.Error_16, Properties.Resources.Error_32);

            Config_Load();
            EngineConfig.SaveEvent += Config_SaveEvent;

            WindowTitle = EditorLocalization.Translate("Windows", WindowTitle);
            toolStripButtonOptions.Text = EditorLocalization.Translate("MessageLogWindow", toolStripButtonOptions.Text);
            toolStripButtonClear.Text   = EditorLocalization.Translate("MessageLogWindow", toolStripButtonClear.Text);

            toolStrip1.Renderer = EditorThemeUtility.GetToolbarToolStripRenderer();
        }
Exemplo n.º 4
0
        //

        public OutputWindow()
        {
            InitializeComponent();

            {
                kryptonRichTextBox1 = EditorAssemblyInterface.Instance.CreateTextEditorControl();
                var control = (Control)this.kryptonRichTextBox1;

                this.Controls.Add(control);
                //control.Dock = System.Windows.Forms.DockStyle.Fill;
                //control.Location = new System.Drawing.Point( 0, 27 );
                //control.Location = new System.Drawing.Point( 0, 25 );
                control.Name = "kryptonRichTextBox1";
                this.kryptonRichTextBox1.EditorReadOnly = true;
                //control.Size = new System.Drawing.Size( 713, 165 );
                //!!!!
                //this.kryptonRichTextBox1.StateCommon.Content.Font = new System.Drawing.Font( "Courier New", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( (byte)( 204 ) ) );
                control.TabIndex = 2;
                this.kryptonRichTextBox1.EditorText     = "";
                this.kryptonRichTextBox1.EditorWordWrap = true;                //false;

                kryptonRichTextBox1.Border = true;

                UpdateTextEditorBounds();
            }

            toolStripButtonOptions.Image = EditorResourcesCache.Options;
            toolStripButtonClear.Image   = EditorResourcesCache.Delete;

            //Log.Handlers.InfoHandler += Handlers_InfoHandler;
            ////Log.Handlers.InvisibleInfoHandler += Handlers_InvisibleInfoHandler;
            //Log.Handlers.WarningHandler += Handlers_WarningHandler;
            //Log.Handlers.ErrorHandler += Handlers_ErrorHandler;

            WindowTitle = EditorLocalization.Translate("Windows", WindowTitle);
            toolStripButtonOptions.Text = EditorLocalization.Translate("OutputWindow", toolStripButtonOptions.Text);
            toolStripButtonClear.Text   = EditorLocalization.Translate("OutputWindow", toolStripButtonClear.Text);

            toolStrip1.Renderer = EditorThemeUtility.GetToolbarToolStripRenderer();
        }