the same length of strings but different visualization!

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

the same length of strings but different visualization!

Post by huangchenmin »

Dear all:
I tried to add value of field to variable, then var to EDITBOX. the strange thing is all they are 40 character(with red underline). but have different look.
the picture A3 show length of third colunm, you could see thare 60characters for each one of third column. Meanwhile they do not look like having same length.
Therefor, I could not make next columnn left aligement.
Could anyone help!
Best Regards
Attachments
A3.JPG
A3.JPG (135.02 KiB) Viewed 3492 times
A2.JPG
A2.JPG (220.67 KiB) Viewed 3499 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

the same length of strings but different visualization!

Post by Pablo César »

Fonts used are true types ? To get a same visual length you sould used same fonts and true type. Character "i" is not same length than "O" character. All characteres True types fonts are with same length and you should used it for concatenation proposes and in good order for visual proposes. Otherwise use grids to display all these itens.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: the same length of strings but different visualization!

Post by huangchenmin »

Pablo César wrote:Fonts used are true types ? To get a same visual length you sould used same fonts and true type. Character "i" is not same length than "O" character. All characteres True types fonts are with same length and you should used it for concatenation proposes and in good order for visual proposes. Otherwise use grids to display all these itens.
Dear Pablo César
thanks for your resopnd.
Gird is not the one of options because of fail to copy multi items at the same time.
Is that following the way to set font of editbox 'true type' ?

define editbox
........
font 'true type'
......
end editbox

Best regards
chenmin
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

the same length of strings but different visualization!

Post by Pablo César »

Try to use Courier New as Monospaced font Click (here to read concepts).
Here some monospaced fonts most used in programming: http://www.codeproject.com/script/Surve ... id=1450254 and here some more samples: http://chris.widdowson.id.au/?p=22
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: the same length of strings but different visualization!

Post by huangchenmin »

Pablo César wrote:Try to use Courier New as Monospaced font Click (here to read concepts).
Here some monospaced fonts most used in programming: http://www.codeproject.com/script/Surve ... id=1450254 and here some more samples: http://chris.widdowson.id.au/?p=22
Dear Pablo César
My problem had been solved because of suggestion you contributed.
Thank you very very much.
Best Regards
chen min
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

the same length of strings but different visualization!

Post by Pablo César »

I am very happy to know that my advices it´s helped you !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply