Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 19th, 2024, 2:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Change colors for every text box on a given page
PostPosted: October 27th, 2006, 10:28 pm 
Offline

Joined: November 12th, 2004, 3:28 pm
Posts: 34
Location: Akureyri Iceland
I am running a publication of about 300 pages to train people for the driving test. It is all running fine.

Now I have been asked to allow students that suffer from dyslexia to change the colors of the font and background. This is easy for a single page; the students choose colors from a palette, then kept in two variables containing the color codes.

But what I need is to put a script that changes the colors on every text box on a given page (or even better - the whole publication) using the two variables, triggered for instance by “ Page - OnShow”. Any idea if this is possible?

_________________
Jonas Helgason
Menntaskolinn á Akureyri
Iceland


For this message jonas has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: October 28th, 2006, 9:08 pm 
Offline

Joined: October 25th, 2004, 3:03 pm
Posts: 540
Location: Tyalgum Creek. Australia
Opus: Opus Pro Latest version 9.02 Build 16458
OS: Won 10
System: Asus laptop Intel Core i5 8 gig ram, big monitor, reading glasses
Jonas

Someone will probably suggest a better solution than the one, I'm about to suggest here. JUst in case they don't however;

I would create a frame and paste that frame on every page. Problem would be solved then.

Regards

Graham

_________________
Too much coffee can result in frequent toilet breaks!


For this message Graham Baglin has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Example
PostPosted: October 29th, 2006, 8:44 am 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Jonas,

If you send me an example from one page with the script and the textboxes you are using now, I'll change the script for you so you can use it on every page.

Best regards,

Oscar Nijst

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


For this message osni has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: November 1st, 2006, 11:55 am 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Oscar,

Could you maybe post a little bit more information about your solution you're going to use on the file.

Is it just selecting the the full text and adjusting the colour ?
I found that changing the colour this way still showed the transition between the original and new colour.

I still havent found a way, fast enough to do it invisible ( my pages contain some 'large' elements : avi buttons, png images, etc. But that should be the problem, i suspect )


For this message Reemski has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Change colors for every text box on a given page
PostPosted: June 15th, 2017, 3:13 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Hi All
This was the only post I could find...(from way way back)
    I am starting a new project from scratch
    The project will contain 15-20 pages with different Text box objects on each page
    There will be a separate Settings page where I can change the FONT COLOR for all text boxes on all pages.

I know how to change the text color for a single text object but do not know how to change all text boxes on all pages with a single click.
The number of boxes on each page will vary depending on the content
Any suggestions on how to implement this
Yours
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Change colors for every text box on a given page
PostPosted: June 15th, 2017, 9:35 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
The text boxes are objects on the page and you can get and cycle through the objects making the changes in turn.

Place all the boxes in a frame and then use GetNumberChildren() to count the text boxes. Use this value in a for / while loop and use GetChild() with the index for the loop to access the properties of individual text boxes on the page.

</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: Re: Change colors for every text box on a given page
PostPosted: June 16th, 2017, 7:02 am 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Thanks...will try to put together a basic prototype


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Change colors for every text box on a given page
PostPosted: June 16th, 2017, 3:09 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
As it's Friday afternoon and the sun is shining, here's an example:


link: http://www.live.interaktiv.co.uk/?section=files
code: bopc@digitalgrapevine.info

</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: Re: Change colors for every text box on a given page
PostPosted: June 16th, 2017, 9:02 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
It was cloudy and miserable outside.
But when I opened your example all of a sudden the sun began to shine and the birds in the garden began to chirp....

Seems the imp file you posted contains some of "Mack's Magic Dust":)


For this message pakapaka has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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