PtBkgd.h missing needed constants

I’ve just noticed that many of the defined constants documented in the RTP
Photon
documentation for PtBkgd do not really exist in RTP’s version of
/usr/include/photon/PtBkgd.h

Namely, Pt_ARG_BKGD_TYPE, Pt_BKGD_IMAGE, etc.

I wound up copying PtBkgd.h from a QNX 4.25 system to get my code to
compile, it
seemed to work ok. But this doesn’t make me feel very good.

What’s going on here?

BTW, I’m building a GUI using the Photon widgets, but not PhAB.

Thanks,

Dave Morrow <dem@interaccess.com> wrote:
: I’ve just noticed that many of the defined constants documented in the RTP
: Photon
: documentation for PtBkgd do not really exist in RTP’s version of
: /usr/include/photon/PtBkgd.h

: Namely, Pt_ARG_BKGD_TYPE, Pt_BKGD_IMAGE, etc.

You must have very old docs – those constants were removed last September
because they no longer apply to the widget.

: I wound up copying PtBkgd.h from a QNX 4.25 system to get my code to
: compile, it
: seemed to work ok. But this doesn’t make me feel very good.

That sounds like a Bad Idea. I wouldn’t count on its working properly.
You should remove those constants from your program, because the widget
can no longer do anything with them.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems