![]() |
![]() |
![]() |
![]() |
UIControls.h.
void UIBrightnessAdjust()
void UIContrastAdjust()
ContrastAdjust to UIContrastAdjust in Palm OS® release 3.5. The ContrastAdjust function is available if 3.1 New Feature Set is present.
Boolean UIPickColor (IndexedColorType *indexP, RGBColorType *rgbP, UIPickColorStartType start, const Char *titleP, const Char *tipP)
|   |
-> |
String to display as the title of the dialog. Specify NULL to use the default title, which is "Pick Color." |
|   |
-> |
Not used. |
true if a new color was selected, false otherwise.
UIPickColor.)
indexP value contains the index of the square that is initially selected.
rgbP parameter contains the red, green, and blue values initially shown in the dialog. The sliders only allow values that are defined in the current system color table.
indexP is initially NULL, only the RGB dialog is displayed. Similarly, if rgbP is NULL, only the palette version is displayed. If both parameters are non-NULL, the system adds a pull-down list that allows the user to switch between the palette dialog and the RGB dialog, and the start parameter controls which version of the dialog is initially shown. In this case, both indexP and rgbP contain the value of the user-selected color upon return.
indexP parameter (if not NULL) contains the closest match using a luminance best-fit if the color lookup table is entirely grayscale (red, green, and blue values for each entry are identical), or a shortest-distance fit in the RGB space is used if the palette contains colors.
|   | ![]() |
![]() |
![]() |
![]() |
  |