> I'm working on a drag & drop capable app. Here's what is supposed to
> happen: I drag and drop something into my list box, a dialog pops up
> that I am supposed to enter text into. Here's what actually happens: I
> drag and drop something into my list box, a dialog pops up that I am
> supposed to enter text into, the dialog does not have focus, so I have
> to select the dialog before I can enter my information into the text
> field.
>
> Any help would be greatly appreciated.
>The DnD stuff must be reseting focus to where it was before the operation
started. You can get around this by using an EVT_IDLE handler. When you
create the dialog set a flag that's accessible to your idle handler and
then
ยทยทยท
----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: "wxPython-users" <wxpython-users@wxwindows.org>
Sent: Thursday, August 24, 2000 9:58 PM
Subject: Re: [wxPython] Focus Problem
when the idle handler is called (after all pending events are done) check
the flag and if set give the dialog the focus and clear the flag.--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!