Changing font, font color in script

Friday, September 7, 2007 by Snap Hook | Discussion: DesktopX

Is there a way to change the text font, font color and font size in script?  I have tried:

DesktopX.Object("Obj to change").font="font to use"
DesktopX.Object("Obj to change").font.color=RGB(25,50,75)
DesktopX.Object("Obj to change").color=RGB(25,50,75)

All I get is an error and frequent DX Builder crashes

Thanks
sViz
Reply #1 Friday, September 7, 2007 8:43 AM
Object.textcolor = RGB(25,50,75)

Object.Setfont "Courier",12,0,0,0,0,0


Syntax for Set font:
Object.SetFont fontName, size, boolBold, boolItalic, boolUnderline, boolStrikeOut, lfCharSet

See Developer's guide: WWW Link   
Snap Hook
Reply #2 Friday, September 7, 2007 9:48 AM
Thanks for the link. I searched all over Stardock Developers Guide and could not find that link. The closest I seemed to be able to get was:SD Link and it really didn't help much. Now I see more detailed links under the Resources tab.

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!



web-wc01