// // Overrides protected override void OnLoad(EventArgs e) { base.OnLoad(e); // Declare hover-region for controls in upper-right corner (upper-left if right // handed). We do this here, not in the constructor, so our layout changes // (resize/maximized) will have had a chance to kick in. hover = new HoverRegion(this, Config.PinHoverPanel); menuttip = new ToolTip(); hover.InitializeControls(menuttip); hover.EnablePerItemEditCommands(false); this.Controls.AddRange(hover.Controls); // Subscribe to logical application-events, exposed from hover-bar. hover.FileNewClicked += new EventHandler(hover_FileNewClicked); hover.FileOpenClicked += new EventHandler(hover_FileOpenClicked); hover.FileSaveClicked += new EventHandler(hover_FileSaveClicked); hover.FileSaveAsClicked += new EventHandler(hover_FileSaveAsClicked); hover.FileHelpClicked += new EventHandler(hover_FileHelpClicked); hover.FileAboutClicked += new EventHandler(hover_FileAboutClicked); hover.FileExitClicked += new EventHandler(hover_FileExitClicked); hover.EditCloneClicked += new EventHandler(hover_EditCloneClicked); hover.EditDeleteClicked += new EventHandler(hover_EditDeleteClicked); hover.EditStraightenClicked += new EventHandler(hover_EditStraightenClicked); hover.EditPropertiesClicked += new EventHandler(hover_EditPropertiesClicked); hover.PenDrawClicked += new EventHandler(hover_PenDrawClicked); hover.PenEraseClicked += new EventHandler(hover_PenEraseClicked); hover.PenLassoClicked += new EventHandler(hover_PenLassoClicked); hover.AnimateClicked += new EventHandler(hover_AnimateClicked); hover.MinimizeClicked += new EventHandler(hover_MinimizeClicked); // Respond to portrait/landscape orientation changes. Microsoft.Win32.SystemEvents.DisplaySettingsChanged += new EventHandler(SystemEvents_DisplaySettingsChanged); // Show controls initially, for a few seconds, as a hint to the user. hover.DisplayInitial(); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); // Declare hover-region for controls in upper-right corner (upper-left if right // handed). We do this here, not in the constructor, so our layout changes // (resize/maximized) will have had a chance to kick in. hover = new HoverRegion(this,Config.PinHoverPanel); menuttip = new ToolTip(); hover.InitializeControls(menuttip); hover.EnablePerItemEditCommands(false); this.Controls.AddRange(hover.Controls); // Subscribe to logical application-events, exposed from hover-bar. hover.FileNewClicked += new EventHandler(hover_FileNewClicked); hover.FileOpenClicked += new EventHandler(hover_FileOpenClicked); hover.FileSaveClicked += new EventHandler(hover_FileSaveClicked); hover.FileSaveAsClicked += new EventHandler(hover_FileSaveAsClicked); // Colaboração hover.FileCollabClicked += new EventHandler(hover_CollabClicked); hover.FileHelpClicked += new EventHandler(hover_FileHelpClicked); hover.FileAboutClicked += new EventHandler(hover_FileAboutClicked); hover.FileExitClicked += new EventHandler(hover_FileExitClicked); hover.EditCloneClicked += new EventHandler(hover_EditCloneClicked); hover.EditDeleteClicked += new EventHandler(hover_EditDeleteClicked); hover.EditStraightenClicked += new EventHandler(hover_EditStraightenClicked); hover.EditPropertiesClicked += new EventHandler(hover_EditPropertiesClicked); hover.PenDrawClicked += new EventHandler(hover_PenDrawClicked); hover.PenEraseClicked += new EventHandler(hover_PenEraseClicked); hover.PenLassoClicked += new EventHandler(hover_PenLassoClicked); hover.AnimateClicked += new EventHandler(hover_AnimateClicked); hover.PauseClicked += new EventHandler(hover_PauseClicked); hover.MinimizeClicked += new EventHandler(hover_MinimizeClicked); // Respond to portrait/landscape orientation changes. Microsoft.Win32.SystemEvents.DisplaySettingsChanged += new EventHandler(SystemEvents_DisplaySettingsChanged); // Show controls initially, for a few seconds, as a hint to the user. hover.DisplayInitial(); hover.getPauseTag().Visible = false; }