Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2

Thread: Richtext help!!

  1. #1
    Join Date
    Aug 2008
    Posts
    29

    Richtext help!!

    Hi guy,

    How I can delete richtext of line?

    strText = RichText.GetLine("RichText1", 2);
    ??

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    shanex252
    This should work for you. It gets a little tricky because there is limited functionality for line manipulation.

    Code:
    -- get the text in line 2
    strText = RichText.GetLine("RichText1", 2); 
    -- find the location of the text in the object
    gotit = RichText.FindText("RichText1", strText, 1, -1, true, true) 
    -- set the selection for line 2 text
    RichText.SetSelection("RichText1", gotit.Start, gotit.End)
    -- delete the selection and the line advance (2 deletes)
    RichText.Delete("RichText1");RichText.Delete("RichText1")
    hth

Similar Threads

  1. Problem with RichText Object
    By azmanar in forum AutoPlay Media Studio 7.5
    Replies: 8
    Last Post: 09-03-2008, 05:22 AM
  2. Richtext and labels
    By grim86 in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 08-22-2008, 08:46 AM
  3. Commands in RichText?
    By ConndoR in forum AutoPlay Media Studio 7.5
    Replies: 11
    Last Post: 07-03-2008, 11:08 AM
  4. Displaying Plugin + RichText troubles
    By DericLanza in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 05-22-2008, 12:42 PM
  5. how can change RichText font and fontsize from code??
    By lnd in forum AutoPlay Media Studio 7.5
    Replies: 5
    Last Post: 05-16-2008, 07:28 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