// Ding Zhaojie Start: if (location == SSTAB_LSCROLLBUTTON_CLICKED || location == SSTAB_RSCROLLBUTTON_CLICKED) { return(-2); // click @ scroll button } // Ding Zhaojie End.
/** * Handles the left mouse button dbl_click & mbutton up event. * Dbl/MBTN Click @ file tabs: Close clicked file buffer. * Dbl/MBTN Click @ the blank space of the File Tabs toolbar: Create a new empty buffer. * Dbl/MBTN Click @ tabs scroll button: Do nothing. * * By Ding Zhaojie */void ctlsstab1.lbutton_double_click, mbutton_up(){ // get the current tab id int tabi = mou_tabid(); if (tabi < 0) { clicked_tabid = -1; if (tabi != -2) { // Click @ blank space, create a new file. new_file(); } return; } // Close clicked buffer. clicked_tabid = tabi; buff_menu_close("");}