Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 6th, 2024, 6:56 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Drop-down box
PostPosted: May 11th, 2007, 10:58 am 
Offline

Joined: October 25th, 2004, 1:21 pm
Posts: 424
Location: West Lancs, UK
Opus: 7
OS: Xp, Win7
I'm sure this is easy... I just need help getting started.

Objective: At the start of the presentation, the user of my Opus Pro multimedia can select one of 30 company names from a drop-down list.

Once the company is selected, this will then dictate which one of 30 logos is seen within the presentation at various points. These logos wil be in a folder on the CD.

1 - I can't find a drop-down box. Is a list box the closest offering?

2 - I understand I'd store the selected text to the variable COMPANY.

3 - To show the correct image on the screen: Presumably there's a smarter way than to have 30 hidden images and 30 IF statements, and only show the one based on the variable.

Could I make the image name based on the variable?

Could someone talk me through this, please, without offering a scripting solution?

Many thanks, Linda

_________________
Linda Rossiter, Rossiter & Co

Pro 8, Pro 7, Pro 6, Pro 05.5XE, Pro 04XE, XE2.8, ILM 4.5 on Win7 Professional


For this message Linda has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 11th, 2007, 11:48 am 
Offline

Joined: October 25th, 2004, 1:21 pm
Posts: 424
Location: West Lancs, UK
Opus: 7
OS: Xp, Win7
Ok, this seems to work.

So I need 30 IF statements for my 30 logos.

Should I carry on, or is there a far simpler way of doing this?

Also, is there a way of getting the image to appear as soon as the list box text is selected, rather than needing the additional button?

Thanks, Linda


You do not have the required permissions to view the files attached to this post.

_________________
Linda Rossiter, Rossiter & Co

Pro 8, Pro 7, Pro 6, Pro 05.5XE, Pro 04XE, XE2.8, ILM 4.5 on Win7 Professional


For this message Linda has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Drop-down box
PostPosted: May 11th, 2007, 11:51 am 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Linda wrote:
1 - I can't find a drop-down box. Is a list box the closest offering?

Yes - though it is simple to create a "fake" drop-down with a text box with a button next to it and a list box over the text box, which is shown by the button (if you follow).

Linda wrote:
3 - To show the correct image on the screen: Presumably there's a smarter way than to have 30 hidden images and 30 IF statements, and only show the one based on the variable.

I would use a slideshow object and then go to the relevant frame. You could use the list box selection index to determine the sldeshow frame number to show.

_________________
ddww Opus Developer


For this message Duncan Lilly has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 11th, 2007, 11:58 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Without scripting :-0

Here we go;

1. create a publication variable called myLogo
2. add each of the logos to the Additional Resources and give them sensible aliases

EG

google_logo
dw_logo

3. create the picture box. In the path for the image enter "<myLogo>" excluding speech.

To change the logo assign the alias to the variable EG

myLogo = 'google_logo (including speech)

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: nogo logo
PostPosted: May 11th, 2007, 1:56 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Linda,

Just a thought... could the logo's be published in 30 separate folders? (additional resources feature or such?)

Then you could name Smith's logo logo001.gif and alternate size logo002.gif. Name Jones' logo the exact same.

Then use a pub. variable to change the Path for the correct folder Smith vs. Jones. [ others could help here... whether done with standard actions, or else use 'Change Variable to Expression' action. ]


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: nogo logo
PostPosted: May 11th, 2007, 2:03 pm 
Offline

Joined: October 25th, 2004, 1:21 pm
Posts: 424
Location: West Lancs, UK
Opus: 7
OS: Xp, Win7
I love the variety of answers that come up when I ask what I thought was a simple question... it makes me feel not quite so stupid after all!

As, once the company name has been chosen, I'll actually need 4 or 5 versions of that company's logo within the presentation, I've ploughed on with the method I tried to show in my illustration - that way I've just got to define one large set of variables, once.

I've also learned how to save the variables to text files, and recall them... I'm rather proud of myself just now!

Of course I suspect it will all come tumbling down again in a minute, and I'll be racing back for more help.

Many thanks, Linda

_________________
Linda Rossiter, Rossiter & Co

Pro 8, Pro 7, Pro 6, Pro 05.5XE, Pro 04XE, XE2.8, ILM 4.5 on Win7 Professional


For this message Linda has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: May 11th, 2007, 5:48 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Linda,

Attached is an example of method above. The menu 'appears' to drop down on click. Then the logos are displayed when you click on a menu item. Four different logos are displayed per company, but this could easily be changed. I know it's scripted, but once setup, there is little to do bar add the additional resources and pass a parameter to th function.

Mack.

It's friday and the sun is now shining :-)


You do not have the required permissions to view the files attached to this post.

_________________
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] 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