I have a GroupBox that accepts text drop. Within it are several
EditFields that I don't want to accept text drops. So I put the
GroupBox higher in the control order than the EditFields.
On the Mac, this works fine - the GroupBox intercepts any text that's
dragged into it, even if that text is dropped onto one of the
EditFields.
On Windows (XP), it doesn't work - no matter what other objects are
on top of an EditField, the EditField always gets text drop.
I've attempted to get around this by giving the EditField an empty
DropObject event handler. No good - the field still takes the dropped
text. I've tried setting a flag in the DropObject handler so that
TextChange will reject the dropped text. Also no good - oddly enough,
a MsgBox alert in the DropObject handler never even appears when text
is dropped into the EditField.
I have found one UGLY workaround. When the GroupBox gets a DragEnter
event, it disables all the EditFields within it, re-enabling them on
DropObject or DragExit. (I can't do this in the EditField itself,
which seems not to get DragEnter or DragExit events.)
Any suggestions? I feel that this should be really straightforward
and that I must be missing something obvious.
Thanks
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>