User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Rich Text Editing problem - need answering quickly

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rich Text Editing problem - need answering quickly

    Hey, I'm having a really strange problem with the rich text edit option. Basically, I have several RTF files in a directory within the place my file is stored. In the app itself, I have a Tree Control Object that shows all the files within that folder, and a Rich Text Edit object that should load the file clicked on. To reference to the file, I use the code:

    "Button" is clicked
    -Load RTF text from Apppath$+"Software\"+GetTextFromIndex$( "Tree Control", GetCurSelID( "Tree Control" ))

    I know that that references to the right path, as the string to the side shows what file is running using Alterable String and gets the right path. However, when the text appears in the RTE Object, it seems to be corrupted or something, with tons of excess data like:

    si\ansicpg1252\uc1\deff0\stshfdbch0\stshfloch0\sts hfhich0\stshfbi0\deflang2057\deflangfe2057{\fonttb l{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f36\froman\fcharset238\fprq2 Times New Roman CE;}
    {\f37\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f39\froman\fcharset161\fprq2 Times New Roman Greek;}{\f40\froman\fcharset162\fprq2 Times New Roman Tur;}{\f41\froman\fcharset177\fprq2 Times New Roman (Hebrew);}
    {\f42\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f43\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f44\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0 \green0\blue255;\red0\green255\blue255;
    \red0\green255\blue0;\red255\green0\blue255;\red25 5\green0\blue0;\red255\green255\blue0;\red255\gree n255\blue255;\red0\green0\blue128;\red0\green128\b lue128;\red0\green128\blue0;\red128\green0\blue128 ;\red128\green0\blue0;\red128\green128\blue0;
    \red128\green128\blue128;\red192\green192\blue192; }{\stylesheet{\ql \li0\ri0\widctlp

    However, when I use Load RTF from Selector, it works fine, so I can only assume the problem lies with the formula. However, using this isn't suitable for what I'm doing with the software.

    Can anyone help with this? I need it real quick, the deadline is tommorow @_@

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    Queensland, Australia
    Posts
    317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    Those are RTF settings, that you would see opening an RTF in notepad... I don't know why that would show up in the RTF object though...

  3. #3
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    Does the file have the RTF extension? That would probably convince it not to load it as a TXT.

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

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    Yes, it has the RTF extension. I don't understand why it won't load properly...

    Can anyone else help?

  5. #5
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Jun 2006
    Location
    Wales
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    I think your problem is that you need to tell the Rich Text object that it is a .rtf file in your expression...
    Something like Load RTF text from apppath$+"Software\"+GetTextFromIndex$( "Tree Control", GetCurSelID( "Tree Control" )) +".rtf"
    I have seen this and am pretty sure this is how I solved it.
    Rick

  6. #6
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    No, that just adds another .rtf to the file, where it is already present. So I end up with, for eg, "software.rtf.rtf", which obviously doesn't load anything as the text isn't found.

  7. #7
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    If GetTextFromIndex$ returns a string with ".rtf" at the end then it shouldn't make a difference.

    Perhaps upload the file?

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

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    http://www.megaupload.com/?d=7XQGPJB8

    Here ya go. Please look at the "Software" frame, as that is the one that contains a couple of RTF files (yet to update the other frames correctly due to this problem, so ignore them). Also ignore the .doc format files. I just simply haven't gotten around to deleting them yet.

    Oh, wait. Think I uploaded the wrong version ^_^;;

    One sec.

    EDIT2: Hah, ignore me. 'Twas the right version :blush:

  9. #9
    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: Rich Text Editing problem - need answering qui

    think i worked it out. you chose load ascii text instead of load rtf text. try changing it to rtf text and it works.

  10. #10
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rich Text Editing problem - need answering qui

    Omg... I can't believe I made such a simple error as that :blush:

    Thanks lembi, for helping me solve that one. And the rest of you guys for your support.

    That may go up on the considerable list of "daft things I shouldn't have done"

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Rich Text
    By Game_Master in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 28th December 2013, 02:44 PM
  2. Wildcard possible with - Rich Text Object: Controls > Find > Find and Select Text ??
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd March 2013, 01:28 PM
  3. Text Reading And Editing
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th November 2009, 07:09 PM
  4. RTF - Rich Text Format - Formatting Text
    By Gustav in forum File Archive
    Replies: 4
    Last Post: 2nd February 2007, 08:59 PM
  5. rich text et text formate
    By rurkryber in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th November 2006, 11:43 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
  •