TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BART BROERSMA
from: FRANCOIS PIETTE
date: 1997-03-25 20:31:00
subject: Language specific dialogs

Salut Bart Broersma !
Dans un message de Bart Broersma dat‚ du 22 Mar 97  12:07:02 il ‚tait dit:
  BB> As my application is in Dutch, I would like all dialogs (OpenDialog,
  BB> SaveDialog, FontDialog etc) to have Captions and Buttons in the Dutch
  BB> language, even thoug I'm running it on a UK Windows 3.1 platform.The
  BB> same goes for the captions ("Information", "Error" etc.) of the
  BB> (in)famous MessageDlg function, wether I call this fuction myself or
  BB> some other dialog does (e.g. OpenDialog if you use the ofFileMustExist
  BB> option and try to open a non-existing file).How do i do this ?Must I
  BB> derive a new class from the TOpenDialog etc., and if so how ?As I have
  BB> bought Delphi on "special offer" I don't have the source code to the
  BB> dialogs unit etc., so I don't really have a clue how to achieve this
  BB> sort of things.Can somebody please get me on the right track ???
There are many solutions for this (common) problem. Here in belgium we 
must create bi or tri-lingual applications (french, dutch and deutch).
One solution consist of iteration thru every control on every form
(there is a controls array in each form) and replace the cation 
property for what is necessary. For example, you can design your 
application with every caption set as a message number. Iterating thru 
the control and replacing the numbers by the messages fetch from a 
database or a string table resource will do the job, at run-time, 
letting user to choose the language he needs.
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.