cannot drop on wxGrid with wxmac2.9
Vadim Zeitlin
vadim at wxwidgets.org
Mon Feb 25 05:48:15 PST 2008
On Mon, 25 Feb 2008 14:30:55 +0100 Riccardo Cohen <rcohen at articque.com> wrote:
RC> yes it works with GetGridWindow().
The reason it doesn't work with wxGrid itself is very simple, really: you
can't drop anything on this window because it's entirely covered by the
other windows.
RC> for the windows platform : I tried to look at what happens, the
RC> SetDropTarget called is wxWindowMSW::SetDropTarget().
RC>
RC> If I use GetGridWindow(), I also enter wxWindowMSW::SetDropTarget(), but
RC> probably not on the same wxWindow (m_gridWin)
Yes, so one way to fix this problem would be to simply override
SetDropTarget() in wxGrid to call m_gridWin->SetDropTarget(). I'm not sure
if this is going to work (the drop target might get confused if it's
associated with a window different from the one SetDropTarget() was called
for...) but it's worth trying.
Good luck,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list