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

There can be gaps in the tabindex sequence...

>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
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform