开发者

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

开发者 https://www.devze.com 2023-02-10 09:08 出处:网络
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开发者_如何学Go in this empty space I\'d like to process this event

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开发者_如何学Go in this empty space I'd like to process this event to create a new tab. How to achieve this?


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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消