Home End User

Japanese Data

edited December 2002 in End User
I have an application that can display English and Japanese data. However,
in the report wizard and report, the Japanese is not displayed right. The
parts that are in Japanese are the field names and the data. I am not
talking about the captions, etc. on the screen. Is this possible? What
settings do I need to set?

With some components, as long as the Charset is 'DEFAULT_CHARSET', it
automatically comes in (i.e. TListView). However, for some components, I
need to actually change the Charset to a one that is Japanese (for example)
(i.e. TEdit). I checked out the components and the Charset is
'DEFAULT_CHARSET' and since they don't display in Japanese, it appears I
need to do something different.

Please point me in the right direction.

Thanks.

SMP

Comments

  • edited December 2002
    After further testing, here are the issues.

    1. In the Report Wizard, on the tab where the groups are defined, the memo
    on the left is not in Japanese. Probably because it is an OwnerDraw?
    2. When I create a report default report, the field name and data are not in
    Japanese. However, if I change the field name's font name to 'Microsoft Sans
    Serif' it works and if I change the data's font name to 'Microsoft Sans
    Serif', it works. Where do I default the font names for the Label components
    and DBCalc components? I believe if I set the defaults to 'Microsoft Sans
    Serif', all should be well. I am not too worried about the group memo but it
    would be nice if you could tell me what I need to change.

    Thanks.

    SMP

  • edited December 2002
    For new components created in the designer, the Arial !0 font settings is
    hard coded. Look in ppDsgner.pas in your installed RBuilder\Source
    directory. You'll have to change the default font. Search for this in the
    TppDesignerWindow constructor: Rebuild using RBuilder\Source instead of
    RBuilder\Lib.

    FDesignFont := TFont.Create;
    FDesignFont.Name := 'Arial';
    FDesignFont.Size := 10;
    FDesignFont.Style := [];
    FDesignFont.Color := clBlack;

    Yes, some of our controls are set to OwnerDraw.

    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.