Richtextbox

J

John Baro

1) When you select the "absolute" end of a richtextbox (go to last
character, hold down "shift" and click right keyboard button), the font
changes to the default of the richtextbox.
How can I set this so that when the user changes font, if its the end of the
rtb, this font changes as well?

2)Why is it that when multiple fonts are selected, the selectionfont
property does not return null?

3)Same with the size.

Checked in vb6 and multiple font selection behaves as above.

TIA

JB

Life is a finite resource, enjoy it while you can.
 
J

John Baro

John Baro said:
1) When you select the "absolute" end of a richtextbox (go to last
character, hold down "shift" and click right keyboard button), the font
changes to the default of the richtextbox.
How can I set this so that when the user changes font, if its the end of the
rtb, this font changes as well?

2)Why is it that when multiple fonts are selected, the selectionfont
property does not return null?

Now, finally, after doing nothing, this is returning null when multiple
fonts are selected.
3)Same with the size.

Since there is no selectionfontsize prop that I can see, there is no
possibility for this, other than parsing the selectedrtf and finding the
size if the selection contains multiple fonts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

RichTextBox EM_GETCHARFORMAT 2
Richtextbox (RTB) 2
Font Problem 1
RichTextBox 4
Rich Text parsing with RichTextBox 1
problem of RichTextBox 1
Get font and color from RichTextBox 5
RichTextBox and Emdashes 3

Top