|
-
Sep 4th, 2001, 02:52 PM
#1
Thread Starter
Hyperactive Member
Font Common Dialog?
Ok, i have a RichTextBox1, and i have a CommonDialog1, now how do i get it to work when selected text = font selected from the Font Dialog screen? (Am i making any sense?)
-$uper-$tar
-
Sep 4th, 2001, 02:56 PM
#2
PowerPoster
Like this I think
VB Code:
CommonDialog1.ShowFont
RichTextBox1.SelFontName = CommonDialog1.FontName
I can't test it because it says I don't have any fonts installed!
-
Sep 4th, 2001, 02:58 PM
#3
Thread Starter
Hyperactive Member
Same problem here too
No fonts? but... how does it find em?
J/w
~$uper-$tar
-
Sep 4th, 2001, 03:03 PM
#4
PowerPoster
Fixed it!
VB Code:
CommonDialog1.Flags = cdlCFBoth
CommonDialog1.ShowFont
RichTextBox1.SelFontName = CommonDialog1.FontName
-
Sep 4th, 2001, 03:05 PM
#5
Thread Starter
Hyperactive Member
LoL Nice!!!
You wouldn't know the print screen, or color would ya? LoL
~$uper-$tar
-
Sep 4th, 2001, 03:11 PM
#6
PowerPoster
You want to set the colour too? Try this
VB Code:
CommonDialog1.ShowColor
RichTextBox1.SelColor = CommonDialog1.Color
-
Sep 4th, 2001, 03:14 PM
#7
Thread Starter
Hyperactive Member
Okida :)
Going at it right now 
~$uper-$tar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|