I'm doing a metadata app.
One of the screens is a TreeView of all the codes (i.e. allowed
values) from various systems.
Other screens list systems, databases, tables, and elements (i.e.
fields).
When the user is looking at the treeview and sees, say, a
node/subnodes that list countries (for instance the countries
according to SystemA and the countries according to SystemB) I'd like
them to be able to drag one of those parent nodes and drop it on a
field name to designate all the values under that node as allowed
values for that field.
I'd be happy if, in the OleStartDrag event, I could just load
something up with the PK of the node and then have it passed to some
other event when the user releases the mouse button over another
control.
Is this even remotely possible? I've found some programming examples
using OleDrag/Drop, but they all seem to focus on Drags and Drops
within the same tree control.
If push came to shove, I guess I could load some global variable with
the key value; set some kind of global switch; and the unscramble same
in the receiving object....but maybe there's a "right" way....?