Nevre mind dont want it
XWindows Dock v5.2.3
could somebody convert this to new dock please
Do you have permission for updating from the original creator of this skin (sorry, I don't recall who created it)?
I could do the conversion but I'm unsure if posting it'd be allowed...
p.s.: it doesn't have a different icon for 'StackOff'; if I'm allowed converting it, should I keep it or use another, better fitting one?
So, kflakes15, any answer?
relized this is not the dock i thought it was i thought it was wrz dock for some reason so never mind
np. ![]()
Docklet-Coding:
The Sample-Docklet uses gdipapi, where do I get this unit? (It's for GDI+, I guess) My delphi did not find it, google didn't help me, too.
unit XDockletSrc;
interface
uses
Windows, SysUtils, Forms, Dialogs, GDIPAPI;
Atreiu, you can download it here:
http://www.progdigy.com/files/gdiplus.zip
More info here:
http://www.progdigy.com/?page_id=7
![]()
Atreiu, you can download it here:http://www.progdigy.com/files/gdiplus.zip
More info here:
http://www.progdigy.com/?page_id=7
EDIT: I did get the GDIPAPI installed, but the compiler shows an error in XDockletSrc.pas on
line 130: GdipCreateSolidFill(ARGBMake(255, 0, 0, 0), Brush);
E2003, ARGBMake is undeclared.
Mantonga, can you help me? I guess i still have some problems with GDI+...
I use this module
Thanks Bobah, this one is working ![]()
(PS: I still could need Sources of the existing Docklets to get into development faster...)
(PS: I still could need Sources of the existing Docklets to get into development faster...)
I'm not likely releasing sources of XWeather docklet, sorry.
But, here is sources of XClock: ![]()
http://www.matiasmoreno.com.ar/XClock-sources-2008-11-07.rar
I encourage people to not have the brilliant idea of merely adding an About dialog to this and republish it. It's not meant to be open source.
I do encourage coders to use this as an aid to write other docklets (even a digital clock) (as long as it is skinnable
).
Edit:
BTW the sources say icons_bug, it is not really a bug yet (XWindows Dock does not dispose the icon, but the documentation (I mean XDockletSrc.pas) doesn't specify if the docklet is responsible to dispose the icon).
But, here is sources of XClock:![]()
http://www.matiasmoreno.com.ar/XClock-sources-2008-11-07.rar
Thanks mate, that's enough. I'm working on a "show desktop"-Docklet (with some special features), but currently I have a problem: The docklet is working fine, when I first add it to the dock, but after i restart the dock, the docklet "is gone" (there still is an empty space, but it has no functionality and only the default context menu is shown). If i delete the empty space via context menu, and add my show-desktop again, it's working again. But only until the next restart...
The same happens with the sample code from XDockletSrc.pas
Any idea, what that is?
EDIT: The mysterious empty-space docklet is a default shortcut-docklet. I can edit it just like any other shortcut on my dock. Why was my own docklet overwritten by this one?
EDIT2: I found the source of the problem, but not the solution:
XDocklet.SetName('XDesktop'); is somehow misinterpreted. It messes up the name for the Docklet (see screenshot below). Thats why XWinDock can't find it at a restart. If I use XDocklet.SetName('X'); everything is working fine, because one letter can't be messed up. What's the problem here?

EDIT: I did get the GDIPAPI installed, but the compiler shows an error in XDockletSrc.pas online 130: GdipCreateSolidFill(ARGBMake(255, 0, 0, 0), Brush);
E2003, ARGBMake is undeclared.
Mantonga, can you help me? I guess i still have some problems with GDI+...
Ah, sorry atreiu, I use this pack but I really didn't test it with docklets :confused:
Ah, sorry atreiu, I use this pack but I really didn't test it with docklets :confused:
No Problem! :-)
EDIT2: I found the source of the problem, but not the solution:XDocklet.SetName('XDesktop'); is somehow misinterpreted. It messes up the name for the Docklet (see screenshot below). Thats why XWinDock can't find it at a restart. If I use XDocklet.SetName('X'); everything is working fine, because one letter can't be messed up. What's the problem here?
It looks like a Unicode - ASCII problem.
Try these:
XDocklet.SetName(String('XDesktop'))
XDocklet.SetName(WideString('XDesktop'))
One of these should do the stuff. I'm at work now so I haven't access to the code.
I've compiled XDocklet (the example) at home and it works, so it is strange it doesn't work in your case.
What Delphi version are you using? Check that your Delphi version uses 8 bit chars for Strings.
I can't remember if XDocklet.setName uses strings or widestrings as arguments.
BTW for anyone interested in writing C++ XDocklets, I've made some progress on headers and stuff.
To call a Delphi object method, you'd do:
void (xdocket_method *) (void * this, ...);
xdocklet_method (xdocklet, ...)
To create a Delphi compatible string:
struct string {
int ref_count;
int str_length;
char data[0];
};
void * new_string (const char * text) {
int str_length = strlen(text);
struct string * str = malloc (sizeof (struct string) + str_length + 1);
str->ref_count = 1;
str->str_length = str_length;
strcpy (&(str->data), text, str_length);
return &(str->data);
}
void free_string (void * str) {
char * p = str;
p -= sizeof(struct string);
free (p);
}To pass the string to some method:
void (xdocklet_setstr *) (void * this, int Index, void * string);
void * str = new_string ("Foo bar");
xdocket_setstr (XDocklet, Index, str);
free_string (str);
Please note I haven't reverse-engineered WideString strings yet, that's why I haven't published a XDocklet.cpp yet, but I hope I can soon.
First version will probably use MinGW, next I'll try to compatibilize example with Visual C++ 2005.
It looks like a Unicode - ASCII problem.Try these:
XDocklet.SetName(String('XDesktop'))
XDocklet.SetName(WideString('XDesktop'))
One of these should do the stuff. I'm at work now so I haven't access to the code.
I've compiled XDocklet (the example) at home and it works, so it is strange it doesn't work in your case.
What Delphi version are you using? Check that your Delphi version uses 8 bit chars for Strings.
I tried both of your suggestions, changed nothing :-(
I don't understand this... There is nothing different from your line in Clock-Docklet.
I'm using Delphi 2009.
PS: XDocklet.setName uses strings, not widestrings as arguments. Widestring result in an error at XWinDock-Startup.
atreiu: We programming using Delphi 7... so of course you can have same problems...
atreiu: We programming using Delphi 7... so of course you can have same problems...
AH! Good hint! Delphi 7 uses AnsiStrings as Strings. Delphi 2009 uses UnicodeStrings as Strings.
I just changed everywher in the declaration to:
SetName: function(const Name: AnsiString): Boolean stdcall of object; // XDocklet's name
(AnsiString instead of String)
And now its working. Thanks you both! ![]()
@matonga: thanks a lot for placing XClock and XWeather docklets at the repository thread; this helps enforcing the use of that thread for publishing XWindows Dock's goodies! ![]()
For those interested, both docklets can be found here: http://www.aqua-soft.org/board/showpost.ph...782&postcount=9
Published a First Testing Release of my "Show Desktop" Docklet in the XWinDock-Releases Thread.
Currently no special functionality. Look at the Link above for further info.
@bobah: I think I know what causes that 1 pixel vertical line to appear between 'MiddleBorder' and 'RightBorder': original transparency of those images (dock background).
I know you recommended not using transparency, as the dock itself controls it, but this can be too limiting at times; so, I ask you to verify the possibility of allowing the background to have transparency in next releases of the dock. Please, let us know if you can confirm that this is indeed the culprit of the problem.
Edit:

Aqua-Soft Forums