svoid dm_placeModuleUnderAIBar(O moduleOrID) { O module = dm_getModule(moduleOrID); dm_showModule(module); JComponent aiBar = cast getCreatorOpt('tfTopInput); Rect mr = dm_getBounds(module); if (aiBar != null && mr != null) { Rectangle r = getBounds(aiBar); dm_setBounds(module, r.x, 0, r.width, mr.h); } if (aiBar != null) { // User probably wants to keep typing. Focus input field, keep cursor setOpt(creator(), 'tfTopInput_dontSelectAll, sysNow()); requestFocus(aiBar); } }