window position/size

I’d like to position a window (A) that it’s left edge just touches the right
edge of another window (B).

Ax = Bx + Bwidth

However looks like Pt_ARG_DIM gives me the inside dimensions and not the
outside dimensions of the window.
How to determine the outside dimensions, including border?
Thanks in advance
Markus

Markus Loffler <loffler@ces.clemson.edu> wrote:

I’d like to position a window (A) that it’s left edge just touches the right
edge of another window (B).

Ax = Bx + Bwidth

However looks like Pt_ARG_DIM gives me the inside dimensions and not the
outside dimensions of the window.

Correct.

How to determine the outside dimensions, including border?

PtWindowFrameSize() will give you the sizes of the
top/bottom/left/right elements of the border. You’ll have to add
these to the height and width that you get from Pt_ARG_DIM.


Norbert Black
QSSL Training Services

Thanks…
What about in Photon 1.14?
Markus

“Norbert Black” <nblack@qnx.com> wrote in message
news:9ccads$95u$1@nntp.qnx.com

Markus Loffler <> loffler@ces.clemson.edu> > wrote:
I’d like to position a window (A) that it’s left edge just touches the
right
edge of another window (B).

Ax = Bx + Bwidth

However looks like Pt_ARG_DIM gives me the inside dimensions and not the
outside dimensions of the window.

Correct.

How to determine the outside dimensions, including border?

PtWindowFrameSize() will give you the sizes of the
top/bottom/left/right elements of the border. You’ll have to add
these to the height and width that you get from Pt_ARG_DIM.


Norbert Black
QSSL Training Services

Markus Loffler <loffler@ces.clemson.edu> wrote:

“Norbert Black” <> nblack@qnx.com> > wrote in message
news:9ccads$95u$> 1@nntp.qnx.com> …
Markus Loffler <> loffler@ces.clemson.edu> > wrote:
How to determine the outside dimensions, including border?

PtWindowFrameSize() will give you the sizes of the
top/bottom/left/right elements of the border. You’ll have to add
these to the height and width that you get from Pt_ARG_DIM.

Thanks…
What about in Photon 1.14?

Whoops - PtFrameSize() for Photon 1.1x and PtWindowFrameSize()
for Photon 2.x


Norbert Black
QSSL Training Services

The function “PtFrameSize” is doing this for you.


Bye Sascha( sascha@bitctrl.de )

Sascha Morgenstern
BitCtrl Systems GmbH
Weißenfelser Straße 67
Germany - 04229 Leipzig
Phon. +49 341 490 670
FAX. +49 341 490 67 15
eMail: sascha@bitctrl.de
WWW: http://www.bitctrl.de


“Markus Loffler” <loffler@ces.clemson.edu> schrieb im Newsbeitrag
news:9cc4iu$f4b$1@inn.qnx.com

I’d like to position a window (A) that it’s left edge just touches the
right
edge of another window (B).

Ax = Bx + Bwidth

However looks like Pt_ARG_DIM gives me the inside dimensions and not the
outside dimensions of the window.
How to determine the outside dimensions, including border?
Thanks in advance
Markus