Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 16th, 2024, 11:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Change Format Text with a button
PostPosted: October 7th, 2007, 9:47 am 
Offline

Joined: May 20th, 2006, 4:53 pm
Posts: 43
Location: Italy
Opus: Opus Pro 7.01
OS: Windows 7
hi all,
it's possible to change a format text on a pubblication with click on a button?

Example:
i would to change a test imput box from Arial to times new roman with a command


thanks


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 7th, 2007, 10:38 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Yes it is possilbe, but I don't think you can do it without scripting.

Look at the SetSelectionStyle (and GetSlectionStyle) in the OpusScript help but note that 'font' is wrong and you should use 'fontname' instead to change the typeface.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 7th, 2007, 11:47 am 
Offline

Joined: May 20th, 2006, 4:53 pm
Posts: 43
Location: Italy
Opus: Opus Pro 7.01
OS: Windows 7
thans, now i see

_________________
Software: Opus v7.01
OS: Windows 7 64 bit
Hardware: In progress


Top
 Profile Visit website  
 
 Post subject: well
PostPosted: October 7th, 2007, 12:43 pm 
Offline

Joined: May 20th, 2006, 4:53 pm
Posts: 43
Location: Italy
Opus: Opus Pro 7.01
OS: Windows 7
i'm use this script

cognome.SetSelection(0,-1)
cognome.fontname = "Agency FB"
cognome.SetSelectionStyle(cognome)

and all ok

thanks

_________________
Software: Opus v7.01
OS: Windows 7 64 bit
Hardware: In progress


Top
 Profile Visit website  
 
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: No registered users and 28 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