Setting a palette in a PtColorPatch


I’m trying to set a grayscale palette in a PtColorPatch
by setting the Pt_ARG_CS_PALETTE resource of the widget,
but it doesn’t seems to work … meaning the widget doesn’t
restrict the available colors the user can chose from, nor
display only greyscale colors …

I’m only setting the fields color_data and ncolors in the
PgPalette_t struct that I set in the resource.

thanks for any infos/tips/help :slight_smile: