Functions | |
ErrorCode | mdlDialog_pushButtonActivate (RawItemHdr *pButP) |
Activates the Push Button identified by pButP. More... | |
StatusInt | mdlDialog_pushButtonSetDefault (RawItemHdr *pButP, bool isDefault) |
Changes the default status of the Push Button identified by pButP. More... | |
StatusInt | mdlDialog_pushButtonSetCancel (RawItemHdr *pButP, bool isCancel) |
Changes the cancel status of the Push Button identified by pButP. More... | |
StatusInt | mdlDialog_pushButtonGetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, WChar **unparsedPP, int *buttonTypeP, RawItemHdr *pButP) |
Obtains information about the Push Button specified by pButP. More... | |
StatusInt | mdlDialog_pushButtonSetIcon (RawItemHdr *pButP, UInt32 *iconAlignmentP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP) |
Sets the icon information for a PushButton or PushButtonX item. More... | |
StatusInt | mdlDialog_pushButtonSetPressedIcon (RawItemHdr *pButP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP) |
Sets the pressed icon id, type and owner for the specified pushbutton dialog item. More... | |
StatusInt | mdlDialog_pushButtonSetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, WChar **unparsedPP, int *buttonTypeP, bool redraw, RawItemHdr *pButP) |
Sets information about the Push Button specified by pButP. More... | |
StatusInt | mdlDialog_pushButtonSetIconColors (RawItemHdr *pButP, BSIColorDescr **iconFgColorPP, BSIColorDescr **iconBgColorPP) |
Sets the foreground and background icon colors for the specified Push Button dialog item. More... | |
ErrorCode mdlDialog_pushButtonActivate | ( | RawItemHdr * | pButP | ) |
Activates the Push Button identified by pButP.
Activating a Push Button simulates the user clicking the mouse while the mouse cursor is over the Push Button.
[in] | pButP | Push Button item to activate |
StatusInt mdlDialog_pushButtonGetInfo | ( | CommandNumber * | commandNumberP, |
UInt32 * | commandSourceP, | ||
WChar ** | unparsedPP, | ||
int * | buttonTypeP, | ||
RawItemHdr * | pButP | ||
) |
Obtains information about the Push Button specified by pButP.
[out] | commandNumberP | points to a variable to receive the command that is activated when the button is pressed. |
[out] | commandSourceP | indicates the owning application. If zero, the owning application is MicroStation. If non-zero, the owning application is the application that built the MSDialog. |
[out] | unparsedPP | points to a string to be passed to the command. The string is copied into the queue element, and the function that processes the command receives a pointer to the copy. The string that unparsedPP points to can be in a temporary location. If there is no string to pass to the command, unparsedPP can be NULL. It can also point to a zero-length string. |
[out] | buttonTypeP | returns the button type. Possible values are DEFAULT_BUTTON, CANCEL_BUTTON, or zero (meaning the button is of some other type). |
[in] | pButP | Push Button to get info on |
StatusInt mdlDialog_pushButtonSetCancel | ( | RawItemHdr * | pButP, |
bool | isCancel | ||
) |
Changes the cancel status of the Push Button identified by pButP.
If isCancel is true, the Push Button is made the Cancel button. If isCancel is false, the Push Button has its cancel status revoked.
[in] | pButP | Push Button item to change |
[in] | isCancel | false if button is no longer cancel |
StatusInt mdlDialog_pushButtonSetDefault | ( | RawItemHdr * | pButP, |
bool | isDefault | ||
) |
Changes the default status of the Push Button identified by pButP.
If isDefault is true, the Push Button is made the default. If isDefault is false, the Push Button has its default status revoked.
[in] | pButP | Push Button item to change |
[in] | isDefault | false if button is no longer the default |
StatusInt mdlDialog_pushButtonSetIcon | ( | RawItemHdr * | pButP, |
UInt32 * | iconAlignmentP, | ||
RscId * | iconIdP, | ||
RscType * | iconTypeP, | ||
MdlDesc ** | iconOwnerMDP | ||
) |
Sets the icon information for a PushButton or PushButtonX item.
[in] | pButP | points to the RawItemHdr for the PushButton item |
[in] | iconAlignmentP | points to an unsigned long representing the alignment to be used for the icon |
[in] | iconIdP | points to a long representing the id of the icon to be used |
[in] | iconTypeP | points to an unsigned long representing the type of icon to be used |
[in] | iconOwnerMDP | points to the MDL Descriptor of the icon to be used |
StatusInt mdlDialog_pushButtonSetIconColors | ( | RawItemHdr * | pButP, |
BSIColorDescr ** | iconFgColorPP, | ||
BSIColorDescr ** | iconBgColorPP | ||
) |
Sets the foreground and background icon colors for the specified Push Button dialog item.
[in] | pButP | points to the pushbutton item to set the icon colors in |
[in] | iconFgColorPP | the color descriptor for the foreground color, set NULL if not setting the foreground color |
[in] | iconBgColorPP | the color descriptor for the background color, set NULL if not setting the background color |
StatusInt mdlDialog_pushButtonSetInfo | ( | CommandNumber * | commandNumberP, |
UInt32 * | commandSourceP, | ||
WChar ** | unparsedPP, | ||
int * | buttonTypeP, | ||
bool | redraw, | ||
RawItemHdr * | pButP | ||
) |
Sets information about the Push Button specified by pButP.
[in] | commandNumberP | points to a variable to receive the command to be activated when the button is pressed. |
[in] | commandSourceP | indicates the owning application. If zero, the owning application will be MicroStation. If non-zero, the owning application is the application that built the MSDialog. |
[in] | unparsedPP | points to a string to be passed to the command. The string is copied into the queue element, and the function that processes the command receives a pointer to the copy. The string that unparsedPP points to can be in a temporary location. If there is no string to pass to the command, unparsedPP can be NULL. It can also point to a zero-length string. |
[in] | buttonTypeP | sets the button type. Possible values are DEFAULT_BUTTON, CANCEL_BUTTON, or zero (meaning the button is of some other type). |
[in] | redraw | if set to true, will redraw the button after the new information is set, so that the button's appearance will reflect any changes. |
[in] | pButP | pushbutton to set info on |
StatusInt mdlDialog_pushButtonSetPressedIcon | ( | RawItemHdr * | pButP, |
RscId * | iconIdP, | ||
RscType * | iconTypeP, | ||
MdlDesc ** | iconOwnerMDP | ||
) |
Sets the pressed icon id, type and owner for the specified pushbutton dialog item.
[in] | pButP | is the pushbutton to set the pressed icon for. |
[in] | iconIdP | is the Id of the pressed icon, or NULL if not setting this information. |
[in] | iconTypeP | is the icon type, or NULL if not setting this information. |
[in] | iconOwnerMDP | is the icon ownerMD, or NULL if not setting this information. |