Jump to content


Photo

TComboBoxColumn not Unicode capable?


  • Please log in to reply
8 replies to this topic

#1 Roaster

Roaster
  • Members
  • 14 posts

Posted 31 January 2005 - 07:17 PM

Hi,

I thought GridView is unicode enabled. However all TComboBoxColumn derived columns use TStrings instead of a widestring enabled list.

The problem is: I'm using a database (Absolute Database) which can hold unicode records. Now I would like to transfer some strings (wide-) to one of the GridView columns which is of type TComboBoxColumn to display some values to the user.

This is however not possible since the above mentioned restriction.

Can you fix this? BTW: I'm using TNT controls as well. Perhaps there is a chance to define an own column type?

cu,
Roaster

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 01 February 2005 - 02:10 AM

Hello Roaster,

Yes, I know that TStringsList don't support WideStrings. I will need to write my own TStringsList class.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Roaster

Roaster
  • Members
  • 14 posts

Posted 04 February 2005 - 11:40 PM

Hi Boki,

QUOTE
Yes, I know that TStringsList don't support WideStrings. I will need to write my own TStringsList class.


Or ask Mike Lischke for his unicode units or Troy Wolbrink and his TNT controls.

IMO those persons have done this already and perhaps your are allowed to use them in your controls.

cu,
Roaster

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 05 February 2005 - 12:31 AM

Hello,

I think that I can't include some units from this components, but I will try to ask them to help me to made my own units for Unicode.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 MFinkle

MFinkle
  • Members
  • 13 posts

Posted 07 February 2005 - 06:48 PM

You may not be able to include the TNT source code, but you could create TColumn classes that use the TNT controls. If you would do such a thing, I think making the unicode columns optional is important. Therefore, users who don't want TNT, don't have to link to them.

Personally, I feel anyone doing Unicode development in Delphi/C++Builder are using TNT (free) or eldos ($$) components.

MFinkle

#6 wvd_vegt

wvd_vegt

    Master Member

  • Honorable Members
  • PipPipPipPipPip
  • 710 posts
  • Gender:Male
  • Location:the Netherlands

Posted 07 February 2005 - 11:42 PM

Hi,

Please no dependencies on external components.
G.W. van der Vegt

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 08 February 2005 - 12:17 AM

Hello,

I will first try to made something by me, and if that fail, I will try to add some free external package with unicode support from TNT.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#8 MFinkle

MFinkle
  • Members
  • 13 posts

Posted 08 February 2005 - 05:06 PM

Two things come to mind:

1. Re-inventing the wheel is a pain in the butt and buggy. Creating all your own column editors will be a time consuming effort.
2. I again go back to the idea of TGridView having pluggable editors. Any control could be an editor. That way, people could use whatever control package they want to use.


Just my 2 cents,
MFinkle

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 08 February 2005 - 07:01 PM

Hello Mfinkle,

I understand you.

I will see again what to do, if is needed maybe I can put some voting about this smile.gif I will also like to have one new package like gridview_tnt_run and user may chose to install it or not. But in that case he will need to download TNT controls.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users