User Tag List

Results 1 to 8 of 8

Thread: Determine what text what deleted from Rich Edit?

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Determine what text what deleted from Rich Edit?

    Is there any sort of extension or workaround that can determine what text was just deleted from the Rich Edit? I had a setup using the string parser but it doesn't quite work if there are multiple punctuation or special characters in a row. If I set ! as a delimiter, I can't get proper feedback when !!! is deleted, since all three exclamation points are deleted at once if control is held when backspace is pressed.

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Here is an example of the trouble I'm having. If anyone can help figure out how I can determine what text was just deleted from the object, I will be SO grateful. This is an issue I've had for months and have recently tried to solve yet again.

    control backspace.mfa

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    iOSC's Avatar
    Join Date
    Mar 2012
    Location
    Toronto, Canada
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I 've got an example for you, let me know if it helps and if it's obviously what you need
    edit : determine_deleted_words.mfa

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    iOSC's Avatar
    Join Date
    Mar 2012
    Location
    Toronto, Canada
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey guy, what's about?

  5. #5
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Snail, I haven't had time to sit down and sort out a loop method just yet, but I may give that a try.

    iosconstruct, thanks for the example! It seems to work well, though I need to tweak it so if you keep control held down but press backspace repeatedly, it refreshes and only says what was deleted with each press of backspace. As it stands, control must be released between each press of backspace.

    Perhaps between these two ideas I can determine a way to retrieve what was deleted, regardless of what method was used to delete the text (backspace, control + backspace, deleted selection, etc.). Thanks so much for the input. I'm still trying to get it just right so if you guys have more ideas I'd love to hear them!!

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    iOSC's Avatar
    Join Date
    Mar 2012
    Location
    Toronto, Canada
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just add :
    Code:
    Object Rich Edit: Set carret_old to GetChar("Object Rich Edit")
    at the end of condition #3 (backspace pressed + ctrl hold on), right after "set deleted" action.

  7. #7
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much for helping me sort this out. Works like a charm!!!

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    iOSC's Avatar
    Join Date
    Mar 2012
    Location
    Toronto, Canada
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    About your PM, here is a new version of this example,
    Only thing is not supported, selection by mouse from left to right, else are supported :
    - CTRL+Backspace
    - SHIFT+Left/Right+Backspace
    - Select with mouse from right to left + Backspace
    Hopefully it'll help.

Similar Threads

  1. Transparent Rich Edit Text?
    By Pablo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th July 2010, 04:19 PM
  2. Get text: Rich Edit 2.0
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th July 2009, 01:17 PM
  3. Rich text edit box
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th September 2007, 12:08 PM
  4. Coloured Text using Rich Edit Object
    By LaraSoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th July 2007, 03:16 PM
  5. How do I "Set RTF text" in Rich Edit Box?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th December 2006, 06:24 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
  •