cannot drop on wxGrid with wxmac2.9

Riccardo Cohen rcohen at articque.com
Mon Feb 25 08:04:40 PST 2008


I created a SetDropTarget function in wxGrid and it work perfectly on 
mac and windows.
But on Gtk2 it is really strange : the drop is allowed only in a part of 
the grid (there is a zone at the left of the grid, about 150pixels, 
where drop is forbidden, and all the right is ok)

I tried with GetGridWindow() and without, it does the same
(I use ubuntu)

Shall-I submit a patch anyway ?

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