Page 1 of 1

How can I use box style characters from fonts? (Like DOS)

PostPosted: Thu Jun 29, 2006 11:37 am
by Maurilio Viana
Is possible use characters to draw box (an easy way) like old times of DOS?
I refer to Alt + 201, Alt + 202... Alt + 177, etc
If I press Alt + 201 (for example) in MS Word or OpenOffice Write the box character is displayed. But if I try use it in my application other character is displayed (in gets, reports, etc.).
I used a font editor to view a .TTF file and the box characters are into it.
How can I "access" these characters?

Regards
Maurilio

PostPosted: Thu Jun 29, 2006 3:48 pm
by RAMESHBABU
Hi Maurilio

I was having the same requirement earlier. I give my previews and
printouts to my users purely in DOS. I use TDOSPRN for printing as well
as preview of the outputs.

My application in ca-clipper was having some outputs with boxes and
I wanted my users of the same application in windows to have a similary
feel and look of my dos application outputs.

I have taken the help of a FONTEDITOR and copied COURIER font to some
name and edited the characters exactly as dos based box characters of
those ascii values which are equivalent to their dos ascii values.

I referred the same ascii values to draw the boxes in my windows based
application and I could get the required output which is attached here in
the link.

http://hyperupload.com/download/029f2f5 ... r.jpg.html

- Ramesh Babu P