Text indicator not in the right place

This issue has nothing to do with code, it has to do with the text editor. I use Processing 4.0b1 64 bits on a windows 10 laptop…
The program works fine except for the text indicator (the one that blinks and tells you where the next character you press on the keyboard will show up at) acting all wonky and not being placed where it should, which makes text editing confusing and time consuming…

In order to explain this problem I will refer to the indicator in 2 forms:
where I see it on screen - visual indicator, and where my next letter will show up when I type in something - actual indicator.

The visual indicator seems to always move to the right of the actual indicator. This get progressively worse when the actual indicator is farther to the right.

here are some images to show what happens:

in the following image the visual indicator is shown on the blank space to the right of the number 30 but the actual indicator is on the rightmost number 0, and when I press backspace it deletes the 0 from the 30.
image

In the following image the actual indicator is to the right of 17 and to the left of 18 like this → (17*18). and this time the visual indicator is placed at the digit 1 of the number 19. It seems that the visual indicator moves to the right without regarding the “blocks” that each char is placed in, it may go on top of numbers such as in this case…
image

In the following instance, the actual indicator is placed between the digit 3 and 4 at the left, notice that the visual indicator is closer to the actual indicator more than the other instances…
image

In the following instance is the actual indicator to the left of the 2 backslashes. notice that the visual indicator is in the same spot as the actual one. The visual indicator will overlap with the actual indicator in the next 2 spots as well, after that it starts getting farther away…
image

The only problem here is with the visual indicator, the actual indicator works just fine.
any idea how to fix this??

1 Like

Think it’s a known bug, and has to do with the GUI scaling in windows display settings:

3 Likes

Welp, seems there is no simple solution for this… I’m hoping it will be fixed in a new release/patch… after digging a bit through the link you(@rapatski) shared I found one solution which requires changing some windows settings, which in turn changes the display’s appearance, so it’s not an ideal solution but it works… It seems another possible solution is suggested in the discussion through the link but it involved some complicated file’s name and I’m too lazy to dig that deep to fix this problem…

In short, what helped was searching the settings for - “advanced scaling setting” then clicking the option that pops up - “Fix apps that are blurry” then write 100 into “custom scaling”.

PLEASE TAKE NOTICE - after changing this setting, I noticed that there is a warning next to this option of writing a custom scaling, which in short means that some apps may not work and may not be readable but most importantly that it may be hard to return to original settings(sigh…)… I was too lazy to read that stuff… I hope no further problems will ensue with regular computer usage…

SO, digging a bit more in the discussion shared above I found a solution. What worked for me was overriding the high DPI scaling to system(Enahanced) as explained in this website.

Please watch out when changing windows settings, Hope this helps…

2 Likes