Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently October 19th, 2024, 9:25 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: NEWBIE: Need help to Create a Basic Listbox
PostPosted: May 16th, 2015, 5:57 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Dear Forum
Yes I am a newbie and no I am not a programmer.
Can anybody a a simple example that does the following
1. User selects an item from a list box containing of 5-6 documents (pdf, powerpoint, word etc)
2. For each item a different document is opened.

Yes I know there are examples in the Help file.
But it will take me hours, probably days before I can get up and running for such as simple action.
Thanks
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: NEWBIE: Need help to Create a Basic Listbox
PostPosted: May 19th, 2015, 9:38 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
Your in luck, I just finished similar solution. Attached is a two-page example of one way to do as you request, i.e. using a listbox to list a set of documents and clicking on an item will display the document.

The example uses two pages. On page 1 there is a listbox. Each item (document) in the list is numbered, starting with '0'. A 'left mouse action' has a 'Select...Case' statements attached. Each case expression corresponds to the number of the document in the list. After each case statement there are two actions: 1. assign the 'txtDocChosen' variable to the name of the document to display. 2. A 'GotoPage' action displays the document in a 'DocView' object on the second page. When assigning 'txtDocChosen' include the directory, e.g. "C:\\myProgram\\myDoc.pdf", or use SYSTEM_PUBLICATION_DIR + "\\myDoc.pdf".

Whilst there is a tiny amount of programming here, look at the attached example and it should be clear how it works.

Paul


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

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: NEWBIE: Need help to Create a Basic Listbox
PostPosted: June 15th, 2015, 12:24 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
YOU ARE THE MAN!!!
Just the kind of example a newbie needs

.....you are terrific.
Many many thanks
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: NEWBIE: Need help to Create a Basic Listbox
PostPosted: June 15th, 2015, 1:42 pm 
Offline

Joined: June 18th, 2005, 3:16 pm
Posts: 86
Opus: Opus Pro v9.75
OS: Windows 10.?
System: HP xw660 Server 32GB RAM, Toshiba Satellite Laptop
You're very welcome.

Paul

_________________
Opus 9.6
HP xw6600 Workstation, Intel64 , Intel(R) XEON(R) CPU E5430 2.7GHz, RAM 8GB, NVIDIA Quatro K600, Samsung SSD 840 Pro Series: 238.5GB , 2 x 1TB HDD, 2 x PnP Generic monitors
Living a long, healthy, happy & prosperous life!


For this message pc_amethyst has been thanked by : mackavi


Top
 Profile  
 
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 4 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