Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:03 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: A simple example of a updated listbox?
PostPosted: March 2nd, 2010, 11:40 am 
Offline

Joined: December 18th, 2008, 4:25 pm
Posts: 9
Location: Milton Keynes, UK
Good Morning

I’ve been reading some of the posts on the forum about updating a list box. Unfortunately I can’t seem to find a simple example. Could someone be so helpful as to explain to me how I go about doing this with the attached example? If this can only be done by using a script then a short step to understand the script will be helpful.

After a very long absence I’m starting my opus again, I’m not familiar with scripts. Opus Pro 05.

Thanks


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


For this message Ryk Melck has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: March 3rd, 2010, 1:53 pm 
Offline

Joined: December 18th, 2008, 4:25 pm
Posts: 9
Location: Milton Keynes, UK
Good afternoon.

Has any one who has viewed my post on the list box perhaps have an answers for me.

Many thanks.


For this message Ryk Melck has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Welcome
PostPosted: March 3rd, 2010, 2:21 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Ryk --

Welcome to the DW OPUS Forum! We will attempt to answer any of your questions.

Two things would really help us:

1) We are now on OPUS v7, so you are way behind using v5 (I'm hoping it's actually v5.5 because 5.0 had problems). You will benefit tremendously by upgrading to v7. The new features are fabulous, and the stability/reliability is something you need in anything you build;

2) Notice the information which is included in our signature blocks? Go to "Profile" at the top of the Forum, and in your Signature area, tell us the basics we always need to help someone (computer, operating system, RAM, HDs, etc). Once you've added that information, it will automatically appear whenever you ask a question, or answer one. This is a "sticking point" with some of our contributors. They will NOT respond to anyone who hasn't complied with this simple requirement. Sorry...

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


For this message demofred has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 3rd, 2010, 3:09 pm 
Offline

Joined: December 18th, 2008, 4:25 pm
Posts: 9
Location: Milton Keynes, UK
Hello dermofred

Thanks for the welcome.

I have just made a post about .csv files and in that post I have asked someone to assist me in setting up my signature. So thanks so much.

You are so right in saying that I’m way behind. At the moment v5.5 suits my purpose and before I can justify upgrading, I have to prove to myself that I’m going use OPUS for its intended purpose.

Thanks again.

_________________
Ryk Melck, Karmichael Education
Milton Keynes, (UK)
OPUS Pro 05
Windows XP Media Center Edition SP3, Acer Aspire 3690, Intel(R)Celeron(R) M CPU 430@1.73GHZ, 1GB RAM, 1x60GB HDs, 1x320GB HD Portable,


For this message Ryk Melck has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Two answers
PostPosted: March 3rd, 2010, 11:18 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
Ryk --

Thanks for your information. Good job!!!!

You appear to have two questions in your IMP example:

1) You want to know how to get a txt file to be read into a ListBox when you open the Page. On the Page, create a Trigger of "On Show" then have your Action be "Read from Disk File" where you have your txt file name, and you'll have to create a new Variable to hold the information, AND within the ListBox you have to use "Insert Variable" to display the text.

2) You asked how to get the ListBox to be updated when you add information into a Text Input Object. You are on the right track with your current Button 3 where when you Left Click, it writes to your txt file. Just add another line of Action which reads that txt file into a new Variable which appears in the ListBox.

Hope that helps, or gets you started thinking in the right direction.

You really need to get OPUS 5.5 before doing any paying project. Prior versions had bugs which were all cleared by 5.5. If you are a professional multimedia builder (or want to at least look like one) you need to get OPUS v7. They've made HUGE advances in every aspect of the product, and it's well worth the upgrade price (which is at a special "early bird" price right now).

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


For this message demofred has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 4th, 2010, 12:04 pm 
Offline

Joined: December 18th, 2008, 4:25 pm
Posts: 9
Location: Milton Keynes, UK
Hello Fred

Thanks again. I tried your example but it put's everything on one line. I need each line of text to be added on each line of the list box. Maybe I'm doing something wrong.

I did however manage to find a script on the Forum.

----------------------------------------------------------------------------------

var Names = ""

NamesList = OpenFile("StaffSubjects.txt")

while (NamesList.EndOfFile() == false) {
currentfile = NamesList.ReadLine()
Names = Names + currentfile + "\n"
wait()
}

Listbox.SetSelection(0,-1)
Listbox.ReplaceSelection(Names)

------------------------------------------------------------------------------------

Have a great day.

_________________
Ryk Melck, Karmichael Education
Milton Keynes, (UK)
OPUS Pro 05
Windows XP Media Center Edition SP3, Acer Aspire 3690, Intel(R)Celeron(R) M CPU 430@1.73GHZ, 1GB RAM, 1x60GB HDs, 1x320GB HD Portable,


For this message Ryk Melck has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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