How to handle a double click on a TabControl's tabs panel's empty space?

£可爱£侵袭症+ 提交于 2019-12-11 07:27:50

问题


In a TabControl there can be empty place to the right from tabs in the panel if there are not too many tabs. When a user doubleclicks in this empty space I'd like to process this event to create a new tab. How to achieve this?


回答1:


This doesn't sound like a UI concept that's intuitive to the users of your application. Why don't you add a small additional tab labelled "+". When the user clicks on that tab, the full tab is added. Firefox does it that why and it was intuitive to me from the first second.

(Sorry for not answering your double click question.)



来源:https://stackoverflow.com/questions/4983389/how-to-handle-a-double-click-on-a-tabcontrols-tabs-panels-empty-space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!