Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

How to block all widgets within a container?
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: How to block all widgets within a container?
  • SDP: 6.4.0
  • Target: Any supported target
________________________________________________________________________

Question
________________________________________________________________________


How to block all widgets within a container? I need to disallow access to a specific container within a panel group from being accessed. I can do that on each individual widget by setting pt_Blocked flag. I assumed that doing the same for a container within panel should block all widgets in that container panel but it did not do it. How can I block all widgets in a specific panel container.

How to Reproduce
Create widgets within a container panel then set Pt_BLOCKED flag for the container panel which will do nothing. You will still access all the widgets within the container.

________________________________________________________________________

Recommendation
________________________________________________________________________

This is supported only for the special case of PtWindow containers; for generic PtContainer widgets, you need to manually traverse the widget hierarchy (e.g. using PtWidgetTree() or PtWidgetTreeTraverse()) and set/unset the widgets' Pt_BLOCKED flags one by one.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.