Jump to content

Richedit Format Problem


Recommended Posts

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 format
HKEY.doc the file which displays the problem like in richedit.

HKEY.reg HKEY.doc

Link to comment
Share on other sites

Link to comment
Share on other sites

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

HKEY.jpg

Edited by mike1950r
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...