UNICODE and Comboboxes

This is a discussion on UNICODE and Comboboxes within the Windows Programming forums, part of the Platform Specific Boards category; Hi there. I searched the forum for a topic like this, but I couldn't find any. In my program, which ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    87

    UNICODE and Comboboxes

    Hi there. I searched the forum for a topic like this, but I couldn't find any. In my program, which is written on VC++ 6.0 I have two comboboxes, which are created in the resource editor. They both have the the type Dropdown, so I can type string at the top, not only choose a string. In my program I fill the contents of these comboboxes from an Access database. This content is not in English, but in Bulgarian(Cyrilic) and are displayed properly. But when I try to type something in Cyrilic in the combobox it is typed in English.

    Does anybody knows how can I fix this? I thing it is related to UNICODE support in Windows, but I don't know anything about Multicode, UNICODE and so on.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,671

  4. #4
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    Thanks, but I couldn't find why I cannot type cyrilic letters in this topics.

  5. #5
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    You didn't ask why you couldn't. You asked how you could. And that's how. They probably won't mention cyrilic specifically in those pages, but they show you how to do unicode characters, and it really wouldn't be hard to find out what all the cyrilic characters are in unicode.

  6. #6
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    If you can type cyrilic letters in notepad you should be able to type them in a combo box, depending on font support.

    Can you post a screen shot? Do the cyrilic characters show up correctly in the drop down list box? What English characters are showing? What font are you using? Is Bulgarian set as your input language?

  7. #7
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    So I can input cyrillic chars in notepad, in Word, in IE and so on.
    But I can't do it in my program. In some windows, for example the "jump to file" window in Winamp if I want to input cyrillic I must close the window, to change the input language to Bulgarian and then to open it again. In some windows, such as notepad, VC and so on I can directly change the input language and type. But in my program I can't type such chars at all.
    Attached Images Attached Images   

  8. #8
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    That is weird. Can you copy and paste a cyrillic character into the combo box? What function are you creating the dialog box with? If you are running your own message loop are you calling TranslateMessage()?

  9. #9
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    I use MFC, so I create the comboboxes with the resource editor and associate CCombobox objects with them.
    I can copy/paste cyrillic characters in them .

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21