Navigation: ABC Library Reference > TranslatorClass > TranslatorClass Methods >====== TranslateWindow (translate text for a window) ====== | |
TranslateWindow( [,window] ), VIRTUAL
TranslateControls | Translates text for each control on the WINDOW. |
window | The label of the APPLICATION, WINDOW, or REPORT to translate. If omitted, TranslateControl operates on the active target. |
The TranslateWindow method translates the text for each control on the active target (APPLICATION, WINDOW, or REPORT). The AddTranslation method sets the translation values for the controls.
Implementation:
The TranslateWindow method calls the TranslateControls method, specifying the entire range of controls on the window, except for menus and toolbars.
Example:
PWindow WINDOW('Preferences'),AT(,,89,34),IMM,SYSTEM,GRAY
CHECK('&Sound'),AT(8,6),USE(Sound),VALUE('ON','OFF')
PROMPT('&Volume'),AT(31,19),USE(?VolumePrompt)
SPIN(@s20),AT(8,20,21,7),USE(Volume),HVSCROLL,RANGE(0,9),STEP(1)
BUTTON('OK'),AT(57,3,30,10),USE(?OK)
END
CODE
OPEN(PWindow)
Translator.TranslateWindow !translate all controls
ACCEPT ! plus window titlebar
END
See Also: AddTranslation, TranslateControls