Rich Edit Control on a CXTPShortcutPane Client |
Post Reply |
Author | |
omtara
Groupie Joined: 22 December 2007 Status: Offline Points: 10 |
Post Options
Thanks(0)
Posted: 22 December 2007 at 12:24pm |
I am having problems attaching a CRichEditCtrl to a CXTPShortcutPane. When replaced by a CEdit control, everything works fine.
I have also tried to use the exact creation code in a CDialog and the CRichEdit is functioning properly.
In my code, I am overriding the "Create" function of the "CXTPShortcutPane" derived class and have added the following code:
////////////////////////////////////////////////////
///////////////////////////////////////////////// The problem is that the pane containing a richedit control is not updated when its shortcut it is supposed to.
Please note that my CXTPShortcutBar derived class is also derived from CView and is attached to a splitter frame when the program starts.
I have been working on this problem for three days with no clue. Thanks in advance,Omtara
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
try to reproduce this problem with our smple and attach project here.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
omtara
Groupie Joined: 22 December 2007 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Thanks for your time, When trying to reproduce the problem with the Shortcutbar example, I finally found out that the problem is because I am using a right-to-left layout for my entire program.
I was able to reproduce the problem in the Scribble multi-language example. I simply changed the main view to a CRichEditView class and added the neccesary translation files (Scribble.ResourceArSa.dll and .xml)
I have attached the modified project for your convienience. I had to change some of the project settings to make everything work in a single directory. You may need to specify the directory for the XTP lib folder.
To check out the issue, you can run the example and switch to Arabic from the command bar. When the layout becomes right-to-left, the rich edit control malfunctions.
Sorry for reporting an inaccurate issue at first,
Omtara
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
RichEdit doesn't support WS_EX_LAYOUTRTL. try WS_EX_RIGHT style instead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
omtara
Groupie Joined: 22 December 2007 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Thanks for the prompt reply,
Do you know where I could do such a change while keeping everything RTL (Menus, Commandbars, etc..) and have the Rich edit control work fine?
Thanks in advance,
Omtara
|
|
omtara
Groupie Joined: 22 December 2007 Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Solved bro...
Thanks again for your support, Omtara |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |