Win7RE: RichEdit Control double spaces no matter what? - winapi

Testing shows that a richedit control under Win7RE is double spacing after a \line instead of single spacing like all other environments, even Win7 normal. I tried forcing line spacing with both the EM_SETPARAFORMAT with PARAFORMAT2 and with adding a \lsN in the rtf code itself. Again, this is only occurring under Win7RE not under Win10RE or Win11RE, and not under any normal Windows OS (including going back to NT4). It's not the end of the world, but is there a trick to get it to work under that environment?
Thanks.

Related

What is the offical way to tell Microsoft to fix bugs in Tab Common Control

There are obviously some bugs in Tab control of Common Controls 6
Here is my testing environment showing Tabs in often used way:
But when I switch to bottom aligned tabs, I get wrong aligned text here.
When I switch to left aligned view, it becomes more ugly. The underlined mnemonic char, represented with an ampersand in string and correctly interpreted is wildly shown at the end of the tab text and the tab is incorrectly dimensioned. The background colors of the tabs are not themed.
How can I tell Microsoft in an official way about the bugs?
CC6 tab control dropped support for everything except tabs on top. Sad but true.
This style is not supported if you use ComCtl32.dll version 6.

Interface Builder cuts off text input for long strings when using attributed text

Is this a bug or by design? The text input is cut off when text is getting long. Using Xcode 8. How can I avoid this? It stops me from inputting the text I want.
I realized that you can make the thing stop cutting off text by simply making the Xcode window and/or panel wider. I still think though that this kind of control usually should allow for scrolling within itself... I seem to remember that it did at times, but I just can't get it working now.

Convert tab to spaces

Usually we replace tabs to spaces in editors while coding.
What is the exact need for that?
Is it for because the OS handles \t in the files?
I am really not very sure of this. Kindly clarify
Tabs don't have fixed width, its width depends on IDE (editor) settings. It is usually set to have width 4 spaces, but it doesn't have to be. There probably wouldn' be any problem if you use only tabs and don't use spaces, but this will never happen. You can bet, you will always want to move some text by only one extra space to the right. Then you will be mixing spaces and tabs together and that's what brings trouble. It might look correct in your IDE, but then you will want to do some change in vim editor for example, where there will be different tab size set. Indentation of the code won't be what would you expect. Also when you send some code to your co-worker, he might use different IDE with different settings and he will again see wrongly aligned code. On the other hand with spaces only you see what see the others.

In Xcode4, can you change the characters used to display invisibles?

I much prefer Visual Studio's way of displaying invisibles... a simple dot for spaces, and an arrow for tabs. When you change the color to be a light-light-gray, they provide excellent help when viewing code alignment and such but they're barely noticeable so you can leave them turned on all the time without really getting in the way.
Xcode4 however (and maybe other versions as well) instead display some truncated-'U' shape for a space and don't appear to show anything for a tab, Worse, as I mentioned in another post, Xcode doesn't respect its own setting for invisibles color.
Still, this question is about changing the default character used. I don't care if it's a hack of a plist file or even digging around in the contents of Xcode's app bundle (knowing any updates would revert it if it was) but as they are now, they're just too unusable because of how much they obstruct whitespace and thus skimming of code. (VS really nailed that.)
The only way (I could figure out) to do it is to find the symbol that it uses (note they change along with font) open the font in a font editor and copy paste the glyph you want to the one in spot occupied by the character you want to change. There are a few free editors and some really expensive ones I was able to use ttfedit http://mac.softpedia.com/get/Utilities/TTFEdit.shtml to find and change the character XCode used for spaces on one of the more silly fonts I have to make sure it worked before I answered. Saved font to desktop, double clicked and installed it, osx complains that it is duplicate font, say resolve differences and pick your new file and say resolve to turn off the old font. Next time you open xcode you should see your new symbol for space.
Probably another way to do this, but may be the only way without getting deep into XCode source to find where it makes decision for symbol to use (note many use white diamond but helvetica for instance uses a kinda floor bracket thing, you may see the pattern but I didn't).

Cygwin scrolling problem

When i run a command in cygwin when scrolled up it starts writing the output to that screen, so everything gets written over.
How can I change settings so that output will always be appended to the end not to where I have currently scrolled my window.
I found that rxvt doesn't do that but it also doesn't show me äöõü characters:(
Are you sure it's overwriting where you've currently scrolled to? I find the console just jumps back to the cursor position when there's new output. Still annoying though, and I don't know of a way to switch off that behaviour.
Anyway, have a look at 'mintty'. Like rxvt, it doesn't need an X server, but it does support Unicode, so the umlauts should be fine.

Resources