Re: How do I know when user drops a widget? by Joseph
Joseph
Thu Apr 29 13:57:29 CDT 2004
Hi Larry,
I see what you're doing and it has some interesting implications. It would
reduce the complexity I have to deal with, to the number of different
widgets I have on the form. But even so, I must have at least a dozen
different widgets for which I need to handle the DragDrop event. Frames,
Text Boxes, Grids, List Boxes, Combo Boxes, our own user controls, etc. This
is not going to be pretty.
I remember way back when, looking at Delphi, before getting into VB. The
Delphi event model was very interesting. If I recall correctly, an event was
dispatched first to the form, then to its target, then back up through the
container hierarchy, ending finally with the form as the final container.
Back then, I just didn't get the whole complexity. I do now :-(
- Joe Geretz -
"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:%23dE%23H9gLEHA.1392@TK2MSFTNGP09.phx.gbl...
>
> "Larry Serflaten" <serflaten@usinternet.com> wrote
> >
> > If you use control arrays, you can lessen the load. Also, if you use a
class you
> > can keep that OLE goo out of your other code.
>
> I should have mentioned, those are mutually exclusive. If you use a
control array,
> you can't use the class method.
>
> LFS
>