Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any way to UnFocus()?
Message
From
08/07/2003 14:52:34
 
 
To
08/07/2003 13:50:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00808129
Message ID:
00808156
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform