Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 5:26 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: My radio and ON/OFF buttons are reset
PostPosted: January 15th, 2005, 2:13 am 
Offline

Joined: January 15th, 2005, 1:47 am
Posts: 7
In a nutshell, my ON/OFF and radio buttons are reset when the frame they are in is hidden and shown again.
I need to keep the apparent state of these buttons, even if hidden.

In details
In fact, I didn't notice this until one of my students told me about.
I have a computer-based exam, and one of the questions is a page with two frames. Frame 1 contains a comprehension text, and exactly behind it, there is a frame that contains subframes each with three-choice questions about the text.
I used the trick of setting up two buttons, one to show the text and hide the questions, the other for the opposite.
That fact is, variables stay as they are supposed to through the user input. But the problem is that the ON/OFF and the radio buttons are reset in shape. I mean they stay as if untouched.
Has anybody experienced such a problem?
I appreciate your help in advance.
I use Opus Pro 4.30

_________________
Ali Darweesh
A University Student of English Language and Literature
Interested in E-learning
www.4artsake.biz
www.alidar.net


For this message Alidar has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 17th, 2005, 1:35 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
<< That fact is, variables stay as they are supposed to through the user input. But the problem is that the ON/OFF and the radio buttons are reset in shape. I mean they stay as if untouched. >>

Hi Ali,

I cannot seem to replicate the problem using "radio buttons" or "Checkbox -> Push Buttons". Are you changing pages then returning to the concerning page? If so, the radio buttons will default to their initial state.

If you want the buttons state to stay the same when returning to the page, using a variable to store what button was depressed last, you need to use the SetState() in OpusScript. (unless someone has another solution) :)

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Radio Buttons
PostPosted: January 17th, 2005, 4:45 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
On a new Page, I created a Frame Object, then added five Buttons, which I put into a Radio Button Group. I then created a Button outside the Frame with the Action to Hide the Frame. I created another Button with the Action to Show the Frame.

When you Preview this, you can depress any Button in the Frame and it works like a Radio Button, in that it stays depressed unless you press another Button in the Frame. When you press the Hide Button, the Frame disappears. When you press the Show Button, the Frame re-appears, but the Radio Buttons have been re-set to their default "up" states.

The question was, how can you have OPUS remember which Radio Button was depressed, and have it in the depressed "down" state when the Frame re-appears.

Steve's suggestion to use SetState() in OPUS Script is the best way to accomplish what you want.

_________________
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: January 17th, 2005, 9:55 pm 
Hi
Steve
Would you please just try to group three or four radio button in one frame. Then you attach a variable (let's say <radbutton>)to them, namely a variable that changes according to the user's input for each button.
You can afterwards setup a button that hides the frame then to show it again. After showing the frame again, there is no change in the abovementioned variable, but the buttons are all reset.
Remember that I have not turned the another page. I am still on the same page.

I have tried the suggestion mentioned by demofred but it is not that good when you apply transitions to the frame with the radio buttons. I mean the button regains its state according to the variable after the transition is over, even if the action is set to the "pre-show" trigger. This would create some sort of confusion for the user, I think.

I think, there should be a possibility for a radio button or ON/OFF button to retain its state even after it is hidden on the same page.
I appreciate your help and would like to hear from you and the others.


Top
   
 
 Post subject:
PostPosted: January 18th, 2005, 3:48 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi Ali,

Actually I had a reply to Fred typed out offline. It may help you... :wink:


<< When you press the Hide Button, the Frame disappears. When you press the Show Button, the Frame re-appears, but the Radio Buttons have been re-set to their default "up" states. >>

Hi Fred,

If the radio buttons are NOT put in a Frame, their state is remembered when hidden and shown. It is strange that the result is different when they are put in a Frame.

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 19th, 2005, 6:29 am 
Offline

Joined: November 4th, 2004, 4:55 am
Posts: 64
Location: New York
Here is an awkward workaround that might serve your needs.

Don't use Hide/Unhide. Instead, change the action of the button that is currently "hiding" the frame to either:
1) change the transparency of the frame (& therefore its contents) to 100% transparent
or,
2) move the frame to underneath the background graphic

_________________
Robert Gengerke
Magic Box Communications, Inc.
Video & Interactive | Design & Production


For this message R. Gengerke has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: August 1st, 2006, 10:31 pm 
Offline

Joined: November 3rd, 2004, 6:37 pm
Posts: 42
Location: Ireland
i have this same problem just seems to happen with frames and multiframes. i just created a work around for it using a simple piece of script. on the frame place an On Show action, and then some script and basically set each variable used in checkboxes in the frame equal itself. so if you have 4 check boxes each linked in a variable called button1, button2, etc. then the script would be:

Button1 = Button1
Button2 = Button2
Button3 = Button3
Button3 = Button3


this works and resets each checkbox to their correct state.

_________________
5.5 XE, Windows XP Pro SP2, P4 3.0 HT EM64, 1024MB RAM, ATi Radeon X300 @ 1680x1050 (32bit)


For this message lukemcurley has been thanked by : mackavi


Top
 Profile  
 
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: No registered users and 94 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