TranslateControl (translate text for a control)

Top  Previous  Next


TranslateControl( control [,window] ), VIRTUAL


Translates text for a control.


An integer constant, variable, EQUATE, or expression containing the control number of the control to translate.


The label of the APPLICATION, WINDOW, or REPORT to translate. If omitted, TranslateControl operates on the active target.

The TranslateControl method translates the text for the specified control. The AddTranslation method sets the translation values for the control text.


The TranslateControl method calls the TranslateString method for the specified control. Where applicable, the TranslateControl method translates MSG attribute text, TIP attribute text, and FORMAT attribute text.

The TranslateControl method does not translate USE variable contents; therefore it does not translate STRING controls that display a variable, nor the contents of ENTRY, SPIN, TEXT, or COMBO controls. You can use the TranslateString method to translate these elements if necessary.


PWindow WINDOW('Preferences'),AT(,,89,34),IMM,SYSTEM,GRAY









Translator.TranslateControl(?Sound)        !translate Sound check box

Translator.TranslateControl(?VolumePrompt) !translate Volume prompt

ACCEPT                                     !leave OK button

END                                        !and window title bar alone

See Also:     AddTranslation, TranslateString