Delphi Sdk

Hi,

firstly, I hope that's a fake... In which world are we leaving?...

So, I take my responsabilities and I want to develop my own docklet but my favourite langage is Delphi. Translate a C++ SDK to Delphi is not that hard, and some users, like me, prefer the clear syntax like me. I hope that it will extend the number of developpers of docklets...

With this post you will find a pre version of the SDK, even if there is a big problem during initialisation. When YZD calls OnInitialize, I call YzDockletCreate with all parameters. But it seems that one of these is not correct. The two first are given by OnInitialize parameters, so it should not come from that. So it should be the pointer to the hwnproc, but it seems that everything is allright.

I tried to check it out by myself but it was a failure :) So if anybody is able to point me toward a direction, don't hesitate :)

Thank you!

#36609

I'd like a java SDK, anyone? :D

#36621

:canadian:

I fixed my problem, still have some :

- firstly pointer in OnPaint is compiler specific, as it refers to the object encapsulating GDI+. I would prefer a pointer toward the native pointer used in the API, I have to create a GDI+ object from the HDC, it's a small pain.

- YzDockletChangeIcon works well with relative file from icon directory, but I failed to set an icon from the docklet directory. Isn't it DockletPath:\myfile.png nor DockletPath:myfile.png, none of both worked :(

I feel a little bit alone, but I don't care, Delphi is a good langage too! It's like any langage, it depends how you use it.

See ya

#36669