12-17-2008 03:09 AM
Hi,
Is it possible to obtain the width of a easy tab panel?
Currently I am only able to get the length of the text string through the use of the attribute "ATTR_EASY_TAB_LABEL_TEXT_LENGTH"
Is it possible to compute the size (width) of the tabs in pixel based on some sort of formula?
12-17-2008 03:48 AM
Have you tried GetPanelAttribute (easyTabHandle, ATTR_WIDTH, &width); ?
JR
12-17-2008 04:02 AM
I tried before.
What you mean is the EasyTab_GetTabAttribute correct?
I want to get the individual width of the tabs.. The width of every tab varies in length because of the label size.
EasyTab_GetTabAttribute (iPanel, iTabCtrl, iTabPanel, ATTR_WIDTH, &width);
will generate an error saying that the attribute passed is invalid..
12-17-2008 06:12 AM
leekahwai wrote:Hi,
Is it possible to obtain the width of a easy tab panel?
Ah, silly me. I thought you wanted the width of the panel.
I see now you want the width of the tab. Sorry - can't help on this one.
12-17-2008 07:11 PM
Sorry for the misinterpretation.
Yup. I want the width of the tab, not the panel.
Is there a formula to compute the attribute of the width for the tab based on the label's string length?
Because I see that the size of the easytab corresponds to the length of the string, so there must some form of relationship between the 2.