Article View: borland.public.cppbuilder.internationalization
Article #734Re: Resource Dll
From: Dennis Jones
Date: Wed, 19 Feb 2003 03:11
Date: Wed, 19 Feb 2003 03:11
32 lines
2087 bytes
2087 bytes
"KC" <pine73@icqmail.com> wrote in message news:3e5098de@newsgroups.borland.com... > I created a simple application with a form and a button in it. When I click > the button, it will pop up a messagebox. I tried to localize (example : > changing button caption to chinese) it by creating a resource dll. I added > an entry to HKEY_CURRENT_USER\\Software\\Borland\\Locale\\c:\\test.exe with > data set to CHT > to force my application to load the resource dll. > > My application managed to load the resource dll. The problem is when I click > the button, the messagebox didn't pop up. It seems that, the button couldn't > map to the OnClick message handler whenever I use the resource dll. Any > idea? > > Regards, > > KC This will happen if the event is not defined in the localized DFM (usually because you created the localized form before you added the OnClick event handler to the original form). All you have to do is define the OnClick event handler for the localized form (edit the text mode DFM): object MyButton: TButton OnClick = MyButtonClick - Dennis
Technical Details
Message-ID:
<3e52f5f0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e5098de@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10297d,557e90b5a3f87e96 X-Google-Attributes: gid10297d,public X-Google-ArrivalTime: 2003-02-18 19:17:38 PST From: "Dennis Jones" <djones@nospam.com> Newsgroups: borland.public.cppbuilder.internationalization References: <3e5098de@newsgroups.borland.com> Subject: Re: Resource Dll Date: Tue, 18 Feb 2003 19:11:46 -0800 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 204.200.27.7 Message-ID: <3e52f5f0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1045624304 204.200.27.7 (18 Feb 2003 19:11:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail