edgar Posted September 17, 2016 Share Posted September 17, 2016 Note that the widgets in the dialog overlap making some Illegible and others inaccessible. The previous version (4.0.10? - I might have missed 4.0.11 if it was only out for a couple of days) did not exhibit this behavior. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 18, 2016 Share Posted September 18, 2016 You have the Menu font size increased from within Windows' control panel? For now, if you need larger text for readability, I recommend increasing the "DPI" settings instead. That will increase the size of *all* elements, not just text. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
edgar Posted September 18, 2016 Author Share Posted September 18, 2016 2 hours ago, Rick Brewster said: You have the Menu font size increased from within Windows' control panel? For now, if you need larger text for readability, I recommend increasing the "DPI" settings instead. That will increase the size of *all* elements, not just text. Exactly - I have changed the menu font (family and size) for readability. Changing the DPI messes up many other programs and negates the benefits of my 65" 1920X1080 monitors. You said "For now" - does that mean you hope to make your dialogs font sensitive? I have reverted to 4.0.10 (which seems to ignore the OS specified fonts). BTW, I am a programmer and technical document editor/author; years ago I worked on Microsoft's Accessibility Team where (among other things) I worked on application font sensitivity - especially where it impacted folks with low visual acuity. I have had a couple of patches applied on the wxWidgets code and done extensive work on the code and technical documentation of Audacity. I use paint.net a lot (probably average 2-3 hours per day) and would really enjoy being able to help you with your code and, to a lesser extent, documentation. Quote Link to comment Share on other sites More sharing options...
midora Posted September 18, 2016 Share Posted September 18, 2016 I'm using a screen scaling of 250% on a highdpi screen 280dpi (windows 8.1) and a lot of labels are shifted a certain amount in Resize and Canvas Size Quote Link to comment Share on other sites More sharing options...
edgar Posted September 22, 2016 Author Share Posted September 22, 2016 Subscribing to topic… Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted December 5, 2016 Share Posted December 5, 2016 This should be completely fixed in the upcoming 4.0.13 update Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
edgar Posted September 7 Author Share Posted September 7 Bump Things have gotten a lot better! I think the only dialog left which is really suffering is the “Colors” Dialog. 1 This is not a bug, but more of a feature request… When the “Text Tool” Is Selected, There Is a Font selection ComboBox – it is very narrow; traditionally this box would be wide enough to display the widest font family name. The drop down width is better, but it is still failing to show the information for fonts with long family names. 2 & 3 public static void SetComboBoxSize(out SizeF pSize, ComboBox pComboBox, string pExample = "") { SizeF stringSize = new SizeF(0, 0), paddingSize = new SizeF(0, 0); pSize = stringSize; Font font = pComboBox.Font; using (Graphics graphics = pComboBox.CreateGraphics()) { paddingSize = graphics.MeasureString("0yÑ", font); paddingSize.Height += (font.SizeInPoints / 2.7f); if (!string.IsNullOrEmpty(pExample)) //Prefer example stringSize = graphics.MeasureString(pExample, font); else if (pComboBox.Items.Count > 0) { foreach (string phrase in pComboBox.Items) { if (!string.IsNullOrEmpty(phrase)) { SizeF temporaryStringSize = new SizeF(0, 0); temporaryStringSize = graphics.MeasureString(phrase, font); if (temporaryStringSize.Width > stringSize.Width) stringSize.Width = temporaryStringSize.Width; } } } else//Worst-case stringSize = graphics.MeasureString("The quick brown fox", font); } pSize.Width = stringSize.Width + paddingSize.Width + SystemInformation.VerticalScrollBarWidth; pSize.Height = stringSize.Height + paddingSize.Height; } public static void SetComboBoxDropDownWidth(ComboBox pComboBox, int pMinimumWidth = 50) { if (pComboBox.Items.Count == 0) return;//don't change the width Font font = pComboBox.Font; float boxWidth = 0; SizeF stringSize = new SizeF(); int minWidth = pMinimumWidth; if (minWidth == 0) minWidth = pComboBox.Width; try { using (Graphics graphics = pComboBox.CreateGraphics()) { foreach (string phrase in pComboBox.Items) { if (!string.IsNullOrEmpty(phrase)) { stringSize = graphics.MeasureString(phrase, font); if (stringSize.Width > boxWidth) boxWidth = stringSize.Width; } } } if (boxWidth < minWidth) boxWidth = minWidth; if (boxWidth > COMBOBOX_MAXIMUM_DROPDOWN_WIDTH) boxWidth = COMBOBOX_MAXIMUM_DROPDOWN_WIDTH; pComboBox.DropDownWidth = (int)boxWidth; } catch (Exception /*pException*/) { //_ = AskingAsync(new TM("SetComboBoxDropDownWidth; exception caught and handled", pException)); pComboBox.DropDownWidth = 200; } } Quote Link to comment Share on other sites More sharing options...
edgar Posted September 7 Author Share Posted September 7 I suppose as long as I am sharing… public static void SetUpDownBoxWidth(NumericUpDown pNumericUpDown) { float boxWidth = 0f, boxHeight = 0f; SizeF stringSize = new SizeF(); string minimumValue = string.Format("{0}", pNumericUpDown.Minimum), maximumValue = string.Format("{0}", pNumericUpDown.Maximum); using (Graphics graphics = pNumericUpDown.CreateGraphics()) { if (maximumValue.Length > minimumValue.Length) stringSize = graphics.MeasureString(maximumValue + "0", pNumericUpDown.Font); else stringSize = graphics.MeasureString(minimumValue + "0", pNumericUpDown.Font); if (stringSize.Width > boxWidth) boxWidth = stringSize.Width; if (stringSize.Height > boxHeight) boxHeight = stringSize.Height; } //The Up/Down arrows is about the same width as the scrollbar width pNumericUpDown.Width = (int)(boxWidth + SystemInformation.VerticalScrollBarWidth); pNumericUpDown.Height = (int)(boxHeight + sIndent); } Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 8 Share Posted September 8 @edgar You should really be using the scaling settings in Windows Settings -> Display instead of changing the font sizes. This isn't something I can feasibly support, it's not going to be "fixed." This is also what I said in 2016 (in my reply above). Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.