Detect when a Text file is Dropped onto a TextCtrl

Hello

I am trying to figure out what event message is sent when I drag &
drop a text file on a multiline text control?

I have tried to use wx.EVT_DROP_FILES but that doesn't seem to do
anything? Do I need to enable my frame &/or TextCtrl to take drag &
drop messages?

See the DnD samples in the demo. You need to create a drop target and assign it to the widget you want to be able to drop items on. Be aware however that some of the native textctrl's will handle the file DnD themselves and it can't be overridden with your own. If that is the case here then try not using one of the wx.TE_RICH style flags.

···

On 9/8/10 12:51 AM, Sascha wrote:

Hello

I am trying to figure out what event message is sent when I drag&
drop a text file on a multiline text control?

I have tried to use wx.EVT_DROP_FILES but that doesn't seem to do
anything? Do I need to enable my frame&/or TextCtrl to take drag&
drop messages?

--
Robin Dunn
Software Craftsman