Results 1 to 14 of 14

Thread: Free RTF editor, complete project included

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518

    Smile Free RTF editor, complete project included

    Hey all,

    I had to write an editor for a project I'm working on, and I figured since it was already done and enough of it was a PITA to run down (for me anyhow) I might as well post the project here if anyone has a use for it.

    Features:
    - File load/save (didn't need this but added just for forum folks )
    - Keeps track of whether you've saved since changing text
    - Font control
    - Size control
    - Indent/outdent
    - Undo
    - Left/Center/Right alignment
    - Toolbar auto-updates when cursor position moves
    - System fonts are read and their short names extracted into a combobox at runtime
    - Pretty heavily commented

    Notes:
    - No printing, sorry, not on my plate, although printing isn't that hard to add to richtextbox apps
    - The two comboboxes for font and size appear to be contained by the toolbar, but in fact they are not; I cheated and just placed them carefully. On some systems they might not draw in quite the correct place.
    - No try/catch blocks. Wasn't especially on my agenda either, as the version of the editor I'm using doesn't work with files and exceptions are unlikely enough that I don't really care about them at this point.
    - It may be that some of my code is very amateurish. Oh well!

    Have fun. Dedicated to all those who have helped me tremendously at various times in the past (edneeis, hellswraith, mrpolite and others)
    Attached Files Attached Files

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Very nice of you to share some of your work with us Slow_Learner .

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    After all the good stuff I've gotten out of this forum it's the least I can do. I just hope somebody gets some use out of it. Writing an editor turned out to be unexpectedly hard But not too bad, took about a day and a half to do it. Thanks for the feedback!

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Well , why don't you upgrade it to VB.NET Code Editor at least .Sounds cool .

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    That's kind of beyond what I was working on (understatement)

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Here is a package of the icons you used plus a couple other common ones, but with transparent backgrounds so they jive with my xp theme. Thanks for the RTF Editor.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    Aha thanks a ton, finding the icons was actually the hardest part! The ones included with the environment are in bitmap format and as you say they don't have transparent backgrounds, plus I had to cut/paste the indent/outdent buttons

    thanks for the icons!

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    That's nice stuff, thanks Pirate - my problem at the time was I was stubborn and really nitpicky, wanted my app to look really close to WordPad

  10. #10
    Lively Member
    Join Date
    Jan 2003
    Posts
    69

    Thumbs up

    Thank You Slow_Learner Very kind of you,
    cgj

  11. #11
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145

    'run' icon

    Anybody has 'run' icon (enabled/disabled)?

  12. #12
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Whats the Run icon? Do you mean like the VB IDE? The Triangle?

  13. #13
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145
    Yes. Triangle or !.

  14. #14
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: Free RTF editor, complete project included

    Thanks Slow_Learner very nice.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width