quote:
Originally posted by sock
Okay, I did some testing and changing the alignment does NOT change the text string. However, it still triggers that "change event" of yours for some reason....
The text that you can see in the control isn't changed but the RTF code that represents that text is. The RTF code includes the text of the control and also some information about fonts, sizes, formating (blod, italics, ...), codepages, right-to-left information, etc... So a change in the alignment changes the RTF code, so triggers the change event. I know there is a way to avoid this but just now i can't remember...
* Choli slaps Choli around a bit with a large trout.
quote:
And now I also see that the editbox does not display complex Hebrew strings correctly (ie., strings that have both English and Hebrew characters), whether aligned to the left or the right. What I mean by "correctly" is how they are displayed in any other Microsoft program.
Are strings with only Hebrew chars displayed ok? What is the difference between the string that the control shows and what it should be? If you type, is the text showed ok?
quote:
Blah.... I guess you need to make it support RTL somehow.....
I know, but is a bit complex. It isn't as easy as put right alignemt (or is it?). I'd like first make the program work with complex languages (like Chinese) but left to right ones.
* Choli slaps RTL languages around a bit with a large trout.
Well, this afternoon after I recieved the Mnjul's mail, I've been searching for some thing to solve the problem with the save code (it didn't work well). I've found interesting things, but i also found a bug in my code, so I preferred change the code.
The problem was that the RichTextBox, when saving, returned non-unicode codes for each character (codes relatives to the character set used by each language), so when I write them to the Lang_*.ini, strange charactes were shown. I think that is solved now (and if not, I'll have to write some extra code
)
I'm going to put a new version at the first post, but consider it as a beta because each time you save you’ll get a messagebox like "Now, i think your text should have been written OK" or "Your text may have been written wrong."
So, please Mnjul test again the new version (thanks for your patience) and sock, try it too and tell me what goes wrong (I assume it won't work well
)
Also remember running the program in "debug mode" (goto start > run, type cmd, change to the folder where the prog is (CD) and run the program with an argument: MsgPlusTrans.exe put what you want here). Once in debug mode, the RTF code can be very usefull to me.
Thanks for all.