PtWidgetExtent

Hi.

Does the extent computed by PtWidgetExtent(widget, &extent) include the
widget dimensions plus border and margins?

For one of my PtLabel widget layout, I have to figure out first which widget
takes up the most space and then create them in the correct place with the
correct size (largest size). For some reason there is just a little text
(about 2 pixels) not visible inside the some of the PtLabel widgets. Any
ideas why?

Thanks

Augie

Hi Augie,
I’ll do it like Steve this time :wink:
the docs say…
“The dimenstion of the widget, Pt_ARG_DIM, is the overall size of the
widget, including its borders”

“The extent of a widget is a rectangle defined by the widget’s position and
dimensions.”

This is in Programmers Guide/Introduction.

Probably the “2 pixels” returned of your empty labels is the border or
margin

Markus


“Augie Henriques” <augiehenriques@hotmail.com> wrote in message
news:97375o$ir$1@inn.qnx.com

Hi.

Does the extent computed by PtWidgetExtent(widget, &extent) include the
widget dimensions plus border and margins?

For one of my PtLabel widget layout, I have to figure out first which
widget
takes up the most space and then create them in the correct place with the
correct size (largest size). For some reason there is just a little text
(about 2 pixels) not visible inside the some of the PtLabel widgets. Any
ideas why?

Thanks

Augie