To make porting docklets from Object Dock to yzDock a little bit easier, I created this wrapper functions.
You could already have seen this working:
- SysStats docklet is now available for yzDock
- MailCheck2 docklet is now available for yzDock
- Calendar 3.4 is now available for yzDock
I will contact other OD-docklet-developers too and ask them to port their docklet to yzDock
With these wrappers, you don't need to rewrite your docklet, but simply use the od2yz.h instead of object docks DockletSDK.h. Make sure you have yzDock SDK 0.83.
Also, do not forget to change the DOCKLET_DATA* type to the class your are using ( you can use a typedef).
Next, take a look at the Object Dock event functions used in od2yz.cpp and where necessary, change them to the functions you are using for the events. For example, OnProcessMessage() could point to myClass::ProcessMessage(); so than you need to change that.
Maybe after this, it needs a little bit of fine-tuning, but after all, it will reduce the work you have to do for a port a lot.
Questions: PM or e-mail (averhoev.2@hccnet.nl) me.
Download:
http://mpj.tomaatnet.nl/od2yz/od2yz.h and http://mpj.tomaatnet...od2yz/od2yz.cpp
Enjoy,
Andreas
PS.Y'z is using DockletPath: but I ignored that and implemented my own icon lookup function that should be similiar to the one OD is using.








Sign In »
Register Now!
Help

MultiQuote