Brass Plugins: Mime Developers Guide
You've created all the pieces needed for a Mime
gesture plugin. Let's test it!
Using the plugin
Copy "TestPlugin.NFO" and "TestPlugin.DLL"
to the Plugins/Mime directory in the Brass install location. Run
Brass, and go to the gesture configuration of Mime. If you've done
everything correctly, your new plugin will show up in the "Available
Plugins" tree:

Select ShowAboutBox and click the right arrow button. Create a
gesture for it - I'll use mouse up, mouse right. Save the gesture,
confirm the new ShowAboutBox action is in the Configured Gestures
tree, then OK the gesture configuration dialog.
It's time to test our application! Enable the Mime plugin, then
run the TestApp.exe (or TestAppMFC.exe, depending which one you
chose). If you used the sample workspaces & code provided, did
you remember to comment out the criteria you didn't need from the
plugin DLL?
Switch to the TestApp, make the mouse up, mouse right gesture and
hey presto - the About dialog appears!
Although that may have seemed like a lot of work, remember that
we created an app and the DLL from scratch. Now that you know how
to do it you can add gestures to your applications in minutes! Take
a look at the summary page for a quick-reference guide.
|