B
Brainlord Mesomorph
Me again. So far I've been pretty good at reverse-engineering your forms and
code and making it work in my stuff, (I do that a lot) but here I'm stumped.
I'm working with a version of Drag and Drop code I got from the MS website
(example Forms MDB). Its basically 4 subs: DragStart and DragStop which you
attach to the MouseDown and MouseUp events of the control you want to drag ,
DropDetect on the MouseMove of the control you want to drop on, and if all
those fire, (ie. the user has dragged and dropped) a fourth sub, DragDrop,
fires and receives all the values from the other subs (and both forms) as
in:
DragDrop(DragForm, DragCtl, DragVal, DropForm, DropCtl, DropVal, X,Y,
Button, Shift)
then using SelectCase with the names of the forms and/or controls we can
make various things happen to the make Drag and Drop do things, different
things depending on what the user dragged and where he dropped.
But you're ahead of my here (because you read the Subject of this post) and
you know that DragDrop doesn't work when you drop on Continuous Forms. The
DropValue the sub receives is the value in the DropControl of whatever Row
happen to have focus last, *not* the one the user is mousing over at the
time.
Now your ContinuousFormCurrentRow code has shown me that its possible to
know what row the user is mousing over, but I'll be damned if I can figure
out how to use it.
I've looked at the form and the code and there doesn't seem to be any
mousing events being used. I'm not looking you constantly update a control
on the screen here, I just need to know the CurrentRow at the moment the
Drop happens, on MouseUp (so I can get the right DropVal)
Am I explaining this right? can you help me?
aha tia
blm
code and making it work in my stuff, (I do that a lot) but here I'm stumped.
I'm working with a version of Drag and Drop code I got from the MS website
(example Forms MDB). Its basically 4 subs: DragStart and DragStop which you
attach to the MouseDown and MouseUp events of the control you want to drag ,
DropDetect on the MouseMove of the control you want to drop on, and if all
those fire, (ie. the user has dragged and dropped) a fourth sub, DragDrop,
fires and receives all the values from the other subs (and both forms) as
in:
DragDrop(DragForm, DragCtl, DragVal, DropForm, DropCtl, DropVal, X,Y,
Button, Shift)
then using SelectCase with the names of the forms and/or controls we can
make various things happen to the make Drag and Drop do things, different
things depending on what the user dragged and where he dropped.
But you're ahead of my here (because you read the Subject of this post) and
you know that DragDrop doesn't work when you drop on Continuous Forms. The
DropValue the sub receives is the value in the DropControl of whatever Row
happen to have focus last, *not* the one the user is mousing over at the
time.
Now your ContinuousFormCurrentRow code has shown me that its possible to
know what row the user is mousing over, but I'll be damned if I can figure
out how to use it.
I've looked at the form and the code and there doesn't seem to be any
mousing events being used. I'm not looking you constantly update a control
on the screen here, I just need to know the CurrentRow at the moment the
Drop happens, on MouseUp (so I can get the right DropVal)
Am I explaining this right? can you help me?
aha tia
blm