>An additional observation based on debug info I've scattered throughout my code:
>
>_Screen.ActiveForm.ActiveControl.SetFocus() is correctly setting focus to the proper control - I can verify by seeing that each control's GotFocus() event is being raised.
>
>The problem is that the control gaining focus can't keep it - instead VFP returns focus back to the toolbar control that issued the SetFocus() request.
>
>Any insight?
>
>Thanks,
>Malcolm
OK, OK let's mix your with my code :o)))
if type( "_Screen.ActiveForm.ActiveControl.Name" ) == "C"
wndActive = _Screen.ActiveForm.Name
MOUSE CLICK AT 0,0 WINDOW (_wndActive)
set message to "Setfocus() to " + _Screen.ActiveForm.ActiveControl.Name
else
set message to "No activecontrol to set focus to"
endif
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.