Results 1 to 9 of 9

Thread: strange controls behavior

  1. #1

    strange controls behavior

    Hi all,

    I'm in the process of adapting a utility in Russian language. I have already prepared, by a Russian, the localized strings of the various controls of the utility.

    Now the oddity begin here. The TLabel work properly, when the TFont.Charset property is set to CHARSET_RUSSIAN. I get nice Cyrillic text displayed (on my westerner windows).

    But no other control work like that. TSpeedButton for example just don't display properly (with the Russian charset!) Cyrillic.

    What is more, even if I use a TNT Speed Button (that supports unicode) and if I set the charset to Russian, it don't work too.

    Only the TLabel are ok. I wonder where the problem can be? Any clues?

    Thanks in advances.
    http://www.birth-of-america.com/
    <br />The game on American War of Independence and French-Indians war.

  2. #2

    strange controls behavior

    Hi Pocus,
    I have used TNT controls ( EditBox etc ) to accept Russian text. Are you able to put together a very small example that shows the problem. I have TNT installed at home so can have a look at it.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  3. #3

    strange controls behavior

    Are you sure that font you are using for buttons has russian glyphs [on your system]?
    There are only 10 types of people in this world; those who understand binary and those who don't.

  4. #4

    strange controls behavior

    Hi,

    All controls use the same font, MS Sans Seriff.

    I put a tiny app on the web as a proof of concept:

    http://archon.free.fr/misc/Cyrillic.rar


    There is 4 controls on the form (all are using Russian Charset, MS Sans seriff):

    TLabel, TButton, TntLabel, TntButton

    They are all expected to show a small Cyrillic string. Only the TLabel behave correctly, the others 3 don't.

    :?: :roll:
    http://www.birth-of-america.com/
    <br />The game on American War of Independence and French-Indians war.

  5. #5

    strange controls behavior

    On mine notebook with cyrillic locate activated all 4 controls correctly display cyrillic text.
    There are only 10 types of people in this world; those who understand binary and those who don't.

  6. #6

    strange controls behavior

    ok, even with RU language activated (regional setting) it works only as I describe.

    The most important thing being that it shows correctly on russian computers, I will then ignore what I see.

    Thanks all for the input.
    http://www.birth-of-america.com/
    <br />The game on American War of Independence and French-Indians war.

  7. #7

    strange controls behavior

    Did you install russian keyboard layout? Cos [I'm not sure here] regional settings (like date format, currency, etc) are not equal to keyboard layout / font glyphs availability.
    There are only 10 types of people in this world; those who understand binary and those who don't.

  8. #8

    strange controls behavior

    yes the Russian keyboard is installed automatically when I choose to install Russian. I think (I hope, it would not be consistent otherwise) that when I switch to russian, Windows switch to russian keyboard too.



    Edit: You are right, but this is not installed automatically when you choose to switch to Russian and Russian keyboard. You have also to specify in Regional Settings/Advanced Options which language to use for non-unicode programs.
    http://www.birth-of-america.com/
    <br />The game on American War of Independence and French-Indians war.

  9. #9

    strange controls behavior

    Quote Originally Posted by Pocus
    Edit: You are right, but this is not installed automatically when you choose to switch to Russian and Russian keyboard. You have also to specify in Regional Settings/Advanced Options which language to use for non-unicode programs.
    At some point I've actually decided to write about this, but... you are setting "Charset" property to "RUSSIAN_CHARSET" and this [as I've thought] should remove the need to force "non-unicode programs" charset to russian...
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •