I'm hoping to use Microsoft's DHTML editor box in VB instead of a RichTextBox as part of an application where users can compose HTML emails.
As a first step I'm trying to replicate the functionality of a RTF box in so far as a rudimentary toolbar goes. I can use:
to get the name of the font where the cursor is, and similarly the font size.
Is there a way to find out other font attributes such as Bold, Italic and Underline? I know that DECMD_BOLD sets the text to bold but how do I find out whether the text where the cursor is is bold or not (or part bold, part normal)?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
As a first step I'm trying to replicate the functionality of a RTF box in so far as a rudimentary toolbar goes. I can use:
Code:
N$ = Editor.ExecCommand(DECMD_GETFONTNAME)
Is there a way to find out other font attributes such as Bold, Italic and Underline? I know that DECMD_BOLD sets the text to bold but how do I find out whether the text where the cursor is is bold or not (or part bold, part normal)?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments