home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
programs
/
fonts
/
a_q
/
fontwindow
/
!Demo
/
!Help
next >
Wrap
Text File
|
1993-03-02
|
2KB
|
48 lines
These applications give you some idea how to use the
FontWindow module from Basic.
To test how they work, just change screen resolution. And see
how the fonts look from the various applications.
Normal: This does not use the fontwindow module
Simple: This does use the fontwindow module
These demonstrate how to use the fontwindow module with
windows without anti-aliased title bar icons, and menus.
They simple display a window when click on icon bar icon
and have menu dboxes that do nothing.
Note the construction of the colours menu to make it
appear OK with anti-aliased fonts.
The menu will only become anti-aliased in high resolution
screen modes.
Editor: This does not use the fontwindow module
Hard: This does use the fontwindow module
Demonstrate how handle anti-aliased title bars on windows.
A simple multi-document editor. Creates new documents each time
click on the icon bar icon. Deletes document when window closed.
The menu uses a user-specified font. Note the way the menu is
automatically widened when anti-aliased fonts are used.
Try clearing bit 19 from the flags to FontWindow_Initialise, and
see how the menu barfs up. This is a wimp problem.
Note that these programs are quick hacks so don't expect to see
good code --- just exactly how to use the FontWindow stuff.
In particular, there isn't too much in the way of memory management,
error trapping, interactive help, etc...
Have fun,
Cy Booker - 02.03.1993