![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
A widget for selecting a hue and shading or tint
PtWidget --> PtBasic --> PtContainer --> PtCompound --> PtColorSel --> PtColorPatch
For more information, see the diagram of the widget hierarchy.

<photon/PtColorPatch.h>
A PtColorPatch is a widget that you can use to select a color from a three dimensional color space by means of a 2-dimensional color spectrum and a slider.

A PtColorPatch widget.
The widget includes:
| Resource | C type | Pt type | Default | 
|---|---|---|---|
| Pt_ARG_CPATCH_FLAGS | ushort_t | Flag | Pt_CPATCH_SHOW_SELECTOR | Pt_CPATCH_SHOW_SLIDER | Pt_CPATCH_ENABLE_MENU | 
| C type | Pt type | Default | 
|---|---|---|
| ushort_t | Flag | Pt_CPATCH_SHOW_SELECTOR | Pt_CPATCH_SHOW_SLIDER | Pt_CPATCH_ENABLE_MENU | 
Flags that affect the appearance and behavior of the color patch. Bits include:
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.
![]()  | 
![]()  | 
![]()  | 
![]()  |