public GFrame(InitialAction act) { #region Poderosa Constructors _initialAction = act; _windowMenuItemMap = new Hashtable(); _MRUMenuToParameter = new Hashtable(); _firstflag=true; // // Windows �t�H�[�� �f�U�C�i �T�|�[�g�ɕK�v�ł��B // SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.UserPaint|ControlStyles.DoubleBuffer, true); InitializeComponent(); this.Icon = GApp.Options.GuevaraMode? GIcons.GetOldGuevaraIcon() : GIcons.GetAppIcon(); InitMenuText(); //�V�X�e������G���R�[�f�B���O����ă��j���[��Z�b�g foreach(string e in EnumDescAttribute.For(typeof(EncodingType)).DescriptionCollection()) { GMenuItem m = new GMenuItem(); m.Text = e; m.Click += new EventHandler(this.OnChangeEncoding); _menuEncoding.MenuItems.Add(m); } this._tabBar = new TabBar(); _tabBar.Dock = DockStyle.Top; _tabBar.Height = 25; ApplyOptions(null, GApp.Options); ApplyHotKeys(); _gStatusBar = new GStatusBar(_statusBar); AdjustTitle(null); #endregion }
private void OnMouseEnterToButton(object sender, EventArgs args) { if (!_toolTipInitialized) { InitToolTip(); } GStatusBar sb = GApp.Frame.StatusBar; if (sender == _openShortcut) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._openShortcut")); } else if (sender == _newConnection) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._newConnection")); } else if (sender == _newSerialConnection) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._newSerialConnection")); } else if (sender == _newCygwinConnection) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._newCygwinConnection")); } else if (sender == _newSFUConnection) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._newSFUConnection")); } else if (sender == _saveShortcut) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._saveShortcut")); } else if (sender == _singleStyle) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._singleStyle")); } else if (sender == _divHorizontalStyle) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._divHorizontalStyle")); } else if (sender == _divVerticalStyle) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._divVerticalStyle")); } else if (sender == _divHorizontal3Style) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._divHorizontal3Style")); } else if (sender == _divVertical3Style) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._divVertical3Style")); } else if (sender == _newLineOption) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._newLineOption")); } else if (sender == _lineFeedRule) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._lineFeedRule")); } else if (sender == _encodingBox) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._encodingBox")); } else if (sender == _logSuspend) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._logSuspend")); } else if (sender == _commentLog) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._commentLog")); } else if (sender == _localEcho) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._localEcho")); } else if (sender == _serverInfo) { sb.SetStatusBarText(GApp.Strings.GetString("Caption.ToolBar._serverInfo")); } else { Debug.WriteLine("Unexpected toolbar object"); } }