SgVisualDrawingAreaInstallColormap(3X)SgVisualDrawingAreaInstallColormap(3X)NAMESgVisualDrawingAreaInstallColormap — Install a colormap for the Visual‐
DrawingArea widget
SYNOPSIS
#include <Sgm/VisualDrawingA.h>
void SgVisualDrawingAreaInstallColormap (widget) Widget widget;
VERSION
This page documents the version of Sgm that accompanies Motif 1.2.
DESCRIPTIONSgVisualDrawingAreaInstallColormap installs the colormap of an SgVisu‐
alDrawingArea widget. Normally it does this by adding the widget's
window to the WM_COLORMAP_WINDOWS property on the shell containing the
widget. This causes the window manager to install the colormap when‐
ever the shell has focus. (However, if the shell is marked over‐
ride_redirect, the widget calls XInstallColormap(1X) directly in addi‐
tion changing WM_COLORMAP_WINDOWS. Some window managers will reject
such a change).
There is no need to call SgVisualDrawingAreaInstallColormap if the
SgNinstallColormap is set, as this resource will automatically set the
WM_COLORMAP_WINDOWS property. This call is intended for providing more
explicit control.
To uninstall the colormap, call SgVisualDrawingAreaUninstallCol‐
ormap(3X). Specifies the widget whose colormap is to be installed.
For a complete definition of VisualDrawingArea and its associated
resources, see SgVisualDrawingArea(3X).
RETURN VALUE
Returns the VisualDrawingArea widget ID.
RELATED INFORMATIONSgVisualDrawingArea(3X), SgVisualDrawingAreaInstallColormap(3X) .
SgVisualDrawingAreaInstallColormap(3X)