Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
===============================
Licence:
Do anything you like with it.
Contact:
Bribobs@mail.com
The world is not short of VB SysTray applications. Many use subclassing controls
, which are complicated, prone to crashing and unnecessary. One of the tray form
's standard events can be re- directed to receive mouse click events over the sy
stray. The event usually used is MouseMove. I wanted an application which encaps
ulated all of the functions usually required for systray applications into a sin
gle form, which can easily be included in projects. The main features required a
re:
*
*
*
*
om the Control menu on the form. In that case the form is minimized and hidden.
Again, this is a common feature of SysTray applications. To end the program ther
efore, another form unload method must be invoked, e.g. use of the Unload statem
ent.
The example program has the FrmSysTray form, and three different example startup
forms. frmMainSimple has just about the minimum code required to set a flashing
icon in the tray, and does nothing else. FrmMainIntermediate has a little more
functionality, uses the MeResize and MeQueryUnload procedures, and the TIcon eve
nt. frmMainComplicated exposes all of the features of the program; it allows the
tray icon to be set from a form, picture or image, and to the default. The upda
te interval can be changed, as can the tooltip. The default icons can be directl
y changed also. The MeResize and MeQueryUnload procedures can optionally be call
ed.