Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETFOCUS = change select area?????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00153076
Message ID:
00153101
Vues:
18
Larry,

Are you sure there's no code in the object you're setting the focus to or the object you're setting the focus from that might change the work area? Try suspending before the SetFocus() and setting a breakpoint on ALIAS(). This should show you where it's being changed.

>I've tried unsuccessfully to duplicate this with a smaller piece of code so I'll just ask...
>
>The following code shows two different aliases. One before the SETFOCUS and a different one after the SETFOCUS
>
>************************************
>wait window '1 ' + alias()
>THISFORM.txtAAPVMOD_MODNAME.SETFOCUS
>wait window '2 ' + alias()
>************************************
>
>the text box is a simple subclass of my extremely complicated base text box class. Here's what the base class looks like:
>
>**************************************************
>* Name ....... : BsTextBox
>* Purpose .... : Base Text Box
>*-------------------------------------------------
>DEFINE CLASS BsTextBox AS TEXTBOX
>ENDDEFINE
>
>So... I'm a little confused. How could setting focus change the current select area???
>
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform