The selectByWhatMode method of the TLcdGXYSelectController2 determines whether or not you can select an object by clicking its label.

See the class Javadoc of TLcdGXYSelectController2 for more information.