Article View: borland.public.delphi.database
Article #148DB-aware components: OnGetText using WideString for a simple string Field
From: ckirchho
Date: Mon, 28 Aug 2006 13:36
Date: Mon, 28 Aug 2006 13:36
30 lines
2393 bytes
2393 bytes
Hello, I am developing with Delphi 6. I made an Access 97 database, and I connect to this database through an TADOConnection using the Jet Engine. Because I want to be able to support Unicode - and as far as I know Access 97 MDBs do not support that - I store some fields values in UTF8 format. I use a TDBAdvStringGrid to show the contents of one table in a table kind of view. It has an event called OnGetDisplWideText that allows me to generate a WideText that is drawn into a cell no matter which field type the field corresponding with the actual cell really has. For a closer look at a record I want to use the Delphi DB-aware components like TDBEdit. That component doesn't have an event similar to the one of the TDBAdvStringGrid. I saw that a TField has an event called OnGetText. But this has a string as a parameter, zhus I cannot calculate a WideString out of the fields contents and return that. Does anybody know a way to do that with just the components that I have. Is there a simple way to programm an extended TDBEdit derived from the normal TDBEdit that would let me do it. Or are there any freeware components somebody is aware of? Thanks in advance for answering my questions. Regards, Christian Kirchhoff
Technical Details
Message-ID:
<1156772161.654643.86770@75g2000cwc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!75g2000cwc.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 115d96,ef5a963480fb3090,start X-Google-Attributes: gid115d96,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!75g2000cwc.googlegroups.com!not-for-mail From: ckirchho@directmedia.de Newsgroups: borland.public.delphi.database Subject: DB-aware components: OnGetText using WideString for a simple string Field Date: 28 Aug 2006 06:36:01 -0700 Organization: http://groups.google.com Lines: 31 Message-ID: <1156772161.654643.86770@75g2000cwc.googlegroups.com> NNTP-Posting-Host: 212.202.251.162 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1156772167 16614 127.0.0.1 (28 Aug 2006 13:36:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 28 Aug 2006 13:36:07 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 75g2000cwc.googlegroups.com; posting-host=212.202.251.162; posting-account=s4Ml-AwAAABfGzGl0A_RaLm5mf2BxD4i