Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Placing a transparent widget over an image
Ref. No. QNX.000009907
Category(ies) Development
Issue Our system consists of two Photon applications, a client and a server. Both 'own' a part of the GUI, but all interaction is handled by the client-app. The server-app displays a map.

To be able for the client-app to handle a pop-up menu (right-mouse button), over the map, we planned to place a transparent widget belonging to the client over the map.

Is this possible?
Solution In the client application, create a widget where you want the server's map to appear (PtBasic with the Pt_REGION widget flag set). Once realized, the basic widget will have a RID. The RID would have to be communicated to the server application.

The server app could then create a region as a child of the rid given by the client with the same dimensions and an offset of 0,0. The server's region should be opaque to Draw and Expose events. It should NOT be opaque to mouse events of any kind, although you can make it SENSITIVE to any mouse event you want.