From 1c7d5a580321e4aa75fb101e43ab478b347a80f2 Mon Sep 17 00:00:00 2001 From: David Sparer Date: Sat, 5 Jan 2019 08:20:50 -0600 Subject: [PATCH 1/2] fix scaling mode on options pages --- .../OptionsPages/AdvancedPage.Designer.cs | 8 ++++++-- .../OptionsPages/AppearancePage.Designer.cs | 8 ++++++-- .../OptionsPages/ConnectionsPage.Designer.cs | 10 ++++++++-- .../OptionsPages/CredentialsPage.Designer.cs | 4 ++-- .../NotificationsPage.Designer.cs | 20 +++++++++++++++++-- .../UI/Forms/OptionsPages/OptionsPage.cs | 2 ++ .../OptionsPages/SecurityPage.Designer.cs | 5 +++-- .../OptionsPages/SqlServerPage.Designer.cs | 6 ++++-- .../OptionsPages/StartupExitPage.Designer.cs | 8 ++++++-- .../OptionsPages/TabsPanelsPage.Designer.cs | 12 +++++++++-- .../Forms/OptionsPages/ThemePage.Designer.cs | 10 +++++----- .../OptionsPages/UpdatesPage.Designer.cs | 7 +++++-- 12 files changed, 75 insertions(+), 25 deletions(-) diff --git a/mRemoteV1/UI/Forms/OptionsPages/AdvancedPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/AdvancedPage.Designer.cs index bb837bc3b..9078921ec 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/AdvancedPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/AdvancedPage.Designer.cs @@ -51,6 +51,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkAutomaticallyGetSessionInfo._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkAutomaticallyGetSessionInfo.AutoSize = true; + this.chkAutomaticallyGetSessionInfo.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkAutomaticallyGetSessionInfo.Location = new System.Drawing.Point(3, 3); this.chkAutomaticallyGetSessionInfo.Name = "chkAutomaticallyGetSessionInfo"; this.chkAutomaticallyGetSessionInfo.Size = new System.Drawing.Size(220, 17); @@ -71,6 +72,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkAutomaticReconnect._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkAutomaticReconnect.AutoSize = true; + this.chkAutomaticReconnect.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkAutomaticReconnect.Location = new System.Drawing.Point(3, 26); this.chkAutomaticReconnect.Name = "chkAutomaticReconnect"; this.chkAutomaticReconnect.Size = new System.Drawing.Size(430, 17); @@ -100,6 +102,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkUseCustomPuttyPath._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkUseCustomPuttyPath.AutoSize = true; + this.chkUseCustomPuttyPath.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkUseCustomPuttyPath.Location = new System.Drawing.Point(3, 72); this.chkUseCustomPuttyPath.Name = "chkUseCustomPuttyPath"; this.chkUseCustomPuttyPath.Size = new System.Drawing.Size(146, 17); @@ -195,6 +198,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkLoadBalanceInfoUseUtf8._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkLoadBalanceInfoUseUtf8.AutoSize = true; + this.chkLoadBalanceInfoUseUtf8.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkLoadBalanceInfoUseUtf8.Location = new System.Drawing.Point(3, 49); this.chkLoadBalanceInfoUseUtf8.Name = "chkLoadBalanceInfoUseUtf8"; this.chkLoadBalanceInfoUseUtf8.Size = new System.Drawing.Size(317, 17); @@ -204,8 +208,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // AdvancedPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.chkLoadBalanceInfoUseUtf8); this.Controls.Add(this.chkAutomaticallyGetSessionInfo); this.Controls.Add(this.lblMaximumPuttyWaitTime); diff --git a/mRemoteV1/UI/Forms/OptionsPages/AppearancePage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/AppearancePage.Designer.cs index 155bb781b..05b35647c 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/AppearancePage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/AppearancePage.Designer.cs @@ -72,6 +72,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowFullConnectionsFilePathInTitle._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowFullConnectionsFilePathInTitle.AutoSize = true; + this.chkShowFullConnectionsFilePathInTitle.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowFullConnectionsFilePathInTitle.Location = new System.Drawing.Point(3, 127); this.chkShowFullConnectionsFilePathInTitle.Name = "chkShowFullConnectionsFilePathInTitle"; this.chkShowFullConnectionsFilePathInTitle.Size = new System.Drawing.Size(268, 17); @@ -83,6 +84,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowDescriptionTooltipsInTree._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowDescriptionTooltipsInTree.AutoSize = true; + this.chkShowDescriptionTooltipsInTree.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowDescriptionTooltipsInTree.Location = new System.Drawing.Point(3, 104); this.chkShowDescriptionTooltipsInTree.Name = "chkShowDescriptionTooltipsInTree"; this.chkShowDescriptionTooltipsInTree.Size = new System.Drawing.Size(256, 17); @@ -94,6 +96,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowSystemTrayIcon._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowSystemTrayIcon.AutoSize = true; + this.chkShowSystemTrayIcon.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowSystemTrayIcon.Location = new System.Drawing.Point(3, 173); this.chkShowSystemTrayIcon.Name = "chkShowSystemTrayIcon"; this.chkShowSystemTrayIcon.Size = new System.Drawing.Size(177, 17); @@ -105,6 +108,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkMinimizeToSystemTray._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkMinimizeToSystemTray.AutoSize = true; + this.chkMinimizeToSystemTray.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkMinimizeToSystemTray.Location = new System.Drawing.Point(3, 196); this.chkMinimizeToSystemTray.Name = "chkMinimizeToSystemTray"; this.chkMinimizeToSystemTray.Size = new System.Drawing.Size(146, 17); @@ -114,8 +118,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // AppearancePage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.lblLanguageRestartRequired); this.Controls.Add(this.cboLanguage); this.Controls.Add(this.lblLanguage); diff --git a/mRemoteV1/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs index 263a249c2..1317514e3 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/ConnectionsPage.Designer.cs @@ -121,6 +121,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSingleClickOnConnectionOpensIt._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSingleClickOnConnectionOpensIt.AutoSize = true; + this.chkSingleClickOnConnectionOpensIt.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSingleClickOnConnectionOpensIt.Location = new System.Drawing.Point(3, 3); this.chkSingleClickOnConnectionOpensIt.Name = "chkSingleClickOnConnectionOpensIt"; this.chkSingleClickOnConnectionOpensIt.Size = new System.Drawing.Size(206, 17); @@ -132,6 +133,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkHostnameLikeDisplayName._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkHostnameLikeDisplayName.AutoSize = true; + this.chkHostnameLikeDisplayName.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkHostnameLikeDisplayName.Location = new System.Drawing.Point(3, 49); this.chkHostnameLikeDisplayName.Name = "chkHostnameLikeDisplayName"; this.chkHostnameLikeDisplayName.Size = new System.Drawing.Size(355, 17); @@ -143,6 +145,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSingleClickOnOpenedConnectionSwitchesToIt._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSingleClickOnOpenedConnectionSwitchesToIt.AutoSize = true; + this.chkSingleClickOnOpenedConnectionSwitchesToIt.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSingleClickOnOpenedConnectionSwitchesToIt.Location = new System.Drawing.Point(3, 26); this.chkSingleClickOnOpenedConnectionSwitchesToIt.Name = "chkSingleClickOnOpenedConnectionSwitchesToIt"; this.chkSingleClickOnOpenedConnectionSwitchesToIt.Size = new System.Drawing.Size(490, 17); @@ -242,6 +245,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSaveConnectionsAfterEveryEdit._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSaveConnectionsAfterEveryEdit.AutoSize = true; + this.chkSaveConnectionsAfterEveryEdit.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSaveConnectionsAfterEveryEdit.Location = new System.Drawing.Point(3, 72); this.chkSaveConnectionsAfterEveryEdit.Name = "chkSaveConnectionsAfterEveryEdit"; this.chkSaveConnectionsAfterEveryEdit.Size = new System.Drawing.Size(194, 17); @@ -253,6 +257,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkUseFilterSearch._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkUseFilterSearch.AutoSize = true; + this.chkUseFilterSearch.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkUseFilterSearch.Location = new System.Drawing.Point(3, 95); this.chkUseFilterSearch.Name = "chkUseFilterSearch"; this.chkUseFilterSearch.Size = new System.Drawing.Size(230, 17); @@ -284,6 +289,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkPlaceSearchBarAboveConnectionTree._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkPlaceSearchBarAboveConnectionTree.AutoSize = true; + this.chkPlaceSearchBarAboveConnectionTree.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkPlaceSearchBarAboveConnectionTree.Location = new System.Drawing.Point(3, 118); this.chkPlaceSearchBarAboveConnectionTree.Name = "chkPlaceSearchBarAboveConnectionTree"; this.chkPlaceSearchBarAboveConnectionTree.Size = new System.Drawing.Size(226, 17); @@ -293,8 +299,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // ConnectionsPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.tableLayoutPanel2); this.Controls.Add(this.chkPlaceSearchBarAboveConnectionTree); this.Controls.Add(this.chkUseFilterSearch); diff --git a/mRemoteV1/UI/Forms/OptionsPages/CredentialsPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/CredentialsPage.Designer.cs index 183571666..67ca52029 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/CredentialsPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/CredentialsPage.Designer.cs @@ -161,8 +161,8 @@ // // CredentialsPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.pnlDefaultCredentials); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "CredentialsPage"; diff --git a/mRemoteV1/UI/Forms/OptionsPages/NotificationsPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/NotificationsPage.Designer.cs index 45d1dc74d..adc7a3fba 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/NotificationsPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/NotificationsPage.Designer.cs @@ -81,6 +81,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSwitchToMCInformation._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSwitchToMCInformation.AutoSize = true; + this.chkSwitchToMCInformation.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSwitchToMCInformation.Location = new System.Drawing.Point(195, 67); this.chkSwitchToMCInformation.Name = "chkSwitchToMCInformation"; this.chkSwitchToMCInformation.Size = new System.Drawing.Size(87, 17); @@ -92,6 +93,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSwitchToMCErrors._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSwitchToMCErrors.AutoSize = true; + this.chkSwitchToMCErrors.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSwitchToMCErrors.Location = new System.Drawing.Point(195, 113); this.chkSwitchToMCErrors.Name = "chkSwitchToMCErrors"; this.chkSwitchToMCErrors.Size = new System.Drawing.Size(51, 17); @@ -103,6 +105,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSwitchToMCWarnings._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSwitchToMCWarnings.AutoSize = true; + this.chkSwitchToMCWarnings.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSwitchToMCWarnings.Location = new System.Drawing.Point(195, 90); this.chkSwitchToMCWarnings.Name = "chkSwitchToMCWarnings"; this.chkSwitchToMCWarnings.Size = new System.Drawing.Size(71, 17); @@ -141,6 +144,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowErrorInMC._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowErrorInMC.AutoSize = true; + this.chkShowErrorInMC.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowErrorInMC.Location = new System.Drawing.Point(20, 113); this.chkShowErrorInMC.Name = "chkShowErrorInMC"; this.chkShowErrorInMC.Size = new System.Drawing.Size(51, 17); @@ -152,6 +156,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowWarningInMC._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowWarningInMC.AutoSize = true; + this.chkShowWarningInMC.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowWarningInMC.Location = new System.Drawing.Point(20, 90); this.chkShowWarningInMC.Name = "chkShowWarningInMC"; this.chkShowWarningInMC.Size = new System.Drawing.Size(71, 17); @@ -163,6 +168,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowInfoInMC._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowInfoInMC.AutoSize = true; + this.chkShowInfoInMC.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowInfoInMC.Location = new System.Drawing.Point(20, 67); this.chkShowInfoInMC.Name = "chkShowInfoInMC"; this.chkShowInfoInMC.Size = new System.Drawing.Size(87, 17); @@ -174,6 +180,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowDebugInMC._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowDebugInMC.AutoSize = true; + this.chkShowDebugInMC.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowDebugInMC.Location = new System.Drawing.Point(20, 44); this.chkShowDebugInMC.Name = "chkShowDebugInMC"; this.chkShowDebugInMC.Size = new System.Drawing.Size(61, 17); @@ -221,6 +228,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkLogDebugMsgs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkLogDebugMsgs.AutoSize = true; + this.chkLogDebugMsgs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkLogDebugMsgs.Location = new System.Drawing.Point(3, 3); this.chkLogDebugMsgs.Name = "chkLogDebugMsgs"; this.chkLogDebugMsgs.Size = new System.Drawing.Size(61, 17); @@ -232,6 +240,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkLogInfoMsgs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkLogInfoMsgs.AutoSize = true; + this.chkLogInfoMsgs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkLogInfoMsgs.Location = new System.Drawing.Point(149, 3); this.chkLogInfoMsgs.Name = "chkLogInfoMsgs"; this.chkLogInfoMsgs.Size = new System.Drawing.Size(87, 17); @@ -243,6 +252,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkLogWarningMsgs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkLogWarningMsgs.AutoSize = true; + this.chkLogWarningMsgs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkLogWarningMsgs.Location = new System.Drawing.Point(295, 3); this.chkLogWarningMsgs.Name = "chkLogWarningMsgs"; this.chkLogWarningMsgs.Size = new System.Drawing.Size(71, 17); @@ -254,6 +264,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkLogErrorMsgs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkLogErrorMsgs.AutoSize = true; + this.chkLogErrorMsgs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkLogErrorMsgs.Location = new System.Drawing.Point(441, 3); this.chkLogErrorMsgs.Name = "chkLogErrorMsgs"; this.chkLogErrorMsgs.Size = new System.Drawing.Size(51, 17); @@ -265,6 +276,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkLogToCurrentDir._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkLogToCurrentDir.AutoSize = true; + this.chkLogToCurrentDir.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkLogToCurrentDir.Location = new System.Drawing.Point(9, 18); this.chkLogToCurrentDir.Name = "chkLogToCurrentDir"; this.chkLogToCurrentDir.Size = new System.Drawing.Size(168, 17); @@ -367,6 +379,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkPopupDebug._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkPopupDebug.AutoSize = true; + this.chkPopupDebug.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkPopupDebug.Location = new System.Drawing.Point(3, 3); this.chkPopupDebug.Name = "chkPopupDebug"; this.chkPopupDebug.Size = new System.Drawing.Size(61, 17); @@ -378,6 +391,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkPopupError._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkPopupError.AutoSize = true; + this.chkPopupError.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkPopupError.Location = new System.Drawing.Point(441, 3); this.chkPopupError.Name = "chkPopupError"; this.chkPopupError.Size = new System.Drawing.Size(51, 17); @@ -389,6 +403,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkPopupInfo._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkPopupInfo.AutoSize = true; + this.chkPopupInfo.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkPopupInfo.Location = new System.Drawing.Point(149, 3); this.chkPopupInfo.Name = "chkPopupInfo"; this.chkPopupInfo.Size = new System.Drawing.Size(87, 17); @@ -400,6 +415,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkPopupWarning._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkPopupWarning.AutoSize = true; + this.chkPopupWarning.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkPopupWarning.Location = new System.Drawing.Point(295, 3); this.chkPopupWarning.Name = "chkPopupWarning"; this.chkPopupWarning.Size = new System.Drawing.Size(71, 17); @@ -418,8 +434,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // NotificationsPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.groupBoxPopups); this.Controls.Add(this.groupBoxLogging); this.Controls.Add(this.groupBoxNotifications); diff --git a/mRemoteV1/UI/Forms/OptionsPages/OptionsPage.cs b/mRemoteV1/UI/Forms/OptionsPages/OptionsPage.cs index dbbb1113a..bb5c7855f 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/OptionsPage.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/OptionsPage.cs @@ -71,6 +71,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // OptionsPage // + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "OptionsPage"; this.ResumeLayout(false); diff --git a/mRemoteV1/UI/Forms/OptionsPages/SecurityPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/SecurityPage.Designer.cs index 9e9e88aa5..86318aa40 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/SecurityPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/SecurityPage.Designer.cs @@ -44,6 +44,7 @@ // this.chkEncryptCompleteFile._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkEncryptCompleteFile.AutoSize = true; + this.chkEncryptCompleteFile.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkEncryptCompleteFile.Location = new System.Drawing.Point(3, 3); this.chkEncryptCompleteFile.Name = "chkEncryptCompleteFile"; this.chkEncryptCompleteFile.Size = new System.Drawing.Size(194, 17); @@ -144,8 +145,8 @@ // // SecurityPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.chkEncryptCompleteFile); this.Controls.Add(this.groupAdvancedSecurityOptions); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); diff --git a/mRemoteV1/UI/Forms/OptionsPages/SqlServerPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/SqlServerPage.Designer.cs index e91509ae3..e2824d43c 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/SqlServerPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/SqlServerPage.Designer.cs @@ -84,6 +84,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkUseSQLServer._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkUseSQLServer.AutoSize = true; + this.chkUseSQLServer.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkUseSQLServer.Location = new System.Drawing.Point(3, 76); this.chkUseSQLServer.Name = "chkUseSQLServer"; this.chkUseSQLServer.Size = new System.Drawing.Size(244, 17); @@ -199,6 +200,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSQLReadOnly._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSQLReadOnly.AutoSize = true; + this.chkSQLReadOnly.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSQLReadOnly.Location = new System.Drawing.Point(140, 208); this.chkSQLReadOnly.Name = "chkSQLReadOnly"; this.chkSQLReadOnly.Size = new System.Drawing.Size(15, 14); @@ -217,8 +219,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // SqlServerPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.lblSQLReadOnly); this.Controls.Add(this.chkSQLReadOnly); this.Controls.Add(this.lblTestConnectionResults); diff --git a/mRemoteV1/UI/Forms/OptionsPages/StartupExitPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/StartupExitPage.Designer.cs index f0ad70b56..a30f1f80a 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/StartupExitPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/StartupExitPage.Designer.cs @@ -41,6 +41,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkReconnectOnStart._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkReconnectOnStart.AutoSize = true; + this.chkReconnectOnStart.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkReconnectOnStart.Location = new System.Drawing.Point(3, 26); this.chkReconnectOnStart.Name = "chkReconnectOnStart"; this.chkReconnectOnStart.Size = new System.Drawing.Size(295, 17); @@ -52,6 +53,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSaveConsOnExit._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSaveConsOnExit.AutoSize = true; + this.chkSaveConsOnExit.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSaveConsOnExit.Location = new System.Drawing.Point(3, 2); this.chkSaveConsOnExit.Name = "chkSaveConsOnExit"; this.chkSaveConsOnExit.Size = new System.Drawing.Size(153, 17); @@ -63,6 +65,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkSingleInstance._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkSingleInstance.AutoSize = true; + this.chkSingleInstance.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkSingleInstance.Location = new System.Drawing.Point(3, 50); this.chkSingleInstance.Name = "chkSingleInstance"; this.chkSingleInstance.Size = new System.Drawing.Size(404, 17); @@ -74,6 +77,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkProperInstallationOfComponentsAtStartup._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkProperInstallationOfComponentsAtStartup.AutoSize = true; + this.chkProperInstallationOfComponentsAtStartup.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkProperInstallationOfComponentsAtStartup.Location = new System.Drawing.Point(3, 74); this.chkProperInstallationOfComponentsAtStartup.Name = "chkProperInstallationOfComponentsAtStartup"; this.chkProperInstallationOfComponentsAtStartup.Size = new System.Drawing.Size(290, 17); @@ -83,8 +87,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // StartupExitPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.chkReconnectOnStart); this.Controls.Add(this.chkSaveConsOnExit); this.Controls.Add(this.chkSingleInstance); diff --git a/mRemoteV1/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs index 582ebe570..f90a353db 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/TabsPanelsPage.Designer.cs @@ -47,6 +47,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkAlwaysShowPanelTabs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkAlwaysShowPanelTabs.AutoSize = true; + this.chkAlwaysShowPanelTabs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkAlwaysShowPanelTabs.Location = new System.Drawing.Point(3, 3); this.chkAlwaysShowPanelTabs.Name = "chkAlwaysShowPanelTabs"; this.chkAlwaysShowPanelTabs.Size = new System.Drawing.Size(149, 17); @@ -58,6 +59,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkIdentifyQuickConnectTabs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkIdentifyQuickConnectTabs.AutoSize = true; + this.chkIdentifyQuickConnectTabs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkIdentifyQuickConnectTabs.Location = new System.Drawing.Point(3, 95); this.chkIdentifyQuickConnectTabs.Name = "chkIdentifyQuickConnectTabs"; this.chkIdentifyQuickConnectTabs.Size = new System.Drawing.Size(315, 17); @@ -69,6 +71,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkOpenNewTabRightOfSelected._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkOpenNewTabRightOfSelected.AutoSize = true; + this.chkOpenNewTabRightOfSelected.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkOpenNewTabRightOfSelected.Location = new System.Drawing.Point(3, 26); this.chkOpenNewTabRightOfSelected.Name = "chkOpenNewTabRightOfSelected"; this.chkOpenNewTabRightOfSelected.Size = new System.Drawing.Size(309, 17); @@ -80,6 +83,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkAlwaysShowPanelSelectionDlg._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkAlwaysShowPanelSelectionDlg.AutoSize = true; + this.chkAlwaysShowPanelSelectionDlg.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkAlwaysShowPanelSelectionDlg.Location = new System.Drawing.Point(3, 141); this.chkAlwaysShowPanelSelectionDlg.Name = "chkAlwaysShowPanelSelectionDlg"; this.chkAlwaysShowPanelSelectionDlg.Size = new System.Drawing.Size(347, 17); @@ -91,6 +95,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowLogonInfoOnTabs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowLogonInfoOnTabs.AutoSize = true; + this.chkShowLogonInfoOnTabs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowLogonInfoOnTabs.Location = new System.Drawing.Point(3, 49); this.chkShowLogonInfoOnTabs.Name = "chkShowLogonInfoOnTabs"; this.chkShowLogonInfoOnTabs.Size = new System.Drawing.Size(226, 17); @@ -102,6 +107,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkDoubleClickClosesTab._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkDoubleClickClosesTab.AutoSize = true; + this.chkDoubleClickClosesTab.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkDoubleClickClosesTab.Location = new System.Drawing.Point(3, 118); this.chkDoubleClickClosesTab.Name = "chkDoubleClickClosesTab"; this.chkDoubleClickClosesTab.Size = new System.Drawing.Size(170, 17); @@ -113,6 +119,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkShowProtocolOnTabs._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkShowProtocolOnTabs.AutoSize = true; + this.chkShowProtocolOnTabs.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowProtocolOnTabs.Location = new System.Drawing.Point(3, 72); this.chkShowProtocolOnTabs.Name = "chkShowProtocolOnTabs"; this.chkShowProtocolOnTabs.Size = new System.Drawing.Size(180, 17); @@ -124,6 +131,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkCreateEmptyPanelOnStart._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkCreateEmptyPanelOnStart.AutoSize = true; + this.chkCreateEmptyPanelOnStart.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkCreateEmptyPanelOnStart.Location = new System.Drawing.Point(3, 164); this.chkCreateEmptyPanelOnStart.Name = "chkCreateEmptyPanelOnStart"; this.chkCreateEmptyPanelOnStart.Size = new System.Drawing.Size(271, 17); @@ -150,8 +158,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // TabsPanelsPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.lblPanelName); this.Controls.Add(this.txtBoxPanelName); this.Controls.Add(this.chkCreateEmptyPanelOnStart); diff --git a/mRemoteV1/UI/Forms/OptionsPages/ThemePage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/ThemePage.Designer.cs index 4c969da84..e96de049c 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/ThemePage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/ThemePage.Designer.cs @@ -92,7 +92,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages this.themeEnableChk.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.themeEnableChk.Location = new System.Drawing.Point(3, 3); this.themeEnableChk.Name = "themeEnableChk"; - this.themeEnableChk.Size = new System.Drawing.Size(140, 22); + this.themeEnableChk.Size = new System.Drawing.Size(141, 22); this.themeEnableChk.TabIndex = 5; this.themeEnableChk.Text = "Enable Themes"; this.themeEnableChk.UseVisualStyleBackColor = true; @@ -144,9 +144,9 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.labelRestart.AutoSize = true; this.labelRestart.Dock = System.Windows.Forms.DockStyle.Fill; - this.labelRestart.Location = new System.Drawing.Point(149, 0); + this.labelRestart.Location = new System.Drawing.Point(150, 0); this.labelRestart.Name = "labelRestart"; - this.labelRestart.Size = new System.Drawing.Size(452, 28); + this.labelRestart.Size = new System.Drawing.Size(451, 28); this.labelRestart.TabIndex = 4; this.labelRestart.Text = "Warning: Restart is required to disable the themes or to completely apply a new o" + "ne"; @@ -203,8 +203,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // ThemePage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.Controls.Add(this.tlpMain); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); diff --git a/mRemoteV1/UI/Forms/OptionsPages/UpdatesPage.Designer.cs b/mRemoteV1/UI/Forms/OptionsPages/UpdatesPage.Designer.cs index 35fd5e2fb..43e41782d 100644 --- a/mRemoteV1/UI/Forms/OptionsPages/UpdatesPage.Designer.cs +++ b/mRemoteV1/UI/Forms/OptionsPages/UpdatesPage.Designer.cs @@ -94,6 +94,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkCheckForUpdatesOnStartup._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkCheckForUpdatesOnStartup.AutoSize = true; + this.chkCheckForUpdatesOnStartup.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkCheckForUpdatesOnStartup.Location = new System.Drawing.Point(3, 4); this.chkCheckForUpdatesOnStartup.Name = "chkCheckForUpdatesOnStartup"; this.chkCheckForUpdatesOnStartup.Size = new System.Drawing.Size(120, 17); @@ -223,6 +224,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages // this.chkUseProxyForAutomaticUpdates._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkUseProxyForAutomaticUpdates.AutoSize = true; + this.chkUseProxyForAutomaticUpdates.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkUseProxyForAutomaticUpdates.Location = new System.Drawing.Point(6, 0); this.chkUseProxyForAutomaticUpdates.Name = "chkUseProxyForAutomaticUpdates"; this.chkUseProxyForAutomaticUpdates.Size = new System.Drawing.Size(176, 17); @@ -236,6 +238,7 @@ namespace mRemoteNG.UI.Forms.OptionsPages this.chkUseProxyAuthentication._mice = mRemoteNG.UI.Controls.Base.NGCheckBox.MouseState.HOVER; this.chkUseProxyAuthentication.AutoSize = true; this.chkUseProxyAuthentication.Enabled = false; + this.chkUseProxyAuthentication.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkUseProxyAuthentication.Location = new System.Drawing.Point(27, 70); this.chkUseProxyAuthentication.Name = "chkUseProxyAuthentication"; this.chkUseProxyAuthentication.Size = new System.Drawing.Size(234, 17); @@ -314,8 +317,8 @@ namespace mRemoteNG.UI.Forms.OptionsPages // // UpdatesPage // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.pnlReleaseChannel); this.Controls.Add(this.lblUpdatesExplanation); this.Controls.Add(this.pnlUpdateCheck); From ea5b0362df601a6989e214d76d7f184de1feee83 Mon Sep 17 00:00:00 2001 From: Sean Kaim Date: Sat, 5 Jan 2019 14:34:02 -0500 Subject: [PATCH 2/2] more DPI scaling fixes + frmChoosePnl fixes frmChoosePanel button layout was off a bit. Exception when clicking "new" when no panels exist. --- .../Controls/SecureTextBoxTestForm.Designer.cs | 4 ++-- mRemoteNGTests/UI/Controls/TestForm.Designer.cs | 4 ++-- .../TextBoxExtensionsTestForm.Designer.cs | 4 ++-- .../Connection/InterfaceControl.Designer.cs | 1 - mRemoteV1/Tools/ReconnectGroup.Designer.cs | 4 ++-- mRemoteV1/UI/Controls/Base/NGComboBox.cs | 16 +++++++++++----- .../CredentialRecordListView.Designer.cs | 4 ++-- .../CredentialRepositoryListView.Designer.cs | 4 ++-- .../NewPasswordWithVerification.Designer.cs | 4 ++-- mRemoteV1/UI/Forms/frmChoosePanel.Designer.cs | 11 +++++------ 10 files changed, 30 insertions(+), 26 deletions(-) diff --git a/mRemoteNGTests/UI/Controls/SecureTextBoxTestForm.Designer.cs b/mRemoteNGTests/UI/Controls/SecureTextBoxTestForm.Designer.cs index abe3ec476..7e61eac6e 100644 --- a/mRemoteNGTests/UI/Controls/SecureTextBoxTestForm.Designer.cs +++ b/mRemoteNGTests/UI/Controls/SecureTextBoxTestForm.Designer.cs @@ -43,8 +43,8 @@ namespace mRemoteNGTests.UI.Controls // // SecureTextBoxTestForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(256, 45); this.Controls.Add(this.secureTextBox1); this.Name = "SecureTextBoxTestForm"; diff --git a/mRemoteNGTests/UI/Controls/TestForm.Designer.cs b/mRemoteNGTests/UI/Controls/TestForm.Designer.cs index 3a5a7b7a8..f4341e91b 100644 --- a/mRemoteNGTests/UI/Controls/TestForm.Designer.cs +++ b/mRemoteNGTests/UI/Controls/TestForm.Designer.cs @@ -32,8 +32,8 @@ // // TestForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(284, 262); this.Name = "TestForm"; this.Text = "TestForm"; diff --git a/mRemoteNGTests/UI/Controls/TextBoxExtensionsTestForm.Designer.cs b/mRemoteNGTests/UI/Controls/TextBoxExtensionsTestForm.Designer.cs index 346b31bf3..f97a3dfdf 100644 --- a/mRemoteNGTests/UI/Controls/TextBoxExtensionsTestForm.Designer.cs +++ b/mRemoteNGTests/UI/Controls/TextBoxExtensionsTestForm.Designer.cs @@ -40,8 +40,8 @@ // // TextBoxExtensionsTestForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(220, 48); this.Controls.Add(this.textBox1); this.Name = "TextBoxExtensionsTestForm"; diff --git a/mRemoteV1/Connection/InterfaceControl.Designer.cs b/mRemoteV1/Connection/InterfaceControl.Designer.cs index f15e9a7d7..440fdce42 100644 --- a/mRemoteV1/Connection/InterfaceControl.Designer.cs +++ b/mRemoteV1/Connection/InterfaceControl.Designer.cs @@ -29,7 +29,6 @@ namespace mRemoteNG.Connection private void InitializeComponent() { components = new System.ComponentModel.Container(); - //Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font } } } diff --git a/mRemoteV1/Tools/ReconnectGroup.Designer.cs b/mRemoteV1/Tools/ReconnectGroup.Designer.cs index 3902cd378..4bbe7d77a 100644 --- a/mRemoteV1/Tools/ReconnectGroup.Designer.cs +++ b/mRemoteV1/Tools/ReconnectGroup.Designer.cs @@ -111,8 +111,8 @@ namespace mRemoteNG.Tools // // ReconnectGroup // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.grpAutomaticReconnect); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); diff --git a/mRemoteV1/UI/Controls/Base/NGComboBox.cs b/mRemoteV1/UI/Controls/Base/NGComboBox.cs index 5a9f69037..43ff476e8 100644 --- a/mRemoteV1/UI/Controls/Base/NGComboBox.cs +++ b/mRemoteV1/UI/Controls/Base/NGComboBox.cs @@ -73,15 +73,21 @@ namespace mRemoteNG.UI.Controls.Base else e.Graphics.FillRectangle(new SolidBrush(_themeManager.ActiveTheme.ExtendedPalette.getColor("ComboBox_Background")), e.Bounds); - if(string.IsNullOrEmpty(DisplayMember)) - e.Graphics.DrawString(Items[index].ToString(), e.Font, itemBrush, e.Bounds, StringFormat.GenericDefault); - else + if (Items.Count > 0) { - if (Items[index].GetType().GetProperty(DisplayMember) != null) + if (string.IsNullOrEmpty(DisplayMember)) + e.Graphics.DrawString(Items[index].ToString(), e.Font, itemBrush, e.Bounds, StringFormat.GenericDefault); + else { - e.Graphics.DrawString(Items[index].GetType().GetProperty(DisplayMember)?.GetValue(Items[index],null).ToString(), e.Font, itemBrush, e.Bounds, StringFormat.GenericDefault); + if (Items[index].GetType().GetProperty(DisplayMember) != null) + { + e.Graphics.DrawString( + Items[index].GetType().GetProperty(DisplayMember)?.GetValue(Items[index], null).ToString(), + e.Font, itemBrush, e.Bounds, StringFormat.GenericDefault); + } } } + e.DrawFocusRectangle(); } diff --git a/mRemoteV1/UI/Controls/CredentialRecordListView.Designer.cs b/mRemoteV1/UI/Controls/CredentialRecordListView.Designer.cs index cc002ab45..af55e86e3 100644 --- a/mRemoteV1/UI/Controls/CredentialRecordListView.Designer.cs +++ b/mRemoteV1/UI/Controls/CredentialRecordListView.Designer.cs @@ -105,8 +105,8 @@ // // CredentialRecordListView // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.objectListView1); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "CredentialRecordListView"; diff --git a/mRemoteV1/UI/Controls/CredentialRepositoryListView.Designer.cs b/mRemoteV1/UI/Controls/CredentialRepositoryListView.Designer.cs index 5195dfdbf..c9312d156 100644 --- a/mRemoteV1/UI/Controls/CredentialRepositoryListView.Designer.cs +++ b/mRemoteV1/UI/Controls/CredentialRepositoryListView.Designer.cs @@ -87,8 +87,8 @@ // // CredentialRepositoryListView // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.objectListView1); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "CredentialRepositoryListView"; diff --git a/mRemoteV1/UI/Controls/NewPasswordWithVerification.Designer.cs b/mRemoteV1/UI/Controls/NewPasswordWithVerification.Designer.cs index fcf158b40..236631756 100644 --- a/mRemoteV1/UI/Controls/NewPasswordWithVerification.Designer.cs +++ b/mRemoteV1/UI/Controls/NewPasswordWithVerification.Designer.cs @@ -95,8 +95,8 @@ // // NewPasswordWithVerification // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.Controls.Add(this.imgError); this.Controls.Add(this.labelPasswordsDontMatch); this.Controls.Add(this.labelSecondPasswordBox); diff --git a/mRemoteV1/UI/Forms/frmChoosePanel.Designer.cs b/mRemoteV1/UI/Forms/frmChoosePanel.Designer.cs index c7a077472..0665428f6 100644 --- a/mRemoteV1/UI/Forms/frmChoosePanel.Designer.cs +++ b/mRemoteV1/UI/Forms/frmChoosePanel.Designer.cs @@ -50,7 +50,7 @@ namespace mRemoteNG.UI.Forms this.btnOK._mice = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER; this.btnOK.Location = new System.Drawing.Point(167, 72); this.btnOK.Name = "btnOK"; - this.btnOK.Size = new System.Drawing.Size(69, 23); + this.btnOK.Size = new System.Drawing.Size(75, 24); this.btnOK.TabIndex = 20; this.btnOK.Text = global::mRemoteNG.Language.strButtonOK; this.btnOK.UseVisualStyleBackColor = true; @@ -70,20 +70,19 @@ namespace mRemoteNG.UI.Forms this.btnNew._mice = mRemoteNG.UI.Controls.Base.NGButton.MouseState.HOVER; this.btnNew.Image = global::mRemoteNG.Resources.Panel_Add; this.btnNew.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnNew.Location = new System.Drawing.Point(101, 70); + this.btnNew.Location = new System.Drawing.Point(86, 72); this.btnNew.Name = "btnNew"; - this.btnNew.Size = new System.Drawing.Size(60, 27); + this.btnNew.Size = new System.Drawing.Size(75, 24); this.btnNew.TabIndex = 40; this.btnNew.Text = global::mRemoteNG.Language.strButtonNew; - this.btnNew.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.btnNew.UseVisualStyleBackColor = true; this.btnNew.Click += new System.EventHandler(this.btnNew_Click); // // FrmChoosePanel // this.AcceptButton = this.btnOK; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(245, 107); this.Controls.Add(this.lblDescription); this.Controls.Add(this.btnNew);