RVA_GetS, RVA_GetSH, RVA_GetPC Functions

<< Click to display table of contents >>

RVA_GetS, RVA_GetSH, RVA_GetPC Functions

This method returns a localized string.

Unit RVALocalize.

type

  TRVAMessageID = (rvam_Empty, rvam_menu_File, rvam_menu_Edit, ...);

function RVA_GetS(MsgID: TRVAMessageID;

  ControlPanel: TComponent=nil): TRVALocString;

function RVA_GetSH(MsgID: TRVAMessageID;

  ControlPanel: TComponent=nil): TRVALocString;

function RVA_GetPC(MsgID: TRVAMessageID;

  ControlPanel: TComponent=nil): PChar

// RVA_GetPC returns WideString for TNT Controls

If ControlPanel is a TRVAControlPanel component, the functions use it. Otherwise, they use MainRVAControlPanel.

These functions return strings corresponding to MsgID, translated to the current language. 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.

RVA_GetS just returns a string.

RVA_GetSH(MsgId) returns ' '+RVA_GetS(MsgId)+' ' (used for assigning to captions of radio groups and group boxes).

RVA_GetPC returns the same value as RVA_GetS, but not as a String but as PChar.

Note: if RichViewActions are compiled with TNT Controls, these functions return WideString.