<< Click to display table of contents >> RVA_GetCharset Function |
This method returns the charset for the current UI language.
Unit RVALocalize.
function RVA_GetCharset(ControlPanel: TComponent=nil): TFontCharset;
If ControlPanel is a TRVAControlPanel component, the function uses it. Otherwise, it uses MainRVAControlPanel.
The name of the current language is returned as ControlPanel.Language, or by RVA_GetLanguageName function.
The current language can be changed by assigning a new value to ControlPanel.Language, or by calling RVA_SwitchLanguage procedure.
This charset is ignored in Delphi/C++Builder 2009 or newer, because Unicode strings do not need charsets. Use this function for Delphi/C++Builder 5-2007.
DEFAULT_CHARSET is used for languages that do not have ANSI charset (Armenian, Hindi). For these languages, localization strings have UTF-8 encoding, and can be used in old versions of Delphi only with TNT Controls.
RichViewActions apply this charset to all fonts in all dialogs displayed by RichViewActions.
You should use this property to apply to your own forms (if they support a localization) and to Screen.HintFont and Screen.MenuFont:
Screen.HintFont.Charset := RVA_GetCharset; // Delphi 6-2007 is required
Screen.MenuFont.Charset := RVA_GetCharset; // Delphi 6-2007 is required