Create Custom Interface Members
Here's a list of the custom members we are going to
add:
| Name |
Type |
| AddToTray |
Method |
| TrayTip |
Property |
| DeleteFromTray |
Method |
| UpdateTray |
Method |
| TrayIcon |
Property |
| ShowAbout |
Method |
| RightButtonDown |
Event |
| LeftButtonDown |
Event |
| LeftMouseDoubleClick |
Event |
| RightMouseDoubleClick |
Event |
Click in the next button, the Set Mapping page
appears, we are not going to use it,
click in the next button.
The Set Attributes page appears. We are going to
change the TrayIcon property Data Type to
Picture and the TrayTip property Data Type to String. The AddToTray,
DeleteFromTray and
UpdateTray methods will have a return type Boolean, witch will indicate if
the operation was
successfully accomplished, all the other are left
by default.
Click in next or finish button and exit the wizard, the rest of the code is
done the old fashioned way, by hand!
[ TrayControl ] [ Create Custom Interface Members ] [ The API Declarations ] [ Code Please! ] [ Let the drawing begin! ] [ The Control in use ]
|