Mail object problem and text object problems
Friday, January 6, 2006 by DjStoic | Discussion: DesktopX
First, I'm having problems with my Killer mail object. My mail server settings don't save if I change my theme at all. That's a bit of a pain. I used to be able to make the objects persistent, and that would save my settings, but now I can't do that. Anybody know how to fix that?
My second problem is with the text objects I use. My skills are pretty rudimentary, but I've created my own theme which is very functional. Most of my objects are simply text, with drop down menus and other shortcuts and such. Everything works great as long as I use a dark wallpaper--I just make all my text white and it shows up fine. Any bright wallpaper, though, and my objects tend to blend in with the background. What I'm wondering is if there's a way to make text have contrast no matter what color my background.
Thanks for any help
Reply #2 Sunday, January 8, 2006 4:37 PM
Reply #4 Tuesday, January 10, 2006 10:17 AM
Then its not looking at the widget at all but in a set place in the registry.
I got the following code out of something, i have no idea what anymore..
Dim EBRegistryPath, W_SH
EBRegistryPath = "HKCU\Software\Stardock\DesktopX\Widget\MyWidget\"
Set W_SH = CreateObject("WScript.Shell")
Sub loadsettings
SportType = W_SH.RegRead(EBRegistryPath & "SportType")
Max_Tiles = W_SH.RegRead(EBRegistryPath & "MaxTiles")
MaxGameCount = W_SH.RegRead(EBRegistryPath & "MaxGameCount")
BackStyle = W_SH.RegRead(EBRegistryPath & "BackStyle")
Max_Tiles = INT(Max_Tiles)
MaxGameCount = INT(MaxGameCount)
End Sub
Sub savesettings
W_SH.RegWrite EBRegistryPath & "SportType", SportType, "REG_SZ"
W_SH.RegWrite EBRegistryPath & "MaxTiles", Max_Tiles, "REG_DWORD"
W_SH.RegWrite EBRegistryPath & "MaxGameCount", MaxGameCount, "REG_DWORD"
W_SH.RegWrite EBRegistryPath & "BackStyle", BackStyle, "REG_SZ"
End Sub
Function CheckReg()
On Error Resume Next
Test = W_SH.RegRead(EBRegistryPath & "SportType")
If Err.Number = 0 Then
LoadSettings
Else
W_SH.RegWrite EBRegistryPath & "SportType", "NFL", "REG_SZ"
W_SH.RegWrite EBRegistryPath & "MaxTiles", 8, "REG_DWORD"
W_SH.RegWrite EBRegistryPath & "MaxGameCount", 20, "REG_DWORD"
W_SH.RegWrite EBRegistryPath & "BackStyle", "Gray", "REG_SZ"
End If
On Error GoTo 0
End Function
This is not 100% but its a start. Look at some of the other widgets to see how they are storing info in the registry.
Hope this helps!
Reply #6 Friday, January 13, 2006 9:21 PM
Reply #7 Monday, January 16, 2006 8:40 AM
Re the registry, I personally use the Local Settings area as this means that different users can store different preferences.
Cheers,
Martin
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 Saturday, January 7, 2006 2:01 PM