Posted 19 years ago
by Guy
Your first question might be why?
Well we still write code in an old 4GL for DOS ported to windows. The front end displays screens that suport the old ASCII line drawing. Therefore the 4GL source files contain these characters and when opened in the editor need to display the DOS ASCII line drawing characters instead of things like Ç ü é.
The long of the short is that we are trying to write an editor/IDE so we don't have to use the old QED32 for DOS which of course supports line drawing.
This required two things. One was to setup the SyntaxEditor with an ASCII True Type font and to read the text files using UTF7 encoding.
1. Download an ASCII True Type font.
For example an ASCII font can be download from here: ASCII True Type font
2. Install font by copying to the Font folder in windows.
3. Setup the SyntaxEditor font to use the ASCII font.
2. Load a file stream with UTF7.- GB
[Modified at 10/22/2005 07:36 PM]
Well we still write code in an old 4GL for DOS ported to windows. The front end displays screens that suport the old ASCII line drawing. Therefore the 4GL source files contain these characters and when opened in the editor need to display the DOS ASCII line drawing characters instead of things like Ç ü é.
The long of the short is that we are trying to write an editor/IDE so we don't have to use the old QED32 for DOS which of course supports line drawing.
This required two things. One was to setup the SyntaxEditor with an ASCII True Type font and to read the text files using UTF7 encoding.
1. Download an ASCII True Type font.
For example an ASCII font can be download from here: ASCII True Type font
2. Install font by copying to the Font folder in windows.
3. Setup the SyntaxEditor font to use the ASCII font.
2. Load a file stream with UTF7.
syntaxEditor.Document.LoadFile(@"c:\logon.4gl",Encoding.UTF7);
[Modified at 10/22/2005 07:36 PM]