Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
tvanriper is currently offline  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
  1. Ultimate++ 2008, Beta 2.
  2. Windows Vista OS
  3. Visual C++ 2005

Steps to reproduce:
  1. Create a dialog with an ArrayCtrl.
  2. Call the control's AutoAppending().Inserting().Removing().AskRemove() functions to set it up.
  3. Run the application, call up the dialog, and right-click in the ArrayCtrl to bring up the pop-up menu.
  4. 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 Go to previous messageGo to next message
tvanriper is currently offline  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
  1. Create a dialog with an ArrayCtrl (I used the layout tool for this, if that helps).
  2. Call the functions as the message above.
  3. Ensure the dialog has an Acceptor and Rejector for an OK and Cancel button.
  4. Run the application, and bring up the dialog.
  5. Right-click on the ArrayCtrl, to bring up the pop-up menu.
  6. Hold the mouse pointer over the pop-up menu, and tap the ESC key, to close the pop-up menu.
  7. 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 #15319 is a reply to message #15250] Wed, 16 April 2008 11:07 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have performed quick check in existing apps, seems ok.

Can you post a testcase please?

Mirek
Re: ArrayCtrl, pop-up menus, and mouse problems... [message #15387 is a reply to message #15248] Fri, 18 April 2008 22:32 Go to previous messageGo to next message
tvanriper is currently offline  tvanriper
Messages: 85
Registered: September 2007
Location: Germantown, MD, USA
Member
I'll work on reducing this to something simple.

I'm going to start a 1-week vacation soon, though.
Re: ArrayCtrl, pop-up menus, and mouse problems... [message #15398 is a reply to message #15248] Mon, 21 April 2008 00:36 Go to previous messageGo to next message
tvanriper is currently offline  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).
Re: ArrayCtrl, pop-up menus, and mouse problems... [message #15423 is a reply to message #15398] Wed, 23 April 2008 10:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
tvanriper wrote on Sun, 20 April 2008 18:36


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).


Well, if you want to use different threding library, please do not forget to either compile with "USEMALLOC" (and expect some performance loss Wink or call

MemoryFreeThread();

at the end of each thread (otherwise you will have undetected memory leaks). This frees per-thread allocation cache, which in turn is essential for good MT performance.

Mirek
Re: ArrayCtrl, pop-up menus, and mouse problems... [message #15427 is a reply to message #15248] Wed, 23 April 2008 13:59 Go to previous message
tvanriper is currently offline  tvanriper
Messages: 85
Registered: September 2007
Location: Germantown, MD, USA
Member
Ah... I did not know about that. I'll look into it when I return to work.
Previous Topic: GridCtrl::OneClickEdit() appears to be broken
Next Topic: ArrayCtrl: How can I refresh just one cell that changed?
Goto Forum:
  


Current Time: Fri Apr 19 17:53:33 CEST 2024

Total time taken to generate the page: 0.02896 seconds