private void SGLEditorForm_Load( object sender, EventArgs e )
        {
            CommandBarsGlobalSettings commandBarsGlobalSettings = new CommandBarsGlobalSettings();
            commandBarsGlobalSettings.ResourceFile = "Demo.Mmose.Gui.Resource.dll";

            CreateRibbonBar();

            LoadIcons();

            axCommandBars.KeyBindings.Add( ResourceID.FCONTROL, System.Convert.ToInt32( 'O' ), ResourceID.ID_FILE_OPEN );

            axCommandBars.StatusBar.AddPane( 0 );
            axCommandBars.StatusBar.AddPane( ResourceID.ID_INDICATOR_CAPS );
            axCommandBars.StatusBar.AddPane( ResourceID.ID_INDICATOR_NUM );
            axCommandBars.StatusBar.AddPane( ResourceID.ID_INDICATOR_SCRL );
            axCommandBars.StatusBar.Visible = true;

            RibbonBar().EnableFrameTheme();

            axCommandBars.Options.KeyboardCuesShow = XTPKeyboardCuesShow.xtpKeyboardCuesShowWindowsDefault;

            foreach ( Control control in this.Controls )
            {
                if ( control is MdiClient )
                    axCommandBars.SetMDIClient( control.Handle.ToInt32() );
            }

            axCommandBars.EnableCustomization( true );
        }
Exemplo n.º 2
0
        private void SGLEditorForm_Load(object sender, EventArgs e)
        {
            CommandBarsGlobalSettings commandBarsGlobalSettings = new CommandBarsGlobalSettings();

            commandBarsGlobalSettings.ResourceFile = "Demo.Mmose.Gui.Resource.dll";

            CreateRibbonBar();

            LoadIcons();

            axCommandBars.KeyBindings.Add(ResourceID.FCONTROL, System.Convert.ToInt32('O'), ResourceID.ID_FILE_OPEN);

            axCommandBars.StatusBar.AddPane(0);
            axCommandBars.StatusBar.AddPane(ResourceID.ID_INDICATOR_CAPS);
            axCommandBars.StatusBar.AddPane(ResourceID.ID_INDICATOR_NUM);
            axCommandBars.StatusBar.AddPane(ResourceID.ID_INDICATOR_SCRL);
            axCommandBars.StatusBar.Visible = true;

            RibbonBar().EnableFrameTheme();

            axCommandBars.Options.KeyboardCuesShow = XTPKeyboardCuesShow.xtpKeyboardCuesShowWindowsDefault;

            foreach (Control control in this.Controls)
            {
                if (control is MdiClient)
                {
                    axCommandBars.SetMDIClient(control.Handle.ToInt32());
                }
            }

            axCommandBars.EnableCustomization(true);
        }
Exemplo n.º 3
0
        static void Main()
        {
            CommandBarsGlobalSettings commandBarsGlobalSettings = new CommandBarsGlobalSettings();

            commandBarsGlobalSettings.License = "CommandBars Control Copyright (c) 2003-2007 Codejock Software\r\nPRODUCT-ID: Codejock.CommandBars.ActiveX.v11.2\r\nVALIDATE-CODE: QQS-PNF-OJV-VBX";

            PropertyGridGlobalSettings propertyGridGlobalSettings = new PropertyGridGlobalSettings();

            propertyGridGlobalSettings.License = "Property Grid Control Copyright (c) 2003-2007 Codejock Software\r\nPRODUCT-ID: Codejock.PropertyGrid.ActiveX.v11.2\r\nVALIDATE-CODE: HVN-LFW-DIX-XRR";

            TaskPanelGlobalSettings taskPanelGlobalSettings = new TaskPanelGlobalSettings();

            taskPanelGlobalSettings.License = "TaskPanel Control Copyright (c) 2003-2007 Codejock Software\r\nPRODUCT-ID: Codejock.TaskPanel.ActiveX.v11.2\r\nVALIDATE-CODE: DJN-TXA-SGX-EFY";

            SuiteControlsGlobalSettings suiteControlsGlobalSettings = new SuiteControlsGlobalSettings();

            suiteControlsGlobalSettings.License = "Suite Controls Copyright (c) 2003-2007 Codejock Software\r\nPRODUCT-ID: Codejock.Controls.ActiveX.v11.2\r\nVALIDATE-CODE: NSR-VTA-EXQ-TPT";

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new SGLEditorForm());
        }