User Tag List

Results 1 to 7 of 7

Thread: Rich Edit Object and Scrolling

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Malmesbury, UK
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rich Edit Object and Scrolling

    I'm making a chat client lately. It's all going well. I've missed one thing on the way. When a message comes to you and there is more text than can fit without a scrollbar the text doesn't scroll down. I fixed this with scroll down action whenever a message comes. It all goes well but now there is a bug which I'm having problems with tackling. I have my chatbox, it's got some text in it and i click somewhere so the cursor is somewhere in the middle, not at the end of text. Now when a message arrives or a new line is added the text is added at the place of cursor. I was thinking of moving the cursor down by using the Go to line action and I put number of lines from scrolling as the value. But it doesn't seem to work. So does anyone have any solution. I would like quite a detailed solution. Most appreciated would be solution similar to how it's done in Gwerdy Chat.

    Plooscva

  2. #2
    No Products Registered

    Join Date
    Feb 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Edit Object and Scrolling

    Make it the rich edit read only?

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Malmesbury, UK
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Edit Object and Scrolling

    Doesn't change anything... You can still set teh focus on.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Edit Object and Scrolling

    yep, you need to set the char. position to the amount of characters in the RTF object before you apply the text

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Rich Edit Object and Scrolling

    Also use the Rich Edit action Block->Unselect Block
    .:::.Joshtek.:::.

  6. #6
    No Products Registered

    Join Date
    Feb 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Edit Object and Scrolling

    How do you make it so it will scroll down automaticly?

    I need help here. This is the only bug I need to fix before I release it.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Rich Edit Object and Scrolling

    The best I can come up with is:
    [events]
    *On message
    +GetLineCount( "Rich Edit Object" )-1 is entirely visible
    -(Rich Edit) : Deselect block
    -(Rich Edit) : Go to character number GetNChars( "Rich Edit Object" )
    -(Rich Edit) : Set string to message
    *On message
    +[NEGATE] GetLineCount( "Rich Edit Object" )-1 is entirely visible
    -(Counter) : Set Counter to GetFirstLine( "Rich Edit Object" )
    -(Rich Edit) : Go to character number GetNChars( "Rich Edit Object" )
    -(Rich Edit) : Set string to message
    -(Rich Edit) : Go to line number value( "Counter" )[/events]
    The only improvement I can think of is to buffer the new text until you scroll down, so as to not mess up selections and suchlike.
    .:::.Joshtek.:::.

Similar Threads

  1. Rich Edit Object bug
    By Phi in forum Extension Development
    Replies: 2
    Last Post: 3rd February 2010, 12:04 PM
  2. Edit Object vs. Rich Edit
    By Jaffob in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th June 2008, 01:42 PM
  3. Extracting a line from Rich Edit Object or Edit Ob
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th March 2008, 05:16 PM
  4. New bug with Rich Edit object?
    By Steven in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 20th January 2008, 03:23 PM
  5. Bug: Rich edit object
    By Sphax in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 17th July 2006, 04: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
  •