Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 4:13 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Change font form within a program
PostPosted: March 23rd, 2008, 12:23 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 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

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


For this message Mark McCormick has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 23rd, 2008, 3:35 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Netty

I believe the font name needs to be in quotes:

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


Hope this helps.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: March 23rd, 2008, 5:14 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 Stephen

Thanks for ur reply. I noticed my mistake after having a cup of tea

Thanks anyway

Mark

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


For this message Mark McCormick has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 44 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