Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. RichEdit wrapper?

RichEdit wrapper?

Scheduled Pinned Locked Moved C#
comquestionannouncement
8 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TuringTest1
    wrote on last edited by
    #1

    Recently Filomela posted a nice article "Enhanced rich edit control" http://www.codeproject.com/richedit/MyRtfFileHandling.asp[^]. Is there a dot net wrapper for this? I'd email Filomela but i can't find any other posts from Filomela except his rather nice article! Alternatively, does anyone know of a dot net control that comes with simple editing, some version of standard menus and formatting buttons built in? TIA! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

    H 1 Reply Last reply
    0
    • T TuringTest1

      Recently Filomela posted a nice article "Enhanced rich edit control" http://www.codeproject.com/richedit/MyRtfFileHandling.asp[^]. Is there a dot net wrapper for this? I'd email Filomela but i can't find any other posts from Filomela except his rather nice article! Alternatively, does anyone know of a dot net control that comes with simple editing, some version of standard menus and formatting buttons built in? TIA! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Just post a message at the bottom of the article. Messages are forwarded to the article's author(s). For read-made RTF controls, I'm sure there is existing ones, but this actually isn't hard to do yourself. The RichTextBox already has methods for most of the features you need (like Cut, Copy, and Paste), and things like font families, colors, and styles are hard to do either. To find existing ones, just search or browse this site, or try googling the rest of the 'net (which includes CodeProject articles in the search, of course).

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      T 1 Reply Last reply
      0
      • H Heath Stewart

        Just post a message at the bottom of the article. Messages are forwarded to the article's author(s). For read-made RTF controls, I'm sure there is existing ones, but this actually isn't hard to do yourself. The RichTextBox already has methods for most of the features you need (like Cut, Copy, and Paste), and things like font families, colors, and styles are hard to do either. To find existing ones, just search or browse this site, or try googling the rest of the 'net (which includes CodeProject articles in the search, of course).

        -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

        T Offline
        T Offline
        TuringTest1
        wrote on last edited by
        #3

        Heath, thanks, i guess you didn't understand my post. Upon googling the net i came across an edit control that seems to have some very nice properties. It was written by someone named Filomela and posted Sept 14 2003. It seems to be based on an MFC control (?) called RichEdit. I would contemplate writing such control myself, since all the elements are there, but it would take me some non trivial amount of time (2 weeks??) to understand stuff like bullets and indents, find the correct images for the buttons, and so on. And after i was all done my code might even have bugs in it. Furthermore, having already noticed that there are lots of variants of the MFC RichEdit control, which are quite similar to what i'm looking for, i thought this might actually be a common problem. so i thought perhaps the dotnet community might have also have produced either some native versions or a managed wrapper for RichEdit. But on googling with c# and managed, i didn't turn up anything besides the MFC type stuff. So i thought i'd post the question, and title it "RichEdit wrapper?", to see whether anyone has come across a dotnet version of something like Filomena's article, or if not, would anyone like to recommend their favorite component library with a good lightweight rtf editor? Thanks in advance! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

        H 1 Reply Last reply
        0
        • T TuringTest1

          Heath, thanks, i guess you didn't understand my post. Upon googling the net i came across an edit control that seems to have some very nice properties. It was written by someone named Filomela and posted Sept 14 2003. It seems to be based on an MFC control (?) called RichEdit. I would contemplate writing such control myself, since all the elements are there, but it would take me some non trivial amount of time (2 weeks??) to understand stuff like bullets and indents, find the correct images for the buttons, and so on. And after i was all done my code might even have bugs in it. Furthermore, having already noticed that there are lots of variants of the MFC RichEdit control, which are quite similar to what i'm looking for, i thought this might actually be a common problem. so i thought perhaps the dotnet community might have also have produced either some native versions or a managed wrapper for RichEdit. But on googling with c# and managed, i didn't turn up anything besides the MFC type stuff. So i thought i'd post the question, and title it "RichEdit wrapper?", to see whether anyone has come across a dotnet version of something like Filomena's article, or if not, would anyone like to recommend their favorite component library with a good lightweight rtf editor? Thanks in advance! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          TuringTest1 wrote in original post: I'd email Filomela but i can't find any other posts from Filomela except his rather nice article! It was this statement that prompted me to recommend that you post a message at the bottom of the article. I understood your query just fine. What I was saying is that the RichTextBox already supports the functionality he's using. He's exploiting such functionality in MFC (using C/C++) just like you can exploit the functionality of the RichTextBox in .NET. Upon searching - and to my amazement - there really isn't much on canned RTF control solutions complete with toolbars. I can send you some source I have that I wrote for our app. It doesn't have everything you're looking for, but most of it and there should be enough there for you to figure out how to add the rest. I'll send you the required source and you can look it over. It should compile fine, so just instantiate it and add it to a form. I'll send it to the email address I saw when I got notification that you replied. If you know that won't work, please send me a private email to this message (click the Email link at the bottom of this message).

          -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

          T 1 Reply Last reply
          0
          • H Heath Stewart

            TuringTest1 wrote in original post: I'd email Filomela but i can't find any other posts from Filomela except his rather nice article! It was this statement that prompted me to recommend that you post a message at the bottom of the article. I understood your query just fine. What I was saying is that the RichTextBox already supports the functionality he's using. He's exploiting such functionality in MFC (using C/C++) just like you can exploit the functionality of the RichTextBox in .NET. Upon searching - and to my amazement - there really isn't much on canned RTF control solutions complete with toolbars. I can send you some source I have that I wrote for our app. It doesn't have everything you're looking for, but most of it and there should be enough there for you to figure out how to add the rest. I'll send you the required source and you can look it over. It should compile fine, so just instantiate it and add it to a form. I'll send it to the email address I saw when I got notification that you replied. If you know that won't work, please send me a private email to this message (click the Email link at the bottom of this message).

            -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

            T Offline
            T Offline
            TuringTest1
            wrote on last edited by
            #5

            wow-- it came through just fine.. i see, you werent talking out of your hat, you've taken your own advice already.. :-D and i will do a post at the bottom of the article-- thanks! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

            H 1 Reply Last reply
            0
            • T TuringTest1

              wow-- it came through just fine.. i see, you werent talking out of your hat, you've taken your own advice already.. :-D and i will do a post at the bottom of the article-- thanks! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

              H Offline
              H Offline
              Heath Stewart
              wrote on last edited by
              #6

              I don't usually "talk out of my hat". It's from experience and a great memory. Sometimes people that annoy me (those constant reposts or those that don't get the point after 100 messages) I give blind advice to that usually works (but not always), but I hold true to "give a man a fish and you'll feed him for a day; teach a man to fish and you feed him for life". Know what I mean? :) Anyway, hope you like it. As I said, the RichTextBox already has all the functionality you need (well, maybe not some wild ideas you might see in Word or from third-party solutions from scratch). It's just a matter of exposing that functionality through a UI.

              -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

              T 1 Reply Last reply
              0
              • H Heath Stewart

                I don't usually "talk out of my hat". It's from experience and a great memory. Sometimes people that annoy me (those constant reposts or those that don't get the point after 100 messages) I give blind advice to that usually works (but not always), but I hold true to "give a man a fish and you'll feed him for a day; teach a man to fish and you feed him for life". Know what I mean? :) Anyway, hope you like it. As I said, the RichTextBox already has all the functionality you need (well, maybe not some wild ideas you might see in Word or from third-party solutions from scratch). It's just a matter of exposing that functionality through a UI.

                -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

                T Offline
                T Offline
                TuringTest1
                wrote on last edited by
                #7

                :-O Ok, ok-- you are absolutely correct. This IS the much better way to do it. :confused: i do have a question about imagelists, before i be fishing for some within some well known apps, do you happen to know whether these are available in vs or msdn-- or more to the point, whether ms has a policy of encouraging standard images for buttons to get a standard user experience in stuff like rtf button design, or whether they view that as every app's value-add. :cool: in any case, yet once again thanks for the fishing tips!! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

                H 1 Reply Last reply
                0
                • T TuringTest1

                  :-O Ok, ok-- you are absolutely correct. This IS the much better way to do it. :confused: i do have a question about imagelists, before i be fishing for some within some well known apps, do you happen to know whether these are available in vs or msdn-- or more to the point, whether ms has a policy of encouraging standard images for buttons to get a standard user experience in stuff like rtf button design, or whether they view that as every app's value-add. :cool: in any case, yet once again thanks for the fishing tips!! ________________________________________ Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain. Then perhaps I'd deserve ya, and be even worthy of ya.. if I only had a brain!

                  H Offline
                  H Offline
                  Heath Stewart
                  wrote on last edited by
                  #8

                  Actually, look at the thread right below this current thread! :) (http://www.codeproject.com/script/comments/forums.asp?msg=706678&forumid=1649#xx706678xx[^]) You can also find common icons and image strips in shell32.dll, and in your Common7\Graphics subdirectory of your Visual Studio installation directory. If you use bitmaps, make sure you set the ImageList.TransparentColor before adding images, and that all the bitmaps (or the image strip) uses the same color mask (magenta is common).

                  -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups