Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any way to UnFocus()?
Message
De
08/07/2003 13:50:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Is there any way to UnFocus()?
Divers
Thread ID:
00808129
Message ID:
00808129
Vues:
41
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
Bill Morris
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform