[Lazarus] I cannot use System.Length() to calculate visible width of string, now !

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jun 20 22:03:11 CEST 2008


On Fri, 20 Jun 2008 13:23:04 +0400
"Андрей Гусев (Andrey Gusev)" <ag888 at rambler.ru> wrote:

> Felipe Monteiro de Carvalho пишет:
> >> Solution is clean: i must use check ifdef'ed WindowsUnicodeSupport
> >> to choice between UTF8Length()/Length(). But maybe it already
> >> implemented as universal and conventional solution.
> >>     
> >
> > Why do you want to support disabled WindowsUnicodeSupport?
> >
> >   
> Caption strings in some forms of my project must be defined
> dynamically. 

Do you mean like this:
http://wiki.lazarus.freepascal.org/Translations_/_i18n_/_localizations_for_programs#Translating_Forms.2C_Datamodules_and_Frames


> Unit code, responsible to these strings definition and
> visible elemsnts dosposal, is universal and low-level.
> I wouldn't like make assumtions  about  strings encoding in that
> code. That is my problem.
> Have Lasarus way to solve it ?

Why not use only UTF-8 like the IDE?

Mattias




More information about the Lazarus mailing list