Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPControlEdit & context help conflict
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlEdit & context help conflict

 Post Reply Post Reply
Author
Message
Joe19 View Drop Down
Newbie
Newbie


Joined: 11 May 2007
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joe19 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlEdit & context help conflict
    Posted: 30 April 2008 at 2:11pm
Using 11.2.2 version of tools.  I have a ribbon bar based application.  Also using html help.  I am trying to setup context sensitive help (user presses the F1 key while on a control, the relevant help section in the help file is displayed).
 
If I have a CXTPControlEdit control in the ribbon bar and if it has focus and the help file is open the help file becomes unresponsive.  The help window will not accept any input.  It can be dragged, but not closed. 
 
If the focus is switched to another control the help window behaves correctly.  Focus back on the edit control and the help file locks again.
 
I am able to produce the problem in the exampe SDI Ribbon project.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2008 at 2:00am
Hello,
 
Thanks, I see.
 
As workaround for now add virtual

virtual void WinHelpInternal(DWORD_PTR dwData, UINT nCmd = HELP_CONTEXT);

...
 
void CRibbonSampleApp::WinHelpInternal(DWORD_PTR dwData, UINT nCmd )

{

XTPMouseManager()->SendTrackLost();

CWinApp::WinHelpInternal(dwData, nCmd);

}

it will close all popups and kill edit focus befo show HtmlHelp.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Joe19 View Drop Down
Newbie
Newbie


Joined: 11 May 2007
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joe19 Quote  Post ReplyReply Direct Link To This Post Posted: 02 May 2008 at 5:14pm
This only partially solved the problem.  This works in when tne initial F1 key is pressed.  However if you change focus back to the edit control in the application the problem comes back.
 
This is a minor enough issue I'll be happy if you can resolve when you do your next toolkit update.  Workaround is of little priority.  Thanks,
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.079 seconds.