TRzTabControl - position of the current tab

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

TRzTabControl - position of the current tab

Postby Marek » Sat Apr 23, 2011 4:29 am

Hello Ray,

is it possible to get the position of the current tab?
I have defined an context menu for the tabs and would like to show the menu per hotkey too. For the Popup() method I need the position.
Thanks,
Marek
Marek
 
Posts: 44
Joined:
Wed Apr 13, 2011 7:09 am

Re: TRzTabControl - position of the current tab

Postby Raize Support » Sun Apr 24, 2011 12:53 am

There is a method that will tell you if a point is on a tab TabAtPos, but it is not possible to get the dimensions of the individual tabs. Of course, the control knows them, they are just in a private data structure maintained by the control.

Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 616
Joined:
Fri Mar 25, 2011 9:04 pm

Re: TRzTabControl - position of the current tab

Postby Marek » Mon Apr 25, 2011 1:00 pm

I have found the possibility to compute the tab position: with the protected method GetTabDataList() and TRzTabData.RawRect property.
Thanks,
Marek
Marek
 
Posts: 44
Joined:
Wed Apr 13, 2011 7:09 am


Return to Panels

Who is online

Users browsing this forum: No registered users and 2 guests

cron