Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Posts
    1

    Require Viewer to Scroll Down

    Is there a way that I can require people to scroll an entire paragraph, like a disclaimer, in order to click on a button to accept and move on?

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Initially I would say that you would have to use the On Timer event and compare the Paragraph.GetScrollPos with the max value from Paragraph.GetScrollRange. If they match then you know they have scrolled to the bottom of the page and you can then enable the button.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Dec 2003
    Posts
    891
    As Tigger said.
    First, you have to find the Max range of the scroll bar in the paragraph with all the text loaded and displayed in the para. Ah, but here's the rub. The up/down arrows in the scroll bar is counted in the total range, so you have to subtract the size of the arrow from the .Max range value. I have found that the size of the scroll arrow is 22.
    Then you have to compare the Max-22 to Scroll the present Scroll position
    Then, if the scroll bar is at the max position, enable the button.
    Try this (replace my object names with your object names)
    Page - On Show
    Code:
    Page.StartTimer(1000)
    Page - On Timer
    Code:
    ---this will get a table with the Scroll RAnge. Use .Min or
    ---.Max to get values
    tScroll = Paragraph.GetScrollRange("EULA_para", true);
    ---this will get the present scroll position
    nScroll = Paragraph.GetScrollPos("EULA_para", true);
    ---compare position to Max range - 22 pixels
    if nScroll == tScroll.Max - 22 then
    ---if it meets the above do
    Button.SetEnabled("I Agree_btn", true);
    end

Similar Threads

  1. Scroll Bars
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 05-09-2005, 05:52 AM
  2. KB: Running Microsoft PowerPoint Viewer from CD-ROM
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 01-13-2005, 07:56 AM
  3. Browser Object's Scroll bar
    By baddavid in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 05-13-2004, 09:21 AM
  4. Listbox Horizontal Scroll Problem
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 12
    Last Post: 02-11-2004, 09:52 AM
  5. HOWTO: Run the PowerPoint Viewer Directly from a CD-ROM
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 03:32 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