home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- // Borland C++Builder
- // Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
- //---------------------------------------------------------------------------
-
- TITLE:
- RICHEDIT
-
- DESCRIPTION:
- A Rich Text word processor
-
- DEMONSTRATES:
- + TRichEdit, TPanel, TSpeedButton, TComboBox, TUpDown, TLabel, TBevel,
- TFontDialog, TOpenDialog, TSaveDialog, TPrintDialog, TMainMenu
- + Use of resource only Dll's for the languages English and German
- + Runtime switching of resource only DLLs
-
- COMMENTS:
- Switching the language between English and German requires that
- the resource only Dll's, located in the directories:
- \DEU -> German language
- \ENU -> English language
- are copied to the applications directory. Otherwise the application
- will load the default resources from the EXE itself.
- For example:
- - Open project group \Richgrp\Deu\Richdeu.bpg
- - Build All Projects
- - Copy generated Richedit.Enu, which is a resource only Dll into the
- \Richedit directory
- - Copy generated Richedit.Deu, which is a resource only Dll into the
- \Richedit directory
- - Start Richedit.Exe
- - Select menu Language|German to see the program in German, or
- Language|English to see the program in English
-
- Creating a new resource only Dll:
- - Open Richedit.bpr from the \Examples\Richedit directory
- - Build project
- - Start the 'Resource Dll wizard' from the Object repository
- - Follow the steps, selecting the language you want to create the Dll for
- WARNING: The 'Resource Dll wizard' overwrites any previous translations!
- - Translate the DFM's and RC file
- - Build the new resource Dll
- - Copy the resource DLL to the EXEs directory
-
-
-
-