source/pascal/FMenusExample.hqx

Source in C, Pascal, etc. Note: apps that come with source should be included here as well as the appropriate software directory.
User avatar
Info-Mac
Administrator
Posts:13716
Joined:December 21st, 1988, 11:00 am
source/pascal/FMenusExample.hqx

Post by Info-Mac » November 23rd, 1992, 11:00 am

Download: http://archive.info-mac.org/dev/src/fme ... le-pas.hqx

_______________________________________________________________________
Peter N Lewis Ph: +61 9 368 2055
This is some example code to demonstrate the use of MyFMenus.unit.
This unit implements FMenus in a similar way to the Finder, which
allows decoupling of the menu position from the code that executes
the menu's command. The example program is not a full shell, it
simply implements the Menus, and each menu selection prints a
message to the console window. It should be fairly easy to understand.
I've used this code in several programs, and it works quite nicely,
avoiding the need to keep changing constants in the code every time
you add a menu item.

TopSoft is working on an advanced version of this (written in C
for some strange reason), if you are interested in that, or other
things that TopSoft is doing, check out the ftp site at
syrinx.kgs.ukans.edu in the /topsoft directory, or ask to join
the mailing TS mailing list at [email protected]
(hopefully you'll join inbetween the flame wars and not in the
middle of one :-)

[Wouldn't it be nice if this came out comp.sources.mac?
Too much to ask I guess]

Hope its useful to someone,
Peter.

FMenus Example v1.0.0 Copyright 1992 Peter N Lewis
Post Reply