|Title||How to avoid bringing Variables or Review window to front|
|Author||Chinh Nguyen, StataCorp|
Stata 10 now uses the data browser control for the Variables and Review windows. This is the same control the Finder uses for displaying files in a folder window in list form. The data browser behaves differently depending on where you click in a cell in the control.
If you click the text in a cell, the data browser selects the cell, then outputs the text to the ommand window. The keyboard focus is set to the Command window, so the Command window stays in front. If you click in a blank area of a cell, the data browser selects the cell, then outputs the text to the Command window. However, the keyboard focus is set to the data browser's parent window, and the parent window is moved to the front. Stata cannot prevent this from happening because this behavior is imposed by Mac OS X.
To avoid this behavior, you must click directly on a variable name or command in the Variables or Review windows, not a blank area.