sdnetlogo.gif (3300 bytes)

 

Skins/Icons/Themes Purchase | Chat | Community | Stardock.com

 
 

Options

Object Desktop

Information

Support/FAQ

Screenshots

Tutorial

Developers

Purchase

 

Downloads

disk.gif (114 bytes)  DesktopX

 

 

  Themes

 

A component of Object Desktop

 

 

Developers

For developers, DesktopX provides a wealth of opportunity. By default, DesktopX comes with a long list of object classes that are enough to create a typical desktop environment. Examples of classes are "short cuts" and "URLs" and various common system commands. But for developers who want to go further, there are two routes to extend what DesktopX can do.  The first route is called DXScript. The second route is to create an SDPlugin which can be used in DesktopX, ObjectBar and any other program that conforms to the SDPlugin specification.

DXScript

 

DXScript is actually an SDPlugin in itself. But it's a very special SDPlugin in that it allows DesktopX to access COM objects as if they were existing DesktopX classes.

When a user has created a script, they can then enable it by right clicking on their object and choosing to enable. They can still access the DX properties of that object by holding down the ctrl key which will temporarily disable the script so that it can be manipulated (moved, resized, modified).

Windows comes with hundreds of COM objects already installed. One way to think of COM is as Microsoft's own "plugin" format for third parties to use. The advantage of having DesktopX able to use COM objects is that software developers can not only create potentially useful things with DesktopX but also help their software careers since knowing COM and .NET are skills heavily requested in the job market. This is a big advantage over learning some proprietary scripting or plugin format. Users interact with these COM objects using the scripting language of their choice (i.e. VBScript, Javascript or whatever other scripting language is installed).

There are some drawbacks, however. Unlike SDPlugins, COM objects are not easily distributable. For instance, if your DesktopX object makes use of the Microsoft Spreadsheet V10 COM object, then it may not work on someone else's system since you cannot guarantee that every system has Microsoft Office XP installed. So when using DXScript, this is something to be aware of if you plan to share your object with other users.

But obviously, if you know VBScript or JAVAScript, then DesktopX becomes a very powerful yet easy way to build custom applications and custom environments.

DesktopX Script Documentation
DesktopX Script Tutorial
   
   

 

SDPlugin

 
SDPlugin is an alternative way to extend the features of DesktopX. It is a plugin standard used by Stardock's programs and available for license by third parties. An SDPlugin is a .DLL file created by users in their favorite compiler. While it does require learning the SDPlugin APIs, it is language neutral (any language that can export functions) which means you can make your plugins with C++, Delphi, etc. 

The advantages of using SDPlugin require some explanation. DesktopX objects are designed to be exported and shared with others. SDPlugin has been designed to be the same way. So if you use an object that relies on an SDPlugin and export it, that SDPlugin will be included as part of that object. Unlike the DXScript case where a user may not be able to use your object because they don't have a particular COM object on their system, an object that relies on an SDPlugin will work because the SDPlugin is part of the object. Of course, this also means that your objects will be slightly bigger since it has to include the .DLL file inside the object (.dxpack).

Another advantage of SDPlugin extensions is that they can directly call Win32 APIs. DXScript extensions can only use whatever is available in DXScript itself or in the methods available to any COM objects you access. SDPlugins are DLLs in themselves and hence can do anything that any other DLL can do.

As a developer, you'll have to pick which way works best for you. There is no "better" way involved. Each method solves a different set of problems.

SDPlugin Documentation
SDPlugin.h file (you need this to create a plugin).

SDAnalogClock Analog clock example
SDScroller Scroll an object example
DXTrash Recycle bin checking example.
   

 

 

 

 

© 2002 Stardock.net, Inc. All rights reserved. Email webmaster@stardock.net if you have questions, comments or suggestions. [ Privacy ]

DesktopX is a trademark of Stardock Corporation