My VB6 application is having a layout problem on certain end user PCs, but so far we are unable to identify what is causing this.
Normal layout:
Broken layout:
The text on the left are the captions of the radio buttons. The text in the upper right is a label.
I am familiar with two different settings in Windows Control Panel which can affect text size, and initially we suspected this was the cause. In Windows 10, they are:
Control Panel >
Appearance and Personalization >
Display >
(1) "Use these display settings" > "Customize your display"
or
(2) "Set a custom scaling level"
(Terminology was different in earlier Windows versions but I think the features were the same?)
However upon testing these settings with our app neither reproduces the problem.
What else might be causing the text layout issue shown in the image?
This appears to be caused by a Windows bug.
The description & fix as mentioned in the source website are as follows:
if you have a high resolution screen at install time, Win7 will install a larger font set (125%) by default. If you then choose go back to the standard font size (100%), Windows will keep some of the large fonts even though everything else is adjusted for standard fonts, causing programs that use these fonts to break because the text will not always fit inside the GUI.
By editing the Windows registry you can get the original, intended fonts back:
Open the start menu and type regedit and then press Enter.
Locate the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
Find the value MS Sans Serif 8,10,12,14,18,24
Change from SSERIFF.FON to SSERIFE.FON
Find MS Serif 8,10,12,14,18,24
Change from SERIFF.FON to SERIFE.FON
Finally find Courier 10,12,15
Change from COURF.FON to COURE.FON
Restart your system in order for the changes to take effect!
The exact font names may vary depending on locale settings.
I was able to create the problem scenario as described here on Windows 10, and that reproduced the problem with our VB6 app. I think that confirms this as the fix.
A Microsoft blog post seems to be the authoritative original source of this information.
Related
I work in an environment where we have to have a security classification banner displayed at the top of each monitor on our Gnome Desktops. Currently, I am using a Perl/Tk window to display the classification of the system. However, that window cannot be moved because of the way it is built (no decorations) and occasionally overlays open windows making it difficult for users to manage those windows.
I would like to be able to do something different, but I'm not sure where to start. Three ideas I have are this:
An icon or something in the Top Bar showing the classification
A banner, like the Top Bar, that sits above the Top Bar
A window, like I already have, but relocatable
I figure the first option would be easiest, but since the Top Bar isn't shown on every monitor, that may not be the best option. I don't even know if the second option is even possible. The third option would require me to use something other than Perl/Tk but that's the only language I'm fluent in at the moment.
So I'm looking for suggestions or examples or Gnome extensions I can use to solve this problem.
Thanks.
There is a classification-banner python utility at https://github.com/fcaviggia/classification-banner. It's no longer maintained, but we've been using it without change for a few years now. It's OK. One problem is that it doesn't "shrink" the desktop screen, so application windows can overlap it; it's set to Always On Top, but it would be nicer if it actually couldn't be overlaid at all.
A simple solution, of sorts, would be to change the desktop background image. This can have issues if you're displaying on multiple resolutions (I don't know if Gnome supports SVG for such purposes) and of course it can be obscured by windows covering it.
Older versions of Gnome let you create multiple bars that worked perfectly, but that disappeared - along with many other customizations - in Gnome 3.
We have customers reporting an issue with icons not appearing correctly in Windows 10. I am not able to reproduce the issue with our application, but it is similar in appearance to something that's happening with other programs on my computer. The first screenshot below is from a single computer. It is my task bar on my left and middle monitors. Notice that the "notepad++" icon on the left (it's the highlighted/active icon) is the original icon with the little chameleon sitting on a pencil (you will have to zoom in) and the one on the right just shows the text "n++".
Similarly the Sql Developer icon (immediately to the right of N++) also looks different on different monitors (demonstrating that even when the app's not running this is an issue).
In fact, as I was writing up this question I found that there is a difference between two means of getting at the icon resources in notepad++.exe. If I use IconsExtract (third party tool) on the exe I get the "n++" style icon, but if I right click on N++ in the task bar > Choose properties > Click "Change Icon" I get the chameleon on a pencil icon. You can see these two overlaid in the second image.
I can't for the life of me figure out how windows decides which icon to put where. I would be satisfied with a response that just told me where the two different n++ icons really are.
What it looks like on my monitors
Comparing the two methods of seeing icons
(Don't be fooled by the second chameleon which does appear to be the same.
I showed this to a coworker today and he knew the answer... the taskbar on the left was my laptop and I have configured the "size of text, apps, and other items" under "scale and layout" in the "display settings" for that screen to 150%. Changing the size to 100% caused the icons to become the same across all taskbars. I'm still looking for a good article with the details as to why, but changing the size definitely fixes the issue.
As you can see, the font of modelsim's text editor is very small. But I can't change the size in Tools->Edit Preferences->Source Window->Fonts.
However, I can make the letters bigger by set the DPI higher(through System Settings->Fonts) or set the resolution of the screen to a appropriate value, such as 1024X720, while 1366x768 is the actual resolution of my screen. These ways are not comfortable, because everything else look strange.My OS is Fedora 22, and the version of my Modelsim is 10.3d.
I want to get a more comfortable way to the font-size problem of Modelsim, I'll appreciate it!
I ran into this too in Ubuntu 16.04 LTS with modelsim 10.5 ASE. I fixed it as follows:
Open ~/.modelsim (use "nano ~/.modelsim" in terminal)
Find: PrefDefault = ... textFontV2 {Verdana 12} (the name of the font may differ)
Change 12 to -12, so it will looks like this: textFontV2 {Verdana -12}
Save ~/.modelsim (Ctrl+O and then Enter)
Reopen modelsim
I ran into this too in Xubuntu, just use Ctrl++ or Ctrl+- to enlarge or shrink the text dynamically.
Tools->Edit preferences->source windows-> textFont
I am using CentOS Linux, Questa Sim-64 10.1a and had the same problem. I fixed it as follows :
Select "Tools" option from the toolbar at the top.
From the drop down menu select "Edit Preferences ..."
On the lower left pane, there are various Font types like fixedFont, footerFont, textFont etc. To change the size of textFont, select it and you get the choice of font type and size.
Choose what you are most comfortable with.
menuFont is used for command prompt and treeFont is used to display the folder structure.
On Xubuntu/XFCE4: Going to Settings⟶Appereance⟶Fonts and disabling the "Custom DPI setting" checkbox solved the problem for me.
The strange thing is that xdpyinfo says the screen resolution is 96x96 dpi regardless of the checkbox. Leaving the checkbox on and setting something like 200 dpi scales the Modelsim editor font, but also all other fonts on the screen, so that doesn't help. I didn't dig any further towards the root cause.
I've been having this problem with the Matlab GUI (linux) that has been annoying me for over a year but I still haven't found a solution.
Basically, the autofix hints are not displayed. When I move the mouse cursor over a potential warning/suggestion, a gray-background pop-up appears but the text inside is missing. The same happens when I hover over those little warning bars on the right hand side of the editor. Does anyone have any clue what might be causing this?
Screenshot: http://i58.tinypic.com/4veu.png
This happens only on my linux machine (Ubuntu 14.04 LTS, NVidia GeForce with nvidia driver).
Thanks!
For those interested, this issue appears to be related to the Unity Desktop. Mathworks does not provide a fix but suggests using a different XServer instead. Here is the answer I received from support:
This issue is known to occur due to a windowing system used with
"linux" on which MATLAB has not been tested. It has been observed that
if you are using "Unity desktop" in "linux", then the tooltips are
displayed as blanks.
To work around this issue, you may try switching off "Unity desktop".
You can refer to the following links for more information on this
issue:
http://www.mathworks.com/matlabcentral/answers/116987-empty-tooltips-in-code-analyzer
matlab code analyzer produces empty tooltips
Indeed, I tried lubuntu and XUbuntu (Xfce) and the tooltips in Matlab were working in both cases. I find Unity very handy because I got used to it, so for now, I will probably simply not use this Matlab feature. Hopefully this will be fixed eventually.
It's an old post but some people may be still looking for a solution or a hack. Well, I also had this issue on R2015a when using two monitors and hiding Ubuntu 14.04 sidebar seems to do the trick. This link explains how to do it: http://www.howtogeek.com/198218/how-to-easily-hide-the-unity-launcher-in-ubuntu-14.04/. Hope it helps!
This is accomplished, in the article, by:-
1) Select “System Settings” from the drop-down menu.
2) The “System Settings” dialog box displays. In the “Personal”
section, click “Appearance.”
3) On the “Appearance” screen, click the “Behavior” tab.
4) On the right side of the “Behavior” tab, there’s an ON/OFF switch.
Click the switch so it reads ON.
5) The ON/OFF switch also turns orange. Additional options for how to
show the hidden Unity Launcher become available in the “Auto-hide the
Launcher” section of the “Behavior” tab. Under “Reveal location,”
select whether you want to move the mouse to any location on the “Left
side” or just to the “Top left corner” of the screen to reveal the
Unity Launcher. Use the “Reveal sensitivity” slider to change the
sensitivity of the reveal location.
6) Once you have chosen your settings, close the “Settings” dialog box
by clicking the “X” button in the upper-left corner of the dialog box.
This happens to me in Ubuntu 15.10 using xfce, with two monitors connected to an Nvidia GeForce 8600 GT, one of which is rotated to portrait orientation. The "workaround", from the page Anton linked, is to resize my matlab desktop such that the red underlined text or red scrollbar annotation is in the bottom third of my left monitor. Unbelievable.
My preferred workaround is to use Python+Scipy+Matplotlib instead of Matlab.
By mistake, the option on "custom sizing options" was set at 500% in the section "change the size of all items".
The result is all elements on the screen are huge, and whereas I am able to reach the display section and through tab I am able to navigate some options on the left panel, I am unable to reach the change the size of all items section.
I have tried several things to revert it to 100%, but all have failed so far:
Restart on safe mode. Displaying it on a different monitor and proyector using both hdmi and vga. Uninstalling the graphics driver didnt help. Using the "zoom" only has option to zoom in. Changing the screen orientation to vertical in hopes of accessing more options allowed me to see the left panel but not more. Using ctrl + mouse doesnt change the size inside the Display section. The computer doesnt have a restoration point to go back to, and I cant uninstall the applications because it isnt my laptop.
I have been searching for the correct command to execute but the closest I have found is "Display Properties control desk.cpl" and it is not the command I need. By the way, the computer is a lenovo using windows 8.1 in spanish. I have tried in other computers, for example a dell in windows 8 and the percetage is limited to 200%, so I cant test it correctly.
If somebody has a solution or any suggestion please share.
English is not my mother language so please excuse the grammar and misspelings.