Article View: borland.public.cppbuilder.internationalization
Article #736Re: Resource Dll
From: KC
Date: Wed, 19 Feb 2003 08:52
Date: Wed, 19 Feb 2003 08:52
39 lines
2234 bytes
2234 bytes
That solves my problem, thanks. "Dennis Jones" <djones@nospam.com> wrote in message news:3e52f5f0$1@newsgroups.borland.com... > > "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:
<3e5345f5@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!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e5098de@newsgroups.borland.com> <3e52f5f0$1@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-19 00:57:26 PST From: "KC" <pine73@icqmail.com> Newsgroups: borland.public.cppbuilder.internationalization References: <3e5098de@newsgroups.borland.com> <3e52f5f0$1@newsgroups.borland.com> Subject: Re: Resource Dll Date: Wed, 19 Feb 2003 16:52:34 +0800 Lines: 41 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: 219.93.212.46 Message-ID: <3e5345f5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1045644789 219.93.212.46 (19 Feb 2003 00:53:09 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail