I am in the very early stages of developing a concept into software. I want to trap some toolbox calls (specifically CALL TEXTFACE, and others related) and handle them before they are passed to the toolbox. I have no idea how to do this. I assume this has to be done with an extension (INIT). The other problem is that I need to implement a user interface to allow some preferences setting to be made. I assume this will have to be done with a Control Panel. Will these (Control Panel/INIT) work together (via some global address?) or can a Control Panel trap toolbox calls without needing an extension. I've looked at the code samples provided with FBII. It looks like enough to get started, but some input from the experts would be very much appreciated. Thanks in advance!
I've been working on a similar project for some time now (although with other toolbox calls). It takes a lot more work than it seems at first, especially if you want to accomplish more than one patch in the same code resource.
You may patch the low level hooks in the application heap (not the toolbox) or you may use custom links in Text Edit. You can find an example of how this is accomplished in PG since it is the method used to create inverted, strike thru, super-script, and sub-script styles.