|  CALL "W$PALETTE" USING opCode                          parameters                  GIVING paletteResult | 
| opCode | Function to be executed. Valid values, defined in ispalette.def, are: | |
| Show a dialog window to choose a color. | ||
| Retrieve the RGB color associated to a COBOL attribute. | ||
| Retrieve the maximum number of colors that the system can render simultaneously. | ||
| Set the RGB color associated to a COBOL attribute. | ||
| Check if the host system supports the W$PALETTE library routine. | ||
| parameters | Parameters depend on the opcode. | |
| working-storage section. copy "isgui.def" 78  78color   value 3. 77  result    pic 9(2). procedure division. ... change-color.    initialize wpalette-data     call "w$palette" using wpalette-choose-color,         wpalette-data,         giving result     move 78color to wpal-color-id    call "w$palette" using wpalette-set-color,         wpalette-data,         giving result.    ... | 
| working-storage section. copy "isgui.def" 78  78color   value 3. 77  result    pic 9(2). procedure division. ... change-color.    initialize wpalette-data     call "w$palette" using wpalette-choose-color,         wpalette-data,         giving result     move 78color to wpal-color-id    call "w$palette" using wpalette-set-color,         wpalette-data,         giving result.    ... |