wxDialog with Grid right click problem

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
nsutt
In need of some credit
In need of some credit
Posts: 2
Joined: Wed Mar 05, 2008 10:10 pm

wxDialog with Grid right click problem

Post by nsutt »

I have wxDialog which has a wxGrid inside and I have made an event for EVT_GRID_CELL_RIGHT_CLICK which selects the row you have right clicked.

The problem is when you right click in between cells where you would go to resize them it crashes. The error it gives is

wxAssertFailure failed DoNotifyWindowAboutCaptureLost: window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST

I am not sure how to fix this or where to process the wxEVT_MOUSE_CAPTURE_LOST. Any ideas?
tan
wxWorld Domination!
wxWorld Domination!
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Post by tan »

Hi,
it is really a bug here :(
As a temporary workaround you can just disable drag sizing:

Code: Select all

        m_grid->DisableDragGridSize();
It will possible to change grid cols/rows size with mouse dragging inside cols/rows labels.
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10
Post Reply