DX Questions - Ontop - System Prefs - Version - HELP SD!!!
Tuesday, January 22, 2008 by RomanDA | Discussion: DesktopX
Standard Preferences (Z-ORDER):
Is there a way to set/change Z-Order of the entire widget from a script?
I am not a fan of the "standard properties" box, I like it better to have my own setup.
I would like to be able to set the Z-Order to "Always on top" then back to "Normal Level" from a script.
About Dialog Box:
Is there a way to pull the VERSION from this dialog box? It has to be out there somewhere, its the version info we put into the gadget/widget when we export it.
Heck, why not ALL the info... something like.
widget.about.version
widget.about.author
That possible? Or does it exist somewhere.
Thanks in advance for any help.
(ok, now Vad, Tiggz are gonna come in here and make me look like a moron cause all this is out there somewhere, and i just dont know how to find it, but i can live with that, hell if Zu can make widgets, even I can learn.)
Reply #4 Wednesday, January 23, 2008 6:41 PM
- Dim blnPosition : blnPosition=False ' Or 0 I always set a default externally
- Sub ChangePosition
- If blnPosition=False Then
- blnPosition=True
- Object.OnTop
- ElseIf blnPosition=True Then
- blnPosition=False
- End If
- End Sub
For your second question maybe look at the Shell.Application object but, I'm not sure how this might be with Vista?
Edit: I'd like to see an Object.OnBottom namespace added. This could come in handy sometimes.
Reply #5 Wednesday, January 23, 2008 8:15 PM
Ok, once something is made "ontop" how do you undo that? There is nothing that i can find to do that. Except in the Preferences dialog box, that z-order. Thats what im looking for.
Im not sure about the shell.application? where/what is that?
Reply #7 Wednesday, January 23, 2008 10:10 PM
As for the version info etc - put some constants at the top of your script that match what you will enter in the fields when you export it.
Reply #8 Wednesday, January 23, 2008 11:28 PM
The Shell.Application object exposes some features of the Windows Shell to script. A good example is you can move/delete files and display the standard dialog you would get from the right click menu. Hope that helps.
Here's a MS link: Scriptable Shell Objects
Reply #9 Thursday, January 24, 2008 6:34 AM
Been there one that.. i just want to try and only have it in 1 place, and since im entering it when i export, why do i have to put it in my code too? Lazy? no, i just want them to match.
Ok, i was just thinking you found some other use for that with the DX widget.
Anyone from SD Dev out there?
Reply #10 Thursday, January 24, 2008 8:52 AM
Sometimes you just gotta roll with it
Sorry I couldn't be more helpful, dx is an intricate web of functionality and compromise
Reply #11 Thursday, January 24, 2008 6:46 PM
you got that right bud.. its all good.. it will work out somehow.. who knows.
Reply #12 Monday, February 25, 2008 8:28 PM
Also.. the System tray/task bar does not seem to work when you export things as a GADGET.. is that the norm, because that not good. HELP?????
Reply #13 Saturday, March 1, 2008 10:18 AM
create object a set at normal, duplicate it, set at ontop, then, control visibility any way you wish, and, you should be good to go.
Why isn't it easier to see, I'll never know, it just came to me now. Weird.
Good Luck Eddie
Reply #14 Saturday, March 1, 2008 5:03 PM
Reply #16 Saturday, May 3, 2008 4:05 PM
You have two/three base objects with a transparent 1x1 image (not no image at all, as this seems to make everything act weird on Always on Top), each object with a different Z-Order setting through the DX GUI editor. When you want to change the Z-Order, just set the parent of all the children objects to the base object that you want, and make sure that you aren't changing the parent of the children of those children, etc. The whole widget should be at a different level now.
If you want to allow the object to be movable, you could just make the position of the second base object equal to the first base object before transferring the children (I haven't tried this yet, though).
Hopefully Stardock will realize at some point that it would be great if you could directly change the Z-Order through script, however...
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Tuesday, January 22, 2008 9:00 PM
So much becomes clearer.