On Jan 8, 2005, at 7:12 PM, Michael Evans wrote: > hello all > > i can detect a tab or click INTO an edit field > > DlgEV = DIALOG(0) > DlgID = DIALOG(DlgEV) > SELECT DlgEV > CASE _efSelected > SELECT DlgID > CASE _efMyEF > // clicked or tabbed into _efMyEF > END SELECT > END SELECT > > i would have thought that for a tab OUT OF an edit field the following > would work: > > DlgEV = DIALOG(0) > DlgID = DIALOG(DlgEV) > SELECT DlgEV > CASE _efTab > SELECT DlgID > CASE _efMyEF > // tabbed out _efMyEF > END SELECT > END SELECT > > but it does not work, I get nothing.... In the appearance runtime, <tab> and <shift-tab> key-presses normally advance or reverse the user focus automatically. _efTab and _efShiftTab events are never sent. You can prevent the automatic focus control by creating the window with the _noAutoFocus FB attribute. In this case _efTab and _efShiftTab events are sent, and you have to handle the focus change yourself. From the Reference Manual: APPEARANCE WINDOW [#][-] id&[, [title$][,¬ [rect][, [windowClass][, [windowAttributes] [, [FBAttributes]]]]]] See also: Examples/Appearance Examples/Edit Fields folder/ on the FB4 CD. Robert P.