![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Different fonts in my rtf box
Hey yall. I am making a word processor type thing. I need to know how to make my text in the rtf box at different fonts that I'm assignign and when I save the f8ile and the user opens it it still shows the same type of font and tab's, spaces etc etc Thanks in advance
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Aug 2006
Location: Alabama
Posts: 26
Rep Power: 0
![]() |
Perhaps I am wrong in this. . . but I have had a similar situation with my program. From all the documentation I have read, you cannot change fonts/colors for individual lines (or partial lines) in richedit, listbox, etc predefined types. You will have to create a window and control all the painting in that window yourself. If I am wrong, we will both learn something. . . If I am correct, we'll talk off-line and perhaps I'll share some of my code with you.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
normally you can't have multiples by default, but its possible with a custom control or a wrapper such as this: http://www.vbaccelerator.com/home/ne...er/article.asp
this guy shows you how to make a font picker combo and have it apply to your richtextbox control. he wrote a little wrapper in which he gives all the source and a tutorial to boot. an alternative would be to purchase a control to add into your tools such as this: http://www.bennet-tec.com/btproducts...xt/alltext.htm enjoy.
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#4 |
|
Professional Programmer
|
No, I dont know what I did, but I just needed to open a letter. and I used different fonts in wordpad, and when I opened the letter in my program, it shows everything the same way it was created.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
|
Quote:
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with fonts... | Sane | Python | 4 | Oct 28th, 2005 1:11 PM |
| colors. fonts and font size inside the table ?_? | cloud- | HTML / XHTML / CSS | 2 | Mar 12th, 2005 3:10 PM |