Jordan,
Thanks for the sugggestions.
Quote:
One approach would be to create a Picture image from the rect with the text in it, and draw that to the window during the drag event.
Actually, the DrawPics demo in the Graphics subfolder of the Examples folder is _very_ close to what I want. I even figured out how to modify it so that the ovals contain words instead of letters of the alphabet. My problem is that I do not understand graphics code at all. Yes, I can move the ovals, but I can's figure out how to find out the text that they contain. (It would have been nice if it I could distinguish between the ovals in a simple way - e.g., Pic(1).Text = "For" - but it's not that simple.)
With most code, I can figure out what most of the lines are doing, but with graphicss code I don't have the slightest idea what most of the lines are doing.
Quote:
... there's an example in the Examples folder look for Drag and Drop.
True, but if we have the same sample program in mind, it doesn't show how to drag a control, but how to drag text (e.g., a line from a ListBox) from a control to a different control, and that's not what I want to do.
I do know how to write the code so that a person can click on a control (e.g., a PushButton) and then click on the location desired for that control and the control will immediately go to that location, but that is not as "intuitive" for the user, even though it is simple to write, merely changing properties of the control, e.g. through code like this:
Code:
PushButton1.Left = PushButton1.Left - (PushButton1.Width)/2
PushButton1.Top - NewY = PushButton1.Top - (PushButton1.Height)/2
Any additional advice?
Barry Traver
P.S. The intent of the program is to give the user a quotation where the word order is scrambled and the user has to put the words in the correct order.