Ticket Q426491
Visible to All Users

Rich Text Toolbar-buttons aren´t updated on MFC-dialog

created 13 years ago

Hi all,

We created a RichTextControl and added a Bar Menu based on your
How to: Create a Simple Word Processor with Bar Menu
http://documentation.devexpress.com/#WindowsForms/CustomDocument5807
All works fine, until we used the control on a MFC-Dialog.
There occurs a wrong behaviour with the formatting toolbars:
We attached a sample MFC-Project of Microsoft
http://msdn.microsoft.com/en-us/library/ms239718%28v=vs.80%29.aspx
and added the RichTextControl to it.

Steps to reproduce:
Start the MFC04.exe,
click New,
then select Dialog,
click Ok and then
click one of the Open buttons.
Type some text into the control,
select a part of it and
change the style with the toolbarbuttons (Bold, Italic …)
Now move the caret into the not formatted text
-> the buttons (you selected before) aren't reseted to match the formating of the text at the caret.

This behaviour only occurs when we use the control on a MFC-Dialog. It also happens when we use newer versions (till 12.1).
On a Winform it works fine.

Do you have an idea what we could try?

Thanks in advance
Kerstin

Answers

created 13 years ago (modified 13 years ago)

Hi,
The native .NET environment is preferable to host RichEditControl. We do not guarantee that our components can be accessed in the non-.NET environment. See also: RichEditControl used for Outlook Addin, UserControl with XtraRichEdit.
Thanks,
Alessandro.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.