Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop Ghosting
Message
From
04/04/2001 15:13:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Drag and Drop Ghosting
Miscellaneous
Thread ID:
00492072
Message ID:
00492072
Views:
53
Hi All,

I have an app in VFP5 where the user can create custom data entry screens by drag-n-dropping controls onto a container. When they want to delete one of the fields, I have them drag the control to a trashcan image to delete it from the container. It works fine in VFP3b and VFP5a, but when I try to do the same thing in VFP6 SP4 the textbox controls leave a "ghost" of the image there. That is you can still see the textbox, but you can't click in it or anything.

Additional info:

1. When you click on any of the other controls, the "ghost" disappears.
2. If you just setfocus to another control it doesn't help.
3. The controls are removed from the container using RemoveObject.
4. When stepping through the debugger, the controls disappear like they should after the RemoveObject, but after exiting the DragDrop event of the trashcan image, the ghost appears.
5. Calling Thisform.refresh() at the end of the dragdrop event doesn't help.
6. If I create a button to delete the controls everything works fine.

I don't believe there are any other references to the control that need to be deleted, but if there were, wouldn't the other controls leave ghosts also?

Any help would be appreciated.

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform