Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [SOLVED]v17.x Bug: EnableFrameTheme locks editing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]v17.x Bug: EnableFrameTheme locks editing

 Post Reply Post Reply
Author
Message
maxxan View Drop Down
Groupie
Groupie


Joined: 15 July 2009
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxxan Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]v17.x Bug: EnableFrameTheme locks editing
    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?
Back to Top
maxxan View Drop Down
Groupie
Groupie


Joined: 15 July 2009
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxxan Quote  Post ReplyReply Direct Link To This Post 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 

Back to Top
maxxan View Drop Down
Groupie
Groupie


Joined: 15 July 2009
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxxan Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
agontarenko View Drop Down
Admin Group
Admin Group


Joined: 25 March 2016
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
maxxan View Drop Down
Groupie
Groupie


Joined: 15 July 2009
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxxan Quote  Post ReplyReply Direct Link To This Post Posted: 05 July 2016 at 3:46am
Thanks! Looking forward to next update!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.