VBCE
Systray Test.zip
(12k)
This example show how to include an icon on the System Tray
of the Windows CE device and how to handle Click and Double-Click
events over that icon.
The example extracts all those icons from a DLL file (stIcons.dll)
using a sequential negative number (starting on -101) to reference
them. The first icon on the DLL may also be referenced as 0.
To build the icon DLL files you may use VC++ with the CE Toolkit
or a special tool like "VBCE Icons Tool" available
here.
To test Static Icon:
 |
Press "Add" to
show an icon (arrows) on the System Tray. |
 |
Each time you press "Modify"
those arrows will change direction. |
 |
You can Click and Double-Click
over the icon and see related messages. |
 |
End the operation by pressing "Delete" |
To test Animated Icon:
 |
Press "Start".
A rotating moon will show up on the system tray. |
 |
Try changing the speed of rotation |
 |
You can also Click and Double-Click
over it. |
 |
Press "Stop" to
end the test. |


The file "stIcons.dll" on this directory has been
built for a MIPS device.
To use this example on a device with an SH3 processor, rename the
file "stIcons.SH3.dll" to "stIcons.dll".
The same way, if you want to test it on the Emulator, rename the
file "stIcons.X86.dll" to "stIcons.dll".
This file, "stIcons.dll", has been added as a RelatedDoc
to the project so it will also be copied (to the root directory
together with the .vb file) when you run the project.
Be aware that some of the functionality is not available
on the Emulator, specifically the Click and Double-Click on the
System Tray icon.
Enjoy,
ComMEDIA, Lda.
|