Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2007
    Posts
    3

    Many different On link events in one rich text - how?

    I have tried a lot, but still cannot figure out how script would be look like to distinguish between many hyperlinks in one rich text object.
    When a user click on one link it should open his default browser and go to that web page.
    When he click's on another, than the same should happen. But...

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Put this in the On Link event of the RTF object.
    Code:
    File.OpenURL(e_Link, SW_SHOWNORMAL)
    Dermot

    I am so out of here

  3. #3
    Join Date
    Dec 2007
    Posts
    3
    Quote Originally Posted by Dermot View Post
    Put this in the On Link event of the RTF object.
    Code:
    File.OpenURL(e_Link, SW_SHOWNORMAL)
    Thanks for Your fast reply.

    As I said, I already tried meny combinations, including this.
    If there is many links in rich text object, this script open them all at once.

    What I need is a comand with wich program will distinguish between them...
    Any other suggestion?

  4. #4
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    The code I posted will only open the link that was clciked in the RTF object. The e_Link parameter holds the link that was clicked, so that link is opened. I have tested this many times and it works fine.
    Dermot

    I am so out of here

  5. #5
    Join Date
    Dec 2007
    Posts
    3
    Ouups...

    You were completely right.

    I alwayst tried to replace "e_link" with exact URL.

    This command did exactly what I wonted.

    Thank You very much, Dermot

Similar Threads

  1. how to insert a text variable in html link?
    By arobaskette in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 04-11-2007, 05:56 AM
  2. 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
  3. Displaying Text and/or Images with MouseOver Events
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 03:46 PM
  4. Creating Link in a Text Object
    By mabu in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 03-12-2003, 10:15 AM
  5. 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

Posting Permissions

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