Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way to UnFocus()?
Message
De
08/07/2003 14:52:34
 
 
À
08/07/2003 13:50:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00808129
Message ID:
00808156
Vues:
15
Hi Bill,

This is untested, but how about something like:
FOR EACH loControl in This.Parent.Controls
   IF loControl.TabIndex = This.TabIndex + 1
      loControl.SetFocus()
   ENDIF
ENDFOR
pamela

>Is there any convenient way for a container to setfocus OFF itself or any of it's Objects?
>
>Specifically, I want a cmdButton.Click() on a container to force the container.GotFocus() to trigger if the user tries to access any of the controls on the container after the cmdButton.
>
>container.cmdButton.click()
>  .....
>  this.parent.Remove_Focus()
>endproc
>
>container.Remove_Focus()
>  ????  && move focus to a control not in the container
>        &&   preferably the one next in tabindex order
>endproc
>
>container.GotFocus()
>  if <some condition>
>    this.cmdButton.enabled = .f.
>    this.other_control.enabled = .t.
>  else
>    this.cmdButton.enabled = .t.
>    this.other_control.enabled = .f.
>  endif
>endproc
>
>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform