🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internationalization
Article #719

Re: Edit Box

#719
From: KC
Date: Sun, 09 Feb 2003 16:25
97 lines
3938 bytes
I tried to do window subclassing. I managed to get chinese text displayed in
the messagebox. I tried to set the caption of the main form (TForm) but it
didn't displayed it properly. I used Win32 API

void __fastcall TForm1::Button1Click
{
    SetWindowTextW(this->Handle, ..);
}

Can someone help ? Thanks.


"SJC" <NoSpam@coldmail.com> wrote in message
news:3e3abace$1@newsgroups.borland.com...
> General comment that is probably obvious at this point.  Borland Builder
VCL
> does NOT support Unicode.  That means ANY language that is rendered as
> Unicode with require the same steps being discussed here, not just
Chinese.
>
> Too bad for all of us multilanguage developers.  However, there is hope.
> There are many talented developers with toolkits and components to
> facilitate this process.  Search the www for "internationalization".  You
> may find what you need.
> Regards,
> Steve C.
>
> --
> NoSpam@coldmail.com is bogus.  Reach me at sjciric at localnet dot com
>
> "I don't like to lose.", James Tiberius Kirk
>
> "Yogesh Ketkar" <yogi@pspl.co.in> wrote in message
> news:3E3A00EE.4090102@pspl.co.in...
> > Hi,
> > That's not weird, applications like Notepad, Word etc.
> > do special handling for this.
> > Basically Windows need "unicode character string" ( or UCS2
> > to be more precise) to render text in chinese, when you type
> > in normal edit box irrespective of your locale settings,
> > it tries to render text using AnsiString or single byte string.
> > So unless you do something special(may be derive a class from TEdit)
> > you are not going to get what you want.
> > Actually even i am looking for a straigtforward way by which
> > say chinese string can be rendered in TButton, TLabel, TEdit etc.
> >
> > regards,
> > yogesh
> >
> >
> > KC wrote:
> > > Hi,
> > >
> > > Yes I did. I also changed the font that supports chinese characters.
The
> > > weird thing is that I am able to enter chinese character with notepad.
> But I
> > > can't with Builder editor.
> > >
> > > Regards,
> > > KC
> > >
> > > "Ciprian" <Ciprian.Lupu@fmc-romania.ro> wrote in message
> > > news:3e38fc1c$1@newsgroups.borland.com...
> > >
> > >>"KC" <pine73@icqmail.com> wrote in message
> > >>news:3e38e687@newsgroups.borland.com...
> > >>
> > >>>I am doing application localization from English to Chinese. I am
using
> > >>>Windows 2000 and C++ Builder 6.0. I changed the locale to Chinese
> > >>
> > > (Taiwan)
> > >
> > >>>and run the application. I tried to enter a chinese characters into
an
> > >>
> > >>edit
> > >>
> > >>>box but I got "rubish". What needed to be done here ?
> > >>>
> > >>>Thanks.
> > >>>
> > >>>
> > >>
> > >>Did You put Regional Settings AND Imput Locales on Chinese (Taiwan)?
> > >>
> > >>Ciprian
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
>
>
Technical Details
Message-ID: <3e46811b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e38e687@newsgroups.borland.com> <3e38fc1c$1@newsgroups.borland.com> <3e39fc29@newsgroups.borland.com> <3E3A00EE.4090102@pspl.co.in> <3e3abace$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10297d,8160627fcd9505d8
X-Google-Attributes: gid10297d,public
X-Google-ArrivalTime: 2003-02-09 08:40:26 PST
From: "KC" <pine73@icqmail.com>
Newsgroups: borland.public.cppbuilder.internationalization
References: <3e38e687@newsgroups.borland.com> <3e38fc1c$1@newsgroups.borland.com> <3e39fc29@newsgroups.borland.com> <3E3A00EE.4090102@pspl.co.in> <3e3abace$1@newsgroups.borland.com>
Subject: Re: Edit Box
Date: Mon, 10 Feb 2003 00:25:31 +0800
Lines: 99
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.117.150
Message-ID: <3e46811b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1044807963 219.93.117.150 (9 Feb 2003 08:26:03 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail