Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88

    Cool How To Make a text scroll in an Input text area ?

    Hello everybody ,
    Just wanted to make a simple player for my own use but I found it good enough to distribute among my friends

    However , I am using an Input Text Area to display the "path" of the file being played but sometimes it's too long so the text area only shows part of it .. So I want either to show only the file name like "songname.mp3" and not the full path , Or scroll the text being displayed .. Any answers ?

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    You can use the On Timer event to make the text scroll. What you need to do is get the text from the input and copy the left most character to the right. You will probably want to pad the end of the string as well so the file name is readable and does not run together.

    Code:
    --Put this code in the On Show event for the page to start the timer and pad the text
    --Adjust the time for the Timer to control how fast the text will scroll
    Input.SetText("Input1", Input.GetText("Input1").."         ");
    Page.StartTimer(200);
    
    --Put this code in the on Timer event to cause the text to scroll
    ScrollInputText("Input1");
    
    --And here is the funciton that will cause it to scroll.
    function ScrollInputText(sObject)
    	strText = Input.GetText(sObject);
    	strText = String.Right(strText, String.Length(strText)-1)..String.Left(strText, 1)
    	Input.SetText(sObject, strText);
    end
    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
    Jun 2002
    Location
    Israel
    Posts
    1,843
    Another alternative is to use Flash. Lots of animation possibilities there.

    Yossi

  4. #4
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    Man , I failed to apply it ... Can u give me an example or something ?

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. Okay when you say you "failed to apply it", how far did you get? The best approach here is for you to give it a try and then post your project file as you go along if you have any problems, and we'll be happy to help you work through it. That way you learn the concept behind your project, and you will be able to apply it instantly to all future projects. Plus it's fun!!!

    Anyhow give it a whirl and, if you run into any difficulty at all, simply post your project file as far as you've gotten, and we will be happy to assist.

    In the meantime if you need some free video lessons on how to get started and insert a script, etc. please visit:
    http://www.autoplayzone.com


  6. #6
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    Actually , My Internet Connection can not upload a project file which is approximately 2 MB

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    No problem, just start a new project with only the input object present, that's all you need to work out your scroller script. You can easily upload that from any generic dialup connection. Then later, you can simply paste the object back into your main project.

  8. #8
    Join Date
    Dec 2003
    Posts
    891

    example

    Here is an example using TJ's code. Click on the info button to see where the code goes.
    Attached Files

  9. #9
    Join Date
    Dec 2003
    Posts
    891

    better

    To get a more digital readout thing going, download the zip and install the font. Then open the apz with AMS. When you publish the project, the font will be embedded in the app. It will install and un install the font as needed.
    Attached Files

  10. #10
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    Thnx a lot all of you .. It worked


Similar Threads

  1. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  2. Get text from Input object
    By ianhull in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 09-14-2004, 11:19 AM
  3. Howto make the text disapear from the build buttons
    By baiaz in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 09-27-2003, 07:19 PM
  4. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  5. New text box with color change in non-viewable area
    By David Delaney in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 03-09-2001, 11:43 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