unicode and edit controls |
Post Reply |
Author | |
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Posted: 22 April 2009 at 11:45pm |
Hi
After spending a month solid porting my app to unicode, I now have the fun of trying to get everything working again. One problem I'm having is the edit controls - CEdit. By default it seems it uses a font that doesn't support unicode, so any non-ansi chars show up as vertical bars (like a password control). I've seen "solutions" reported that involve adding code to manually set a new font for every edit control in your app. I've got hundreds of these around the place. It's unbelievable I would have to write code for each one surely? Is there any way to get this to happen on a global basis? i.e. some func that will set the font for all dialogs? Even skinning it might work for that? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Check that you have DIALOGEX dialog style, font is "MS Shell Dlg" and DS_SETFONT | DS_FIXEDSYS styles are set.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
Hi
Thanks... I found a solution also soon after I posted that. In the end I just searched and replaced in all my .rc files (about 40 of them) for MS Sans Serif and replaced with Microsoft Sans Serif, which is a unicode font. I didn't change dialog types to dialogex.... there were hundreds of them... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |