LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Width Attribute of Easy Tab

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?

0 Kudos
Message 1 of 5
(3,514 Views)

Have you tried GetPanelAttribute (easyTabHandle, ATTR_WIDTH, &width); ?

 

JR

0 Kudos
Message 2 of 5
(3,508 Views)

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

0 Kudos
Message 3 of 5
(3,505 Views)

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. Smiley Wink  I see now you want the width of the tab. Sorry - can't help on this one.

0 Kudos
Message 4 of 5
(3,496 Views)

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.

0 Kudos
Message 5 of 5
(3,482 Views)