Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: change font within program
PostPosted: March 23rd, 2008, 11:44 am 
Offline

Joined: August 14th, 2005, 5:40 pm
Posts: 42
Location: Southampton (England)
Opus: Opus Pro 5, 6, 7 & 8
OS: Windows 7 32bit Pro / Windows 7 64bit Pro
System: Intel I7 350 Quad 3.33Ghz - 12 gig ddr3 - Nvidia GeForce GTX 480
Hi Guys
I'm trying to change a font from with in my program using

Text_1.SetSelection(0,-1);
var newStyle = new Object();
newStyle.fontname = Times New Roman;
Text_1.SetSelectionStyle(newStyle);

Any ideas where i'm going wrong.

thanks
Mark
===============
now using windows vista

_________________
======================
www.networkentertainment.co.uk


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 23rd, 2008, 12:56 pm 
Offline

Joined: August 14th, 2005, 5:40 pm
Posts: 42
Location: Southampton (England)
Opus: Opus Pro 5, 6, 7 & 8
OS: Windows 7 32bit Pro / Windows 7 64bit Pro
System: Intel I7 350 Quad 3.33Ghz - 12 gig ddr3 - Nvidia GeForce GTX 480
Hi
I've sorted this out now forgot to put the fontname in "".

Thanks

Mark

_________________
======================
www.networkentertainment.co.uk


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 23rd, 2008, 2:32 pm 
Offline

Joined: March 4th, 2007, 7:17 pm
Posts: 132
What line of script object you have this mistake?

Quote:
var newStyle = new Object();

I doubt that it is right...

_________________
Opus Pro 5.5
Win XP


Top
 Profile  
 
 Post subject:
PostPosted: March 25th, 2008, 2:04 pm 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
the problem is only with the qutation

It should be like this:



Code:
Text_1.SetSelection(0,-1);
var newStyle = new Object();
newStyle.fontname = "Times New Roman";
Text_1.SetSelectionStyle(newStyle);

_________________
Win windows 7
Opus Pro 9.5


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group