Search
   >> Home >> Resources & support >> FAQs >> How to avoid bringing Variables or Review window to front

Why does clicking on a variable in the Variables window or command in the Review window sometimes bring the window to the front?

Title How to avoid bringing Variables or Review window to front  
Author Chinh Nguyen, StataCorp
Date July 2007

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.

The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn Google+ Watch us on YouTube