Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mystery spinner box appears but never defined
Message
De
23/02/2007 18:32:03
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
23/02/2007 15:47:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01198451
Message ID:
01198485
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>I've got a form with a pageframe, 5 tabs, each tab has a listbox. Also, seven command buttons, an image, three shapes and a dozen or so labels.
>
>When I run the form, an object that was never created appears in top left corner of the form. It looks like a null spinner box with just a down arrow for a scrollbar. Mouse-click on the object and it disappears, tab through the object and it disappears.
>
>The object has no affect on the screen except it appears on top of some labels.
>
>Using amembers(...,2) the object isn't in the list.
>
>I've pack memo'd the scx file, copied the scx and no difference.
>
>Any suggestions why this mystery object is being created and how to get rid of it?

Haven't seen this since VFP7... when it was a mysterious copy of a textbox which would show up again about a dozen pixels above and to the left from its actual position. Also involved pageframe and some Activex.

It seemed to be related to some resizing code somewhere, when the form actually became visible before it was resized, and before the form.init ran to its end. Basically, look for any .setfocus in the .init, that would force the form to show before it is completely built.

I figure your spinner (or a combo? - spinner has two arrows) probably does exist somewhere in your form. You may want to browse your scx and look for any stray objects that you can't explain - backup first - and try to manually make them odd (add a zero to the width, that you can easily edit back) and then compile the form so your manual changes stick. Then run the form and see if you got the right object. If not, revert your changes and try with another suspect. Do this only as a last resort - sounds like exercise in futility to me, but that's what I'd do if I ever had such a phantom again.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform