473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Ole Drag-Drop between TreeView and another control?

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....?
Nov 12 '05 #1
1 4496
RE/
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.


I think I've got it nailed.

Instead of using a listbox or textbox at the receiving end, I just use another
TreeView and, if necessary, format it to look like a list box or field.
--
PeteCresswell
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: kiran | last post by:
I am trying to implement a rubber band/image selection script. For that I need to remove the default drag behaviour on an image. I am able to do this in IE but not Netscape. Does any one have a...
1
by: kiran | last post by:
I am trying to implement a rubber band/image selection script. For that I need to remove the default drag behaviour on an image. I am able to do this in IE but not Netscape. Does any one have a...
1
by: Jon Cosby | last post by:
I need an event handler for dragging the cursor on a PictureBox. The existing events only include handlers for dragging and dropping objects over the controls. I'm trying to use the MouseDown and...
2
by: Daniel | last post by:
Hello, in my application, i need to drag files from the windows explorer to the application, but also the other way round. To drag files from the explorer works fine (using...
4
by: Peter | last post by:
Hi, Does anyone know how to drag a splitter by coding. I will put three controls on form1,two panels and a splitter. The first panel's dock property is set to top, the splitter's dock is also...
2
by: CB | last post by:
Is it possible to drag the browser itself from inside the document window? What I want to do is open a browser window without a title bar, but be able to drag it around the screen as if I was...
0
by: david | last post by:
Yesterday I got a suggestion about the web page layout from Stas. Thanks, Stas. However, I have a problem to drag the existing radio buttons into the table cell. Case: I have a lot of radion...
2
by: vunet.us | last post by:
Hello JavaScript experts, I have a floating div which I drag all over the page. If the page has scrollbars and users drag the floating div to the very top, page scrolls up too. The problem occurs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.