Getting Display Resolution

Is there a way to get (in runtime) the display resolution my application is using?
My application can be run using 1280x1024 or 1024x768 and I want to know this information in runtime to position widgets correctly.
I´m using Photon 1.14 and QNX 4.25.


Get the dimension of the main windows (base widget) using PtGetResources.

yes, I did that, but I´d like to know if there is another way, using a Photon´s function to catch the resolution.

If you meant screen resolution, check out PgGetVideoMode() and PgGetVideoModeInfo(). If you mean the windows size aside from the PgGetResouces there is also PtWidgetDim()