EventConnection for PureBasic
Overview
(c) 2003 - Franco's EventConnection Library version 1.0 for PureBasic 3.7
This Software should work on all Window-OS versions.
This Library is small (under 2Kb) and easy to use, but very effective and powerful. Use it if you like to write EVENT DRIVEN code.
It let's you declare EVENT FUNCTIONS for MenueItems, ToolbarButtons and Gadgets. You should use this Library also for Static Gadgets, but only for the automatic numbering of them (use the NoEvent() command for it).
A MenueItem, ToolbarButton and Gadget Number is only used once (...depending on the coding style, you have to use the ResetEventList command). If you delete a Window and the application is still running, the next time the Window will be opened the same numbers for this Window should be used.
If you use this library all MenueItems, ToolbarButtons and Gadgets must be served with it.
A Event Function MUST be a SUBROUTINE, this is anyway the fastest way to call Functions.
You can call every Procedure within a Subroutine.
This Library is written in C because of the lack of PureBasic to write such Libraries.
Command Index
OnEvent
NoEvent
CallEventFunction
Keep In Mind
If you use this Library, ALL MenuItems, ToolbarButtons and Gadgets (Active and Static) MUST be served with it.
If you don't do so, your Application becomes unstable.
Look at the provided Example Files to see how this Library should be used.
Suggestions and Comments are welcome.
Please report bugs to fsw@comcast.net.
License
This Software is released under the Franco's Softly Ware License (c) 2003
Read the License carefully before using 'Franco's Softly Ware' Software
And as always: YOU USE THIS SOFTWARE AT YOUR OWN RISK