Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: How to mark objects to appear on other pages?
PostPosted: January 6th, 2010, 3:08 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Again, a new topic in which I ask everyone's help.

First, wishing for a 2010 full of prosperity and achievements and thanked the cooperation of colleagues who are always willing to help me in this new and intriguing world that is the programming language Opus Script.

The file posted exemplifies what I need it. An publication with 5 pages,
although I left the lineup in only 3 of them. Four buttons allow the User to navigate through the pages and select the option chosen, or delete this option. The page where the User has his response is marked by a circle to show up, locks the dial button (preventing a new choice of the User) and leaves her in a state shown. in a Ini file, so that the return on the page, know that this marking has been done.

First problem:

How do I delete the ini file on that page, with the erase button? because if the User leave nothing marked or erase your choice, this mark should not appear when the User returns to the page!

In the case of page 01 the variable MrkPg_01 inserted in the publication has value 0. When you see the circle mark, the variable MrkPg_01 declared in page has the value 1. Are done right? The variable included in the publication can have its value changed only the page in question? The idea of having two values is the mean value 0 - hidden and 1 - shown, that when you open the page again, this value is checked to have the markup to appear or not, as the option left for the ini file. There is another way to do this?

Second, larger problem:

This confirmation of each bookmarked page needs to appear in the other pages of the publication, so that the User knows, through the markers shown, which pages have been marked. In the current schedule with ini files for each page, this only works when the User enters the page in question. The marking of page 01 is shown only on page 01, but does not appear on page 02, in 03 and must be shown on other pages! In the same way, the marking of pages 02 and 03 must appear on other pages of the publication.

I need a solution on these two problems mentioned. I would be very grateful if you posted the file modified to fit the solutions to these problems.[/b]


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

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject: Re: How to mark objects to appear on other pages?
PostPosted: January 7th, 2010, 12:20 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
NilsonBrasil wrote:
Second, larger problem:


Use buttons linked to publication variables.

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: How to do make this?
PostPosted: January 7th, 2010, 1:06 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Mac, thanks for your reply.

But I have no idea how to link this buttons that are marked on all pages on the variables in question! You could post an example of how this works?

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 7th, 2010, 9:53 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
Quote:
But I have no idea how to link this buttons that are marked on all pages on the variables in question! You could post an example of how this works?

From my viewpoint, this is a bit of a challenge. Or at least it is a challenge to build it so that Pub content can be expanded and changed without too much overhaul of the button-indicators and action structures.

Now Nilson, I have a difficult time understanding the logical flow. I admit I did not examine your pub as I think I remember it as Quiz interface and hard to follow. I also did not want to get tied up in INI files.

So I just 'extracted' what I think is the basic principle... of 'pages visited' and 'pages/answer-set completed'. I think you may find something useful in the sample attached.

However... there are so many ways this could be done. I am sure the attached is not the best. What it does illustrate though... is placing objects on a Master Page (in this case 'buttons as indicators')... and manipulating their states and properties while over on a content page.

I think your Users will 'navigate' differently than in the sample pub, but I will leave that to you to solve or map-over.


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

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


Top
 Profile  
 
 Post subject:
PostPosted: January 7th, 2010, 10:39 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
I realized a situation...

if the User Clicks on the center-page Button, "Submit Answers", and then comes back and clicks it again... that Button will correctly read "Unfinished", but the side-button indicators will be incorrect.

First of all, note that this is an artificial situation. On the above sample pub, I could have just Disabled the center button after a "Commit Answers" (or 'Submit Answers'... same thing).
And I recommend if you use that Sample, just make that change.

However, if there were a real-world case where you want the back and forth, the modified Sample Pub below ( ...3A.imp) will take care of it.
(details: script attached to the center button will now set a flag of '-1' when there is a reversal. Then in the script object and function, a short IF statement makes appropriate INDICATOR changes for that case.)


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

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


Top
 Profile  
 
 Post subject:
PostPosted: January 8th, 2010, 12:15 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Nothing so complicated...

Simply use the link to variable for the button setting the variable as bool with initial state of false (0).

Mark the page complete by setting variable to true (1). Place the button on every necessary page with the same link variable. Because the variable is global (publication) the button state will be set before the page appears regardless of true / false.

There will be no flashing as the button state is set and there is no programming involved.

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: Nothing yet ...
PostPosted: January 13th, 2010, 3:36 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Grateful for the your help, fellows Mack and Lar;

Unfortunately, I could not complete the goal with your tips. For this reason, I am posting here a more practical file than I'm needing.

The problem of marking the issues seem to be resolved. But the marker of the pages yet. I tried to hold variable markers (numbered red circles), change their values as they were shown, as on page 01, but the result is flawed. The object marker is shown on other pages separate from the question be selected or not. What is wrong?

I would like you to do download the file and place the marker on the first page functional on the pages of the publication, being shown where the first question to be answered.

If the User clean your answer in this page 01, by clicking on the clean, the marker number should not be shown. If the User goes ahead and back to the page 01 to check the matter, the state of the marker will be shown, if the choice response was made, or hide, if the choice of response was not completed.

I'll wait for good news.


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

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 17th, 2010, 10:33 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
mackavi wrote:
Simply use the link to variable for the button setting the variable as bool with initial state of false (0).


Hi Nilson,

Based on what your publication appears to be for, the process of using linked variables should work, but you're not using them. I'd suggest having a play in a clean publication with this technique.

See attached.

Mack


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  
 
 Post subject: Still waiting...
PostPosted: January 22nd, 2010, 3:14 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Why is that the variables are not working? The logic of having a changed variable value (0 for the mark hidden, 1 to shown) attached to the marked red circle is not valid within the Opus?
Also could not implement this with the last tip Mackavi. I tried to hold the variable-button choices and also the marker, but it's the same ... the marker is unstable, or show direct or never show.
I do not know to do this, I would like to see a practical example according to what I need, because the button should trigger the marker will be displayed on every page ...
I look forward to a solution!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 22nd, 2010, 4:30 pm 
Offline
Godlike
Godlike
User avatar

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

But I'm running Opus 7.0 on this machine and you cannot open the files in Opus 5.5 so it would be pointless posting an example.

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: Well, I can Try...
PostPosted: January 22nd, 2010, 6:18 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
I'm testing Opus 6.4. The opus 7 files can not open in 6.4 version?

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 22nd, 2010, 6:53 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
No. Opus 7, with good reason is not backwardly compatible.

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: Still Stuck
PostPosted: January 26th, 2010, 4:17 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
In other words, I keep in the "zero mark"...

No viable solution that fits the parameters then I need? I know that the output is to use global variables publication prey to red bullets (page markers). But how they are to be enabled or disabled??

Still stuck ...

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 26th, 2010, 7:17 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
Code:
if (VisMst_RpConF_01 = 1)
  Mst_RpConF_01.Show()
}
else
  Mst_RpConF_01.Hide()
}


simple mistake.
see Example:


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

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


Top
 Profile  
 
 Post subject: Syntax error?
PostPosted: January 27th, 2010, 2:40 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Wow! Is that why the code does not work? Syntax error?

Thanks for the tip Lar_123, something a beginner!

I will fix this problem and test!

If the variable is global in the publication, no need to declarate the var name in statement, right?

Hoping to work this time ...

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

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