Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 6:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Goto Page (number)
PostPosted: November 9th, 2009, 5:00 am 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
Has anyone got the code for when the user presses say the 'n' key and then a number (ie 46) the program will jump to that page. I've searched the forum but can't find anything on this. This coul be an iput textbox with a button to goto the inputed page number.

Ted

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 6:48 am 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
Hi Ted
I attached an example on how to work with what you need.


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


Last edited by opuslover on November 9th, 2009, 8:17 am, edited 3 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 8:00 am 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
This is here the second example with input box and button
If you need any further modification I'm ready to help with what I could.


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

_________________
Win windows 7
Opus Pro 9.5


Last edited by opuslover on November 9th, 2009, 9:06 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 8:35 am 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
Thanks opuslover

I assume that I could modify the code,remove the "r" and just have the numeral input.
As some of the projects I'll be working on will have over 50 pages/catalogue, is there any way of coding this so as the project will not a long list of code per page?

The project is a mouse driven presentation and the keyboard alpha/numerics are not used.

Q. what is the 2.00s Ticker for?

Cheers
Ted

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 9:10 am 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
Hi ted again
please check the second example first and see if you need another modification
I made the second one dynamic ,you just put the pages as
p1 p2 p3 ..etc and all ard done for you

there is another way that you put a link or hyperlink on the first page and then it will be linked to other pages

just check the second example first and tell me.


I'm happy to help you.

the tick is to refresh the variable key every 2 second expecting hat the user input wrong page like R46 instead of R45 then it will be reset to be ready for the second go.

_________________
Win windows 7
Opus Pro 9.5


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 9:22 am 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
once again thanks mate

The second example is what would be needed. I'll hide the the button and input box, then use a rightvmouse mouse click to dispay them when needed.

Thanks again for your time and effort

Ted

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 11:02 am 
Offline

Joined: September 11th, 2006, 2:38 pm
Posts: 125
Thanks Ted

Here also another example on how to use the page navigation with mouse
I hope that you like it and serve your project.

features:
you can’t go backward less than Page 1 or the last Page
when you reach the last record it turns to red and be disabled
when it reaches the first record it turns to red and disabled


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


Top
 Profile  
 
 Post subject:
PostPosted: November 9th, 2009, 7:31 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
Ted,

Hopefully you are getting what you need from OL's solution (I've not dnl'd or looked).

If you're still working on:
Quote:
As some of the projects I'll be working on will have over 50 pages/catalogue, is there any way of coding this so as the project will not a long list of code per page?

I would suggest maintaining an external spreadsheet .xls --- Users will not need the Excel app of course, but Opus can read that data.

Then it is a simple matter of populating one or two listbox objects. I like the idea of 'cascading listboxes'. Content appearing in the second LB is dependent on choice made in the first. (aka 'configurator' on websites). Could be as simple as Columns then Rows retrieval from .xls sheet.

If you (somehow) format these or use hyperlinks, you'll get the colour/font change indication when 'visited'.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: November 10th, 2009, 12:50 am 
Offline

Joined: October 10th, 2007, 8:12 am
Posts: 46
Location: Belmont North NSW Australia
Opus: opus pro v7 trial
OS: Win 7
System: Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram
opuslover: Your 3rd example is very good and will be of great value. I will be able to utilise all 3 of your examples. Thanks again for help.

Lar_123: I'm not sure on how to implement an excel file into a list box. When I try to insert, I get an error message "Cant read file" Any ideas would be great.

Ted

_________________
Ted C
Lake Macquarie NSW Australia
----------------------------------------------
Gigabyte GA-X58A-UD3R ATX Motherboard, 3gig ram


Top
 Profile  
 
 Post subject:
PostPosted: November 10th, 2009, 2:39 am 
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
Ted,

I do not use Excel with Opus. In some ways, I wish I was more proficient with excel itself. So I put more development effort into databases.

Quote:
not sure on how to implement an excel file into a list box. When I try to insert, I get an error message "Cant read file" Any ideas would be great.

For reading from Excel files, browse the Sample Pubs DW provided with Opus. Once you have practiced with that file, you can develop reading 'records' into a Listbox object. There are several posts on the topic, and a few .imp examples I'm sure.

Off to wine...

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: November 10th, 2009, 9:30 am 
Offline
Godlike
Godlike
User avatar

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

Lar's right the Excel or other database format make for an efficient way of creating something like a catalogue.

If memory serves, if using Excel you need to specify the column by using define name in Excel. Robin's example in Opus is very clear and the folder contains all the necessary files that could be adapted.

Because, you'd be reading the data from an external source, you can access it prior to running your publication and therefore have access to all products from the outset. This means that you can use a single page setup, rather than having one product per page, which makes things more complicated for certain things.

Lar's right (again) and he has posted many excellent examples of advanced list boxes that be used in table-of-contents to easily access an product.

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

All times are UTC [ DST ]


Who is online

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