Graphics Library Updates

Modifications made Monday 24th June 2002

Made the GetNextEvent function (and its friends) able to detect the special non-ascii keys and treat them just as any other key-press. Also added support for Clipping (see description below).

Modifications made Thursday 13th June 2002

The most important change is that Show() is no longer needed. All drawing operations now appear on the screen immediately, the previously essential Show() function now does nothing. This modification can spped up and simplify a lot of programming.
        Additionally, a simpler way to receive mouse clicks, keyboard presses, and other events has been added. All the old methods still work, but the new ones are much easier to use, and give extra functionality. Also an Exit() function for terminating a program. GetSize is now properly capitalised for consistency.

Modifications made Thursday 13th June 2002

Minor change: 90 degrees is not representable exactly enough in radians for lines to come out straight when drawn using DrawLineLength with a heading of either 90, 180, or 270 degrees. This problem has been avoided now.

Modifications made Thursday 6th June 2002

Mainly just to repair demage caused when a download failed but I didn't notice; some functions went missing from the 4th June version. One extra addition: the read_..._no_echo functions were not adequate for all possible needs: they only turn off the echo; special characters such as backspace and control-C are still caught and given special treatment. The new function:

Modifications made Tuesday 4th June 2002

Fixed the .BMP file support so that it handles microsoft-made files that slightly abuse the format. Also added keboard reading functions that do not echo the character typed: These functions work exactly as the existing functions with the same names (without the "_no_echo" part), except that the typed character does not appear in the main text window after it has been read.

Additions made Thursday 30th May 2002

A test is now performed automatically when a program starts, to make sure that the .cpp and .h files are for the same version. This can check that the versions are the same, but can not check that they are the latest versions. Also added functions for reading individual mouse presses and releases rather than complete mouse clicks.

Additions made Saturday 25th May 2002

Added menus to console window, with option to save console window to text file, or save graphics window as .BMP file. Added support for reading graphics from .BMP file, and later drawing in window, and for saving portions of window in .BMP file. Added font lister. Added dialogues for choosing files, reporting errors, and reoprting information. Added support for Threads.

Additions made Tuesday 21st May 2002

Added support for drawing and filling rectangles, relative movement and line drawing, selecting and changing fonts, and measuring written text.

The positioning of text drawn by WriteText has been slightly changed, the text will now appear a few pixels higher in the window than it used to. This is so that the text measuring functions and the rectangle drawing functions are compatible. See the last entry under today's date for an example.