
How to compile with GCC:
cd tools        // To create jp_proto.exe
make jp_proto.exe
cd ..		// To create jptui.h/libjptui.a
makegcc.bat
cd tools
make            // To create all tools programs like help compiler etc
cd ..		
cd jpdemo       // To look at the demo
makegcc.bat	
jpdemo          
cd ..   	
cd docs         // To create HLP file
../tools/jphc.exe jptui.src ../tools/jptui.hlp
cd ../tools
jpdoc.bat	// To view JPTUI help

I added 3 patches (2 applied in 4.0l) and jp9x16.fnt - modified font for 
third patch (SCREEN.PAT). Description is below.

Michael N. Filippov (michael@idisys.iae.nsk.su)

// -----------------------------------------------------------------------

CONST.PAT: 

* Const modifier in functions arguments and variables processing according to
  C++ style.
* Added  "~Continue"/"Yes To ~All"/"~Review" to jpvocab.eng/h.
* Removed TPasswordEditZone (TPassEdz.h/cpp), password input is an option in 
  TEditZone.
* Fixed WaitKeyRelease() in keyboard.cpp: keybord could hang in this procedure.
* mouse.cpp/h #define GMOUSE_1ST_CHAR moved to header to use in modified 
  ToScreenChar().
* mousegcc.cpp: fixed inlined assembler code and comments.
* tframe.cpp/h: added set_frame_color() to change default color.
* tgauge.cpp/h: added set_gauge_attributes() to change default background/foreground
  colors.
* thelptz.cpp/h: disabled cursor in help THelpTextZone, made selected help topic 
  jump from the last item to the first, RIGHT/DOWN/LEFT/UP used to navigate 
  help too, INSERT doesnt redefine cursor type.
  thelpwnd.cpp: removed default close buttom from the left-up corner.
* tobject.h: added m_set_background() to change colors of another objects.
* Hacks in tools/jphc directory to make it compile with gcc.
* twindow.cpp/h: added user defined colors and shadows 
* Fixed RunningUnderWindows() in windows.cpp to to determine if running under
  Windows NT and Windows 2000.
* Fixes in tools/jpdemo programs to compile with changed version, removed 
  all executables that can be compiled.

VERSION.PAT:
* Changes version from 4.0k to 4.0l in all description files.

SCREEN.PAT: this patch is separated (and not aplyed) because it needs 
some changes in font processing (and I had to draw several symbols too).
The problem is: standard JPTUI redefines all symbols, it means for example 
that you cannot have national letters. Fix: created list of needed 
(used by JPTUI) symbols like ADDON_CHAR_MIDDLE_UP_LINE or GMOUSE_1ST_CHAR, 
and procedure DefineChars() changes font only them. This is a dirty hack 
because in some screen modes no symbols should be redefined (standard text
mode for example) and no way to store/process this information yet. So 
dont apply this patch if you dont need it badly and use modified font 
(patches/jp9x16.fnt).

* Not all symbols are redefined, only needed.
* Written ToScreenChar(): converts all redefined font symbols to '.'.
* Fixed WaitRetrace(): too slow redrawing.

