User Tools

Site Tools


translatewindow_translate_text_for_a_window_.htm
Navigation:  ABC Library Reference > TranslatorClass > TranslatorClass Methods >====== TranslateWindow (translate text for a window) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

TranslateWindow( [,window] ), VIRTUAL

blk2blue.jpg

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

translatewindow_translate_text_for_a_window_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1