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

Click here to load this message in the networking platform