mike1950r Posted March 21 Share Posted March 21 Hi, I have a problem with richedit. I have created a richedit text editor and when i load a certain reg file (attached) in the middle of the window suddenly the font is changing. How can I setup richedit, that the font i use will always stay fixed? Thanks for assistance. Cheers mike Attachements:HKEY.reg the file to be loaded in .txt formatHKEY.doc the file which displays the problem like in richedit. HKEY.reg HKEY.doc Link to comment Share on other sites More sharing options...
Nine Posted March 21 Share Posted March 21 (edited) Sorry but reg and doc files do not help us much. Could you create a small replicable scrip that shows the issue you are facing. Edited March 21 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector GIF Animation (cached) Screen Scraping Link to comment Share on other sites More sharing options...
mike1950r Posted March 22 Author Share Posted March 22 (edited) Hello again, to make it clearer. Load or copy the content of HKEY.txt into richedit control and you will see how it is displayed in HKEY.jpg. After the line starting with"949"= the font changes. If I load or copy the content of HKEY.txt into word this is not happening; the font stays the same. This is my problem. What can I do, that autoit richedit control does not make this problem, say keeps the font unchanged. I would be very happy, if someone could help me with this issue. Cheers mike HKEY.txt Edited March 22 by mike1950r Link to comment Share on other sites More sharing options...
mike1950r Posted March 22 Author Share Posted March 22 OK, I found the solution. My procedure for setting the default font must be called: after loading a file after pasting text etc. That means, if i declare this default font at the beginning of my richedit control, this is not kept for the whole editor script. This was indeed my question: How can the default font be kept as a fix font without beeing changed by loaded content? Cheers mike Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now