[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Paste in CRichEditCtrl. Help !!!!

hi,
I created a text editor based on CrichEditCtrl, but I have a big problem with it.
The CRichEditCtrl does not accept specific characters from specific Font type.
For example : The Font “Arial” with Subset “Mathematical Operators”.
If I copy a character from the above configuration and paste it to the CrichEditCtrl, I get the
“?”, and not the character I was pasting.
This also happens in the “WordPad” application.
The issue is very important for me.
Can someone tell in details what can I do ?

Yoav
0
yoavo
Asked:
yoavo
1 Solution
 
mikeblasCommented:
The problem your having is that the default "paste" implementation of a rich edit control doesn't get any font information from the clipboard unless the information on the clipboard is in RTF format.

I'd assume that you're copying the characters from the charmap tool (you don't bother to say), which doesn't provide the RTF format to the clipboard.

So, you get the default font in the control. It sounds like the default font you have doesn't have a rednering for the character you're trying to paste.

You need to write a paste handler that can get available font information from the clipboard. But that still won't work unless the application that copied the information also includes the font info in a format you can accept. So, it's important to know who will be providing the information to your app in typical paste scenarios the user has. Otherwise, you'll not get what you really want.

..B ekiM
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now