Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 5th, 2006, 11:02 PM   #1
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Old Aug 6th, 2006, 2:18 AM   #2
Kennedy
Newbie
 
Join Date: Aug 2006
Location: Alabama
Posts: 26
Rep Power: 0 Kennedy is on a distinguished road
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.
Kennedy is offline   Reply With Quote
Old Aug 10th, 2006, 11:25 PM   #3
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 242
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
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
melbolt is offline   Reply With Quote
Old Aug 17th, 2006, 11:50 AM   #4
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Old Aug 20th, 2006, 2:13 PM   #5
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 242
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
Quote:
Originally Posted by bigguy
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.
so you created a wordpad file and now are trying to print it out inside of your textbox in your app?
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC