User Tag List

Results 1 to 9 of 9

Thread: Search RTF Bolded Words

  1. #1
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Search RTF Bolded Words

    Is there a way to search for only bolded words in the RTF?

    Thanks
    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    You can use the build in search and check with the conditions if the results are bold etc. or you write your own search engine through fast loops and check the format of every charakter (but as you should know this could take a long time).

    This shouldn't be not too hard to figure out...

  3. #3
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    Thanks for your thoughts Gustav. I am using the built in search feature. The problem I am having is checking the results, if the word(s) are bolded.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    Well since this thread is 2,000 years old now, and I have been told it was simple to figure out, I sure would appreciate some help.

    I am trying to redesign the MMF2 Tech Manual to make it easier to navigate for everyone.

    How do you search an RTF for only bolded text using the standard search?

    PS For anyone mentioning bringing up old threads, "may fleas from a 1,000 camels infest your arm pits".

    Thanks,
    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    I'm not sure if this is at all possible. Are you creating the text within the rtf object at runtime?? if so you could use some sort of variable system to record the caret position when you bold a word. other than that i'm not sure.

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    Thanks for the response. RTF text is being loaded into an RTF Box at runtime.. Using an Edit Box for the search.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker Multimedia Fusion 2

    Join Date
    Jan 2007
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    Well, the RTF object has a condition "Character -> Is bold?", which checks if bold is turned on at the current caret position.
    Wouldn't you able to use this and what's written the above (search first and then check if it's bold)?
    If you can't change the caret position, an option would to copy the text into a 2nd rtf object.

  8. #8
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    I can confrim what Hernan is saying to be true. I have just quickly tested it and found that you can perform a search using this method.

    I did it by using the following method

    Button "Search" clicked
    - find and select Text (Edit Box)
    -Set Alterable value A of RTF object to 1

    Alt val A of RTF=1
    +Character is bold
    -Set counter to 1

    Alt val A of RTF=1
    + X(negated) Character is bold
    -Set counter to 2

  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Search RTF Bolded Words

    Thanks Hernan.

    I found a solution and I will share:

    I negated Character in RTF is Bold
    >Find and Select Next

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Search function - Search a Word in a couple of strings for example
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 22nd February 2012, 03:51 PM
  2. Search Object Simple Search
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 1st July 2008, 04:21 PM
  3. Replies: 17
    Last Post: 8th January 2007, 11:59 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
  •