Your DesktopX Documentation Resource Guide

Documentation Home

Quick Start

User's Guide

Developer's Guide

Resources

Tutorials


How to create a really simple clock widget

  • Make sure DesktopX is in authoring mode. Right click the DesktopX systray icon. If you see "Switch to Authoring mode", then select it.
  • Right click again the DesktopX systray icon and select "New Object".
  • A new object is created and the Properties panel for it is opened.
  • Go to into the States tab and changes the Appearance type to Text as shown below.

  • Tweak the font and text options as you wish.
  • Go back into the General tab and click New in the Script section.

  • The DesktopX Script Editor opens.

  • Now copy and paste the following code into the editor:

'Called when the scriptis executed
Sub Object_OnScriptEnter
Object.SetTimer 444, 1000
End Sub

'Called when the script is terminated
Sub Object_OnScriptExit
Object.KillTimer 444
End Sub

Sub Object_OnTimer444
Object.Text = Now
End Sub

  • Close the editor. Click Ok in the Properties panel.
  • The object should appear similar as this one:

  • Sure, there is more work to do regarding the formatting, but this is only a simple tutorial.
  • You want now turn it into a widget.
  • Right click on it and select Export...
  • Choose "Export as a widget". Click Next.
  • Enter some basic information like Widget name, Author and Accessibility.
  • Click Next and browse the Save as File name, then click Finish.
  • The beauty of Widgets is that they are stand alone applications, so they can be run without DesktopX running in background. You only need to have DesktopX installed. Plus they can be optionally accessed via System tray or Windows taskbar.
  • Close DesktopX now.
  • Run the newly created EXE.
  • You can see the widget appearing in the very same location.
  • You can right click and access widget options.

  • Most options should be pretty straightforward, however they are fully covered into the DesktopX documentation.

7/29 

SkinStudio 6.2 Released

7/25 

A God Has Fallen - New Demigod Trailer Released

7/24 

Sins of a Solar Empire v1.1 Beta has Arrived

7/23 

Stardock Releases New WindowBlinds 6.2 Update

7/22 

Stardock Releases The Political Machine v1.04 with New Characters

7/22 

Stardock Releases MyColors 2.5

7/17 

DesktopX 3.5 Officially Released

7/11 

Corel WinDVD 9 and Painter X Now Available on Impulse!