One object to change fonts of other objects?

If only I knew where to steal code from . . .

Saturday, December 19, 2009 by ZubaZ | Discussion: DesktopX

In another thread the question came up asking if all fonts in a desktop theme could be changed.

I suggested that another object could be created that could run through all teh existing objects and use the Object.SetFont to apply the font the user wanted.

Is that possible?

RedneckDude
Reply #1 Saturday, December 19, 2009 4:14 PM

Yeah, Eve....what he said?

Vad_M
Reply #2 Saturday, December 19, 2009 4:34 PM

Hi Zu,

YES!

For example you may create a simple Font Editor with DesktopX.Form:

 

Then somewhere in you program must be several lines:

For each item in Array("obj1","obj2","obj3".....) '<== the names of textobjects you want to change fonts and font colors...

desktopx.object(item).SetFont FontName, Size, Bold, Italic, 0,0,0

desktopx.object(item).textcolor = textcolor

Next

That's all.

ZubaZ
Reply #3 Saturday, December 19, 2009 5:01 PM

Would it be better to have an object build teh array usign DesktopX.Objects.item(x) in a loop . .then run teh setfont and loop?

That way the end user would have to do nothing except run the Change font object, right?

sViz
Reply #4 Saturday, December 19, 2009 5:17 PM

 

Been working on/tweaking these (and others) for months. I guess now's as good a time as any to test it.

Here's the Group Control beta, which should do all text objects: http://www.box.net/shared/4q4kpd9e4y

Just import it into Buildermode. Click on the 'i' information button (not in the screenshot version) to see the help file instructions. PM or Email me feedback. Don't want to threadjack.

 

Vad_M
Reply #5 Saturday, December 19, 2009 5:18 PM

That way the end user would have to do nothing except run the Change font object, right?

Yes. But where it will store the data?

In your case this "object" must be a part of DX Client. Otherwise you must run it each time you will want to change something in your DX Theme.

ZubaZ
Reply #6 Saturday, December 19, 2009 5:30 PM

In your case this "object" must be a part of DX Client. Otherwise you must run it each time you will want to change something in your DX Theme.
That is very true . . but much better than having to edit every objects font settign or having to add every objects name to teh array, right?

ZubaZ
Reply #7 Saturday, December 19, 2009 5:35 PM


Been working on/tweaking these (and others) for months. I guess now's as good a time as any to test it.

Here's the Group Control beta, which should do all text objects: http://www.box.net/shared/4q4kpd9e4y

Just import it into Buildermode. Click on the 'i' information button (not in the screenshot version) to see the help file instructions. PM or Email me feedback. Don't want to threadjack.

Nice.  I showed Xen around at SD and they found it interesting.  Nice to see you still working on it! 

Vad_M
Reply #8 Saturday, December 19, 2009 5:41 PM

That is very true . . but much better than having to edit every objects font settign or having to add every objects name to teh array, right?

Quite right! And it would be great to see this option in DX 4.X ( ) together with the other our wishes...

Vad_M
Reply #9 Saturday, December 19, 2009 5:53 PM

Nice. I showed Xen around at SD and they found it interesting. Nice to see you still working on it!

Hmmm... sViz is not hired to Stardock however she works hard on a new useful tools. It would be very interesting to know what Stardock's employees are doing at the same time? Just examines the sViz's widgets?...

RedneckDude
Reply #10 Saturday, December 19, 2009 7:42 PM

Wow! Eve, that is awesome!!  Can I use it, or is it rocket science?  lol

karmat
Reply #11 Saturday, December 19, 2009 8:30 PM



Been working on/tweaking these (and others) for months. I guess now's as good a time as any to test it.

Here's the Group Control beta, which should do all text objects: http://www.box.net/shared/4q4kpd9e4y

Just import it into Buildermode. Click on the 'i' information button (not in the screenshot version) to see the help file instructions. PM or Email me feedback. Don't want to threadjack.

 

 

Thank you, thank you, thank you, sViz!!! Works for me. I just tried the font change part and it worked great. I have to spend some time getting familiar with DX, and this will work great for me.

 

Thanks Zubaz for posting this question!

 

Vad_M - what you suggested might be easy for some but is over my head! Would be nice if it was incorporated into the program though!

 

And thanks Jim for all those great skins you've designed that I'm about to go and download, now that I can change the font!

ZubaZ
Reply #12 Saturday, December 19, 2009 8:50 PM

Awesome tool sViz.  I modified VXP to use the font based on my handwriting:

RedneckDude
Reply #13 Saturday, December 19, 2009 10:22 PM

And thanks Jim for all those great skins you've designed that I'm about to go and download, now that I can change the font!

LOL....I aim to please!!  

RedneckDude
Reply #14 Saturday, December 19, 2009 10:23 PM

font based on my handwriting:

Enlighten me as to how you did that, you have a font maker?   Share dude.....

 

 

BTW, Nice DX Theme....

sViz
Reply #15 Sunday, December 20, 2009 7:01 PM

Glad to see it works properly...thus far.

RedneckDude
Wow! Eve, that is awesome!!  Can I use it, or is it rocket science?  lol

It's pretty straightforward, I think. As far as text goes, it works like Vad_M's suggestion with a DX form to change different font properties, etc.

DarcyBall
Reply #16 Sunday, January 24, 2010 1:23 PM

That looks great Zubaz. How did you get your own handwriting on there or did you just create a new font? If so how? Thanks.

Just go to http://weightwoo.com/eat-stop-eat and read the third paragraph.

 

ZubaZ
Reply #17 Sunday, January 24, 2010 1:59 PM

DarcyBall
That looks great Zubaz. How did you get your own handwriting on there or did you just create a new font? If so how? Thanks.Darcy
  I ahve a tabletPC (circa 2001) and used software to create my own font from my handwritign.

 My Font Tool for Tablet PC 

From http://www.microsoft.com/windowsxp/downloads/powertoys/tabletpc.mspx

RedneckDude
Reply #18 Sunday, January 24, 2010 3:08 PM




Quoting DarcyBall,
reply 16
That looks great Zubaz. How did you get your own handwriting on there or did you just create a new font? If so how? Thanks.Darcy  I ahve a tabletPC (circa 2001) and used software to create my own font from my handwritign.


 My Font Tool for Tablet PC 

From http://www.microsoft.com/windowsxp/downloads/powertoys/tabletpc.mspx

You call that handwriting?  Good thing the spelling was already done, huh....lol. 

You know we love to razz you, Zu.  We love ya tho...

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