Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl, pop-up menus, and mouse problems...
ArrayCtrl, pop-up menus, and mouse problems... [message #15248] |
Fri, 11 April 2008 17:01 |
|
tvanriper
Messages: 85 Registered: September 2007 Location: Germantown, MD, USA
|
Member |
|
|
I think I found a bug with the ArrayCtrl's pop-up menu support. I'm not sure how best to resolve it.
Environment
- Ultimate++ 2008, Beta 2.
- Windows Vista OS
- Visual C++ 2005
Steps to reproduce:
- Create a dialog with an ArrayCtrl.
- Call the control's AutoAppending().Inserting().Removing().AskRemove() functions to set it up.
- Run the application, call up the dialog, and right-click in the ArrayCtrl to bring up the pop-up menu.
- Click off the menu (that is, do not click one of the menu items, but somewhere else in the dialog).
Expected result:
Pop-up menu goes away.
Actual result:
Pop-up menu continues to remain.
|
|
|
Re: ArrayCtrl, pop-up menus, and mouse problems... [message #15250 is a reply to message #15248] |
Fri, 11 April 2008 17:21 |
|
tvanriper
Messages: 85 Registered: September 2007 Location: Germantown, MD, USA
|
Member |
|
|
Hrm... I may have found another bug related to this. Or maybe it's a separate bug, I'm not sure.
Environment
As mentioned in the previous message.
Steps to reproduce
- Create a dialog with an ArrayCtrl (I used the layout tool for this, if that helps).
- Call the functions as the message above.
- Ensure the dialog has an Acceptor and Rejector for an OK and Cancel button.
- Run the application, and bring up the dialog.
- Right-click on the ArrayCtrl, to bring up the pop-up menu.
- Hold the mouse pointer over the pop-up menu, and tap the ESC key, to close the pop-up menu.
- Click on either the OK or Cancel button.
Expected result
Cancels or accepts the input, depending on the button you press.
Actual result
The dialog does not appear to do anything. The only way to close the dialog, at this point, is to click on the 'Close' button in the upper-right corner (the one on the title bar).
Keyboard accelerators for these buttons do not seem to make the button work, either.
I tried changing the buttons to call a custom function through THISBACK, and call Break() from within the custom function. It still fails to close the dialog. Debugging, I see that EndLoop gets called (within CtrlCore.h), but has no effect.
|
|
|
|
|
Re: ArrayCtrl, pop-up menus, and mouse problems... [message #15398 is a reply to message #15248] |
Mon, 21 April 2008 00:36 |
|
tvanriper
Messages: 85 Registered: September 2007 Location: Germantown, MD, USA
|
Member |
|
|
I tried to reproduce it in a simple environment, but it's proving to be difficult.
I suspect the problem has something to do with threading, especially given what I saw in the debugger. As I don't have multiple threads running in my simple environment so far, I may be missing the nature of the problem.
I do not know if it helps to know this, but I used boost::thread for thread support (it has a clean, consistent feel that I like).
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 22:26:17 CEST 2024
Total time taken to generate the page: 0.02676 seconds
|