Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe and Tab Sequence
Message
De
22/07/2005 13:32:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01034794
Message ID:
01035189
Vues:
21
>>No, this is a bug into the form, it call Pf.page1.Activate before Form.Activate
>>
>>try1 ( this remove the TAB done before the controlsource eval )
>>
>>*  put this in Form.gotfocus or Activate
>>CLEAR TYPEAHEAD
>>
>>
>>try2: this send the bug into a zombi pageframe
>>* but you have not a Activate on the true pageframe
>>
>>add a empty pageframe ( no pages ) with Visible = .F.,
>>and "send to back" it ( it must to be the first control on the frame )
>>
>>
>>try3: this delay the Controlsource eval
>>
>>* set BindControl=.f.
>>* add this into gotfocus
>>thisform.BindControl=.T.
>>
>>
>>We are making a slalom among the bugs.
>
>I'm not that kind of mazochist (? spell) :)
To use VFP is a good training for the masochists :)

>I already played with all these things trying to make everything work. My final solution is to have pageframe with 0 as ActivePage in design time and set ActivePage to 1 in form's Init in the run-time. Therefore I execute Page.Activate only once (though may be prematurely) and don't have set focus problem. My combos are also working (fingers crossed). So I let it rest for some time until I decide to re-try your keyboard idea again and apply all other various gimmicks.

Then, move the ActivePage = 1 into the Form's GotFocus/Activate,
if .. = 0
   ... = 1
endif
and retry the KEYBOARD command.

<snip>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform