Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2005
    Location
    Birmingham, Alabama
    Posts
    175

    Hide button action

    Has anyone else had anytrouble getting the hide button action to work? I can't seem to get any results out of the action, I have no errors on preview, it just has no effect.
    thanks in advance

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Do you mean the Button.SetVisible action?

    Here is an example if so. It is working for me.
    Attached Files
    Intrigued

  3. #3
    Join Date
    Feb 2005
    Location
    Birmingham, Alabama
    Posts
    175
    Yes, Button.SetVisible action is what I'm referring to. Maybe there is a better way to accomplish my desired end result.

    I have a check button (for user aggrement), what I was trying to accomplish with this action - check the user aggreement button, the next button is then visible.

    So, I need button "B" to be hidden until button "A" is selected.

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137

    User-Agreement - Button - Intrigued

    How about something like this? (ugly, but it gets the point across I am hoping )
    Attached Files
    Last edited by Intrigued; 02-17-2005 at 08:33 AM.
    Intrigued

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Here is a link to the latest version I did. I put it up on my Website for AMS 5:

    http://www.amsuser.com/ams/examples/...-Intrigued.apz

    Below is the code I put into the project (minus comments) and I tended to use the semi-colon to close a line of code at times and other times I did not. You do not need the semi-colon (. But, I.R. documentation recommends the use of such.

    Code:
    ------------------------------[[ SCRIPT: Global Script ]]------------------------------
    01 --Enter global declarations and functions here...
    02 
    
    ------------------------------[[ SCRIPT: Page: Page1, Event: On Show ]]------------------------------
    01 Button.SetEnabled("Button1", false)
    
    ------------------------------[[ SCRIPT: Page: Page1, Event: On Close ]]------------------------------
    01 Button.SetEnabled("Button1", true)
    02 
    03 Button.SetText("Button3", "");
    
    ------------------------------[[ SCRIPT: Page: Page1, Object: Button1, Event: On Click ]]------------------------------
    01 Button.SetEnabled("Button1", false);
    02 
    03 Page.Jump("Page2");
    
    ------------------------------[[ SCRIPT: Page: Page1, Object: Button2, Event: On Click ]]------------------------------
    01 Application.Exit();
    
    ------------------------------[[ SCRIPT: Page: Page1, Object: Button3, Event: On Click ]]------------------------------
    01 Button.SetText("Button3", "x")
    02 
    03 Button.SetEnabled("Button1", true)
    
    ------------------------------[[ SCRIPT: Page: Page2, Object: Label2, Event: On Click ]]------------------------------
    01 Page.Jump("Page1")
    Intrigued

  6. #6
    Join Date
    Feb 2005
    Location
    Birmingham, Alabama
    Posts
    175
    thanks a lot!

  7. #7
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    No problem thetford.

    Intrigued

  8. #8
    Join Date
    Feb 2005
    Location
    Birmingham, Alabama
    Posts
    175
    ok, I'll try not to abuse your good nature, but one more question,

    at the end of the quiz template when it gives you your percent correct score, how do you round that number so it's not so long?

    thanks!
    (in advance)

  9. #9
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by thetford
    ok, I'll try not to abuse your good nature, but one more question,

    at the end of the quiz template when it gives you your percent correct score, how do you round that number so it's not so long?

    thanks!
    (in advance)
    You can use the Math.Round action IF you are using AMS 5 Pro/Deluxe editions.

    Here's a very basic rounding example project.
    Attached Files
    Intrigued

Similar Threads

  1. Stopping a button action until video is done.
    By GalacTek in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 03-30-2006, 07:00 AM
  2. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. Hide object/Show Object - Same button?
    By Michael in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 07-14-2002, 09:36 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts