Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Request feature: Win only, OEM

<< < (3/3)

thomas:
I am waiting for the compile to finish atm, trying StyleSetCharacterSet . Though I don't know how it works... but will hopefully find out. This may be interesting not only for you but for a few other people, too. If StyleSetCharacterSet works out, it should be a no-timer to add a wxChoice for all available charsets.

Do you mind posting one of your OEM encoded files so I can see the result?

kisoft:

--- Quote from: thomas on November 02, 2005, 01:15:24 pm ---I am waiting for the compile to finish atm, trying StyleSetCharacterSet . Though I don't know how it works... but will hopefully find out. This may be Do you mind posting one of your OEM encoded files so I can see the result?

--- End quote ---

I attach a simple text file. A first line - is russian text (codepage 866), second - english text.
After recode, a first line must look difference, a second - no changed.

I can test you patch, then I have CVS version C::B.

I wait  :roll:
:)


[attachment deleted by admin]

thomas:
Hmm... seems I am doing something wrong, StyleSetCharacterSet does not change anything, even if I call it for every style in a for loop. Will have to find some documentation and read, maybe that helps ;)

kisoft:

--- Quote from: thomas on November 02, 2005, 02:26:42 pm ---Hmm... seems I am doing something wrong, StyleSetCharacterSet does not change anything, even if I call it for every style in a for loop. Will have to find some documentation and read, maybe that helps ;)

--- End quote ---

Really help!
I investigate sources, they more look see then docs   :|

IMHO, StyleSetCharacterSet - change Font Charset only, this way don't help me.

I continue testing my way, clipboard Copy/Paste work true. Open/Save too.
Some more changes required on change OEM checkbox into Editor Properties if I have a some opened files.
A checkbox required watch on change, and after change in cbEditor::SetEditorStyle recode text buffer.
May be it required add flag to cbEditor class.

Navigation

[0] Message Index

[*] Previous page

Go to full version