[SOLVED]v17.x Bug: EnableFrameTheme locks editing |
Post Reply |
Author | |
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 17 May 2016 at 10:35am |
I'm using version 17.2 of the software and what I have is ribbons and enabled frame theme. As a view I use a CHtmlEditView. (using VS2015 dark theme)
The problem is that if I call EnableFrameTheme and the resize the main frame windows using the mouse to drag the border, the html edit view stops working: the cursor is not visible any more, it reacts extremely slow to keyboard input, OnDocumentComplete is never called when loading a webpage etc. so it seems like messages are stopped somewhere. If I don't enable frame theme, then resizing and editing works just fine. It doesn't give any problem if size is change by maximize/restore buttons, just when dragging the frame to resize. What can be the problem? Is there any workaround?
|
|
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Here is a project to reproduce the bug:
1. Make sure that the application is not maximized. 2. Write something in the html edit view 3. Resize the right main frame border a few times by dragging with the mouse (not too slow). 4. Try to write in the html edit view - no caret is available and it goes very slow |
|
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
I tried to swap the RTFView to a HtmlView in the same Ribbon sample for version 16.26 and there is worked, so it's something that has been introduced to version 17. Can you please fix that for next release?
|
|
agontarenko
Admin Group Joined: 25 March 2016 Status: Offline Points: 299 |
Post Options
Thanks(0)
|
Hello,
I'm glad to inform you that the issue has been fixed. The fix will be available in the next beta or final release. As hotfix you cah change function as below: void CXTPFrameShadow::OnLButtonDown(UINT nFlags, CPoint point) ... switch (msg.message) { case WM_KEYDOWN: bDoLoop = (VK_ESCAPE != msg.wParam); break; case WM_KILLFOCUS: case WM_LBUTTONUP: bDoLoop = FALSE; break; case WM_MOUSEMOVE: Drag(nHitTest, ptOffset, szMinSize); break; default: //Add lines DispatchMessage(&msg); break; } ... Regards, Artem Gontarenko |
|
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Thanks! Looking forward to next update!
|
|
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 |