- Sep 10, 2001
- 11,711
- 8
- 81
I have a Panel area which has any number of smaller Panels inside of it, and each of these inner panels may have labels and form elements (text box, drop-down, etc..) within them. I want to be able to use drag n drop to re-arrange the order of these inner panels in relation to eachother.
I want it to look like that Windows XP start menu where you have those quick launch icons and frequently used apps icons. See how when you drag n drop them it draws the icon in a sort of faded style as you drag them around? I want to do that with my inner panels, but I can;t even figure out how to draw them as I drag them at all...
See the attached code, what I thought I could do easily is to initiate a drag n drop event using the inner panel itself as the Data, then when the main outer panel receives the drag over event I just pull out the inner panel and change it's location to current mouse cursor. But it doesnt work. What happens is once I start dragging a inner panel it disappears completely and is never redrawn
I want it to look like that Windows XP start menu where you have those quick launch icons and frequently used apps icons. See how when you drag n drop them it draws the icon in a sort of faded style as you drag them around? I want to do that with my inner panels, but I can;t even figure out how to draw them as I drag them at all...
See the attached code, what I thought I could do easily is to initiate a drag n drop event using the inner panel itself as the Data, then when the main outer panel receives the drag over event I just pull out the inner panel and change it's location to current mouse cursor. But it doesnt work. What happens is once I start dragging a inner panel it disappears completely and is never redrawn