cannot drop on wxGrid with wxmac2.9
Riccardo Cohen
rcohen at articque.com
Mon Feb 25 05:54:14 PST 2008
ok I'll tell you
Vadim Zeitlin wrote:
> 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
>
--
Très cordialement,
Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
More information about the wx-users
mailing list