Page 1 of 1

Tree

Posted: Fri Feb 03, 2012 10:15 pm
by danielmaximiliano
Hi, I have a form with a TREE, which charge a field called "bpolizan" is numeric 10 length.
A display in the Tree, it does not have the same length to make.
try PADR and the result is the same. abideth not in the same column
that failure??

Hola: tengo un formulario con un TREE, en el cual cargo un campo llamado "bpolizan", es numerico 10 de longitud.
al mostrar en el TREE, el mismo no tiene la misma longitud al convertirlo.
intente con PadR y el resultado es el mismo. no queda en la misma columna
en que fallo ????

Code: Select all

nRecno := Recno()
               cPoliza :=  Replicate("-",10 - Len(Ltrim(str(bpolizan))))+ Ltrim(Str(bPolizan))
               main.Polizas.AddItem( "Poliza : " + cPoliza ,  nAsegurado  ,{'Cerrar.bmp','Abrir.bmp'}, nRecno ) 

Re: Tree

Posted: Fri Feb 03, 2012 11:15 pm
by salamandra
Hi Daniel,
The TTF font that you are using it´s not a font with fixed size.
Try using another TTF font file ie. COURIER.
Please take a look at the attached samples:
File 01 = Using font Arial, size 9
01.JPG
01.JPG (35.39 KiB) Viewed 3694 times
File 02 = Using font Courier size 9
02.JPG
02.JPG (36.75 KiB) Viewed 3694 times

[]´s Salamandra.




Hola Daniel,
El problema parece ser que el TTF que estas usando no tiene un tamanho fijo
Intenta usar otro TTF, por ejemplo COURIER.
Da una ojeada en los ejemplos :
Archivo 01 = Usa font Arial, size 9
01.JPG
01.JPG (35.39 KiB) Viewed 3694 times
Archivo 02 = Usa font Courier size 9
02.JPG
02.JPG (36.75 KiB) Viewed 3694 times
[]´s Salamandra.

Re: Tree

Posted: Sun Feb 05, 2012 12:07 am
by danielmaximiliano
Salamandra :
Hi Daniel,
The TTF font that you are using it´s not a font with fixed size.
thank you very much for the data