Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't click on button (show/hide issue?)
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Can't click on button (show/hide issue?)
Divers
Thread ID:
00681366
Message ID:
00681366
Vues:
39
I'm having a very strange problem. I have an application with a startup form and four main forms. The users want to switch between any of the four forms without returning to the main form. I tried a variety of ways of coding this, finally settling for the show method.

In the main form I create all the other forms:
DO FORM INSAPP NAME frmINSAPP LINKED NOSHOW
DO FORM APRLOG NAME frmAPRLOG LINKED NOSHOW
DO FORM CNA NAME frmCNA LINKED NOSHOW
DO FORM BAC NAME frmBAC LINKED NOSHOW

I've tried this without the NAME and LINKED clause too.

In each form a have buttons, whose click event shows another form:
frmCNA.SHOW

The forms are all the same size. I don't use a formset.

When I switch between forms, it works great, until the second time I go between two forms. That is, I start on form A, click the B button which takes me to form B, then click the A button. When I get to the A form the B button is highlighted (it's the selected object). When I click it, nothing happens. I put a wait window in the click event, and really, nothing is happening.

To test further, I added a second set of buttons. In the above scenario, when the B button doesnt respond, the second B button does work, and takes me to form B. There I can click the second A button, which will take back to form A. In form A, the second B button is highlighted, and it doesnt work. Nor does the first.

When I close out the app and release the forms, it acts like it's trying to return to some of the click methods that were called previously (as shown in the debugger).

Why would a button's click event not work? and why would an identical button work (once)?

It behaves like a stack overflow of some sort, although I'm nowhere near the 128 level program calling limit in fox.

I tried the same buttons on three small test forms. Then it works perfectly. It's only my app that misbehaves.

I'm running VFP 6 SP4 and NT 4.0 workstation SP 6 on a compaq 450 with 512MB RAM. I tried it on VFP 7 and got the same behavior.

Any ideas? I'm hoping it's something simple I've overlooked.

thanks,

-hans
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform