开发者

Is it possible to get the position of a specific tab in a tab control?

开发者 https://www.devze.com 2022-12-09 22:50 出处:网络
I\'m trying to get the .Left property of a specific tab page in a tab control (based on the header), the .Left and .Right properties seem to return the position of the tab control itself, not the spec

I'm trying to get the .Left property of a specific tab page in a tab control (based on the header), the .Left and .Right properties seem to return the position of the tab control itself, not the specific page. I want to align a label with the tab page header, the probl开发者_C百科em is that the page can move depending on whether other tab pages are present or not.

Is this possible?


EDIT: It is possible - Use GetTabRect(x) which returns a rectangle representing the tab's rectangle.

0

精彩评论

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