Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop Ghosting
Message
 
À
04/04/2001 15:13:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00492072
Message ID:
00493631
Vues:
13
Would setting the Visible to FALSE be acceptable when the field control is removed? Or programatically clicking some transparent image control?
I tried:
MyForm.Removeobject('txtMyTextBox'), and it seemed to work okay. I did not test with subclasses and I did it through the command window while the form was running.


>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
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform