Functions | |
StatusInt | mdlDialog_colorPickerGetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, UInt32 *maskP, long *associatedTextIdP, RawItemHdr *cPickerP) |
Gets internal information about a given ColorPicker dialog item. More... | |
StatusInt | mdlDialog_colorPickerSetInfo (CommandNumber *commandNumberP, int *commandSourceP, UInt32 *maskP, long *associatedTextIdP, RawItemHdr *cPickerP) |
Sets the internal attributes associated with a ColorPicker dialog item. More... | |
StatusInt | mdlDialog_colorPickerSetColorTable (RgbColorDef *colorTableP, RawItemHdr *cPickerP) |
Sets the color table in a ColorPicker item. More... | |
StatusInt mdlDialog_colorPickerGetInfo | ( | CommandNumber * | commandNumberP, |
UInt32 * | commandSourceP, | ||
UInt32 * | maskP, | ||
long * | associatedTextIdP, | ||
RawItemHdr * | cPickerP | ||
) |
Gets internal information about a given ColorPicker dialog item.
[out] | commandNumberP | is a pointer to an unsigned integer to get/set the command number associated with the ColorPicker item. The command number associated with a ColorPicker item is the command that gets placed at the end of the MicroStation input queue when a button is released within the item. |
[out] | commandSourceP | is a pointer to an unsigned integer to get/set the command source attribute of a ColorPicker item. The command source attribute specifies the task that will execute the command identified by commandNumberP. The constant LCMD indicates that the task that owns (originally creates) the dialog should execute the command. The constant MCMD indicates that MicroStation should be used to execute the command, in which case commandNumberP indicates a MicroStation command defined in cmdlist.r.h. |
[out] | maskP | is a pointer to an unsigned integer to get/set the state variable mask. This mask indicates which bits of the item's underlying state variable are to be used to store the ColorPicker's current color index. Usually the mask is set to NOMASK (0xFFFFFFFF) which indicates that the entire variable will be used to determine the color index. |
[out] | associatedTextIdP | is a pointer to an unsigned integer to get/set the resource identifier of the text field associated with the ColorPicker item. |
[in] | cPickerP | is the ColorPicker item to have its internal information obtained in the case of mdlDialog_colorPickerGetInfo or set in the case of mdlDialog_colorPickerSetInfo. |
StatusInt mdlDialog_colorPickerSetColorTable | ( | RgbColorDef * | colorTableP, |
RawItemHdr * | cPickerP | ||
) |
Sets the color table in a ColorPicker item.
[in] | colorTableP | is a pointer to the Color Table to use in the ColorPicker item. The Color Table is 256 RGB color definitions containing a total of 768 bytes. The first entry in the table (ie. colorTable[0]) defines the background color. Color definitions 2 (ie. colorTable[1]) through 256 represent color indices 0 through 254. |
[in] | cPickerP | is the ColorPicker item to process. |
StatusInt mdlDialog_colorPickerSetInfo | ( | CommandNumber * | commandNumberP, |
int * | commandSourceP, | ||
UInt32 * | maskP, | ||
long * | associatedTextIdP, | ||
RawItemHdr * | cPickerP | ||
) |
Sets the internal attributes associated with a ColorPicker dialog item.
[in] | commandNumberP | is a pointer to an unsigned integer to get/set the command number associated with the ColorPicker item. The command number associated with a ColorPicker item is the command that gets placed at the end of the MicroStation input queue when a button is released within the item. |
[in] | commandSourceP | is a pointer to an unsigned integer to get/set the command source attribute of a ColorPicker item. The command source attribute specifies the task that will execute the command identified by commandNumberP. The constant LCMD indicates that the task that owns (originally creates) the dialog should execute the command. The constant MCMD indicates that MicroStation should be used to execute the command, in which case commandNumberP indicates a MicroStation command defined in cmdlist.r.h. |
[in] | maskP | is a pointer to an unsigned integer to get/set the state variable mask. This mask indicates which bits of the item's underlying state variable are to be used to store the ColorPicker's current color index. Usually the mask is set to NOMASK (0xFFFFFFFF) which indicates that the entire variable will be used to determine the color index. |
[in] | associatedTextIdP | is a pointer to an unsigned integer to get/set the resource identifier of the text field associated with the ColorPicker item. |
[in] | cPickerP | is the ColorPicker item to have its internal information obtained in the case of mdlDialog_colorPickerGetInfo or set in the case of mdlDialog_colorPickerSetInfo. |