Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop Ghosting
Message
De
04/04/2001 15:13:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Drag and Drop Ghosting
Divers
Thread ID:
00492072
Message ID:
00492072
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform