Print Page | Close Window

[SOLVED]v17.x Bug: EnableFrameTheme locks editing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23026
Printed Date: 05 October 2024 at 1:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]v17.x Bug: EnableFrameTheme locks editing
Posted By: maxxan
Subject: [SOLVED]v17.x Bug: EnableFrameTheme locks editing
Date 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?



Replies:
Posted By: maxxan
Date Posted: 19 May 2016 at 7:53am
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 

uploads/5380/RibbonMDISample.zip" rel="nofollow - uploads/5380/RibbonMDISample.zip


Posted By: maxxan
Date Posted: 14 June 2016 at 3:33am
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?


Posted By: agontarenko
Date Posted: 04 July 2016 at 9:31am
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


Posted By: maxxan
Date Posted: 05 July 2016 at 3:46am
Thanks! Looking forward to next update!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net