Functions | |
int | mdlDialog_fileOpenExt (BeFileNameR fileName, FileOpenExtraInfo *extraInfoP, FileOpenParams *paramsP, int attributes) |
Displays a Dialog Box that lets the user select a file to open or create. More... | |
int | mdlDialog_openAdvisoryBox (RscId dialogId, WCharCP titleP, WCharCP stringP, MessageBoxIconType whichIcon) |
Presents a message that cannot be dismissed. More... | |
void | mdlDialog_balloonTextShow (MSDialogP dbP, Point2dCP cursorPt, bool showBalloon, WCharCP displayText, BSIRectCP localItemRectP, Point2dCP originPtP, int fontIndex, BSIColorDescrCP textColorP) |
Displays or hides the tooltip window. More... | |
StatusInt | mdlDialog_hookDialogGetSecondary (MdlDescP *dialogHookMDP, PFDialogBoxHook *dialogHookFuncP, MSDialogP dbP) |
Gets the secondary hook information for a Dialog Box. More... | |
StatusInt | mdlDialog_hookDialogSetSecondary (MSDialogP dbP, PFDialogBoxHook dialogHookFuncP, DialogHookInterests *pHookInterests) |
Sets/Adds at secondary hook to the Dialog Box. More... | |
StatusInt | mdlDialog_hookDialogRemoveSecondary (MSDialogP dbP, PFDialogBoxHook pFunc) |
Removes a secondary hook from a Dialog Box. More... | |
StatusInt | mdlDialog_addHookHandler (MSDialogP dbP, DialogHookHandler *pHandler, DialogHookInterests *pHookInterests) |
Adds a dialog hook handler to the Dialog Box. More... | |
StatusInt | mdlDialog_hookItemSetByDescr (RawItemHdrP riP, PFDialogItemHook pFunc, MdlDescP mdlDescP) |
Sets the hook information for a dialog item. More... | |
void | mdlDialog_adjustPopDownHeight (MSDialogP dbP) |
Adjusts the width and height of the Tool Settings window after hiding or showing items in the Command Item List. More... | |
void | mdlDialog_toolSettingsAdjustWidthAndHeight () |
Adjusts the width and height of the Tool Settings window after hiding or showing items in the Command Item List. More... | |
int | mdlDialog_itemGetCancel (MSDialogP dbP) |
Gets the index of the cancel button for the specified dialog. More... | |
int | mdlDialog_itemGetDefault (MSDialogP dbP) |
Gets the index of the default button for the specified dialog. More... | |
bool | mdlDialog_itemIsValid (DialogItemP diP) |
Validates a DialogItem pointer. More... | |
void | mdlDialog_beep (int tone, int ticks, int rept) |
Beeps at given tone for a given number of ticks. More... | |
MSDialogP | mdlDialog_overallTitleBarGet (void) |
Returns a pointer of the Dialog Box containing MicroStation's overall application title and main menu. More... | |
MSDialogP | mdlDialog_keyinWindowGet (void) |
Returns a MSDialog pointer of the main key-in area, which can be referenced without having to consider the currently selected interface style. More... | |
MSDialogP | mdlDialog_statusAreaGet (void) |
Returns a pointer of the Dialog Box containing the current snap icon, active level, etc. More... | |
void | mdlDialog_dmsgsClear (void) |
Clears the "Messages" Dialog Box. More... | |
void | mdlDialog_dmsgsGetPrintState (UInt32 *bypassMessagesP) |
Gets the print state of the "Messages" Dialog Box. More... | |
void | mdlDialog_dmsgsPrintA (char *stringP) |
Allows application developers to display status or diagnostic messages to the Dialog Manager's Messages Dialog Box. More... | |
void | mdlDialog_dmsgsPrint (WCharCP stringP) |
Allows application developers to display status or diagnostic messages to the Dialog Manager's Messages Dialog Box. More... | |
void | mdlDialog_dmsgsPrintDialogMsg (DialogMessage *dmP, bool filterCommandWindow) |
Displays information on the dialog message dmP in the "Messages" Dialog Box. More... | |
void | mdlDialog_dmsgsPrintItemMsg (DialogItemMessage *dimP, bool filterCommandWindow, bool fromHookFunction) |
Displays information on the dialog item message dimP in the "Messages" Dialog Box. More... | |
void | mdlDialog_dmsgsSet (bool dialogMessages, bool itemHookMessages, bool itemHandlerMessages, bool verboseMessages) |
Controls which types of messages for which information will be displayed. More... | |
void | mdlDialog_dmsgsSetPrintState (UInt32 bypassMessages) |
Sets the print state of the "Messages" Dialog Box. More... | |
void | mdlDialog_dump (MSDialogP dbP) |
Displays diagnostic information about a Dialog Box and its constituent items. More... | |
bool | mdlDialog_isValidDialog (MSDialogP dbP) |
Determines the validity of a MSDialog pointer. More... | |
bool | mdlDialog_isFocusable (MSDialogP dbP) |
Returns the focusable state of a Dialog Box. More... | |
bool | mdlDialog_isUstnTaskIdP (WCharCP taskIdP) |
Determines whether a task is the main (Ustn) Task Id. More... | |
StatusInt | mdlDialog_userPrefFileOpen (RscFileHandle *userPrefHP, int readWriteAccess) |
Obtains a resource file handle corresponding to the active user preferences file for the current MicroStation session. More... | |
void * | mdlDialog_fixResourceAddress (byte *resP, byte *memberP, size_t sizeMember) |
Obtains a properly aligned pointer to a structure member within a resource. More... | |
StatusInt | mdlDialog_itemHandlerFind (MdlDescP *mdlDescP, void(**mdlFunc)(DialogItemMessage *), RscType itemType) |
Retrieves certain information about a dialog item handler. More... | |
StatusInt | mdlDialog_itemHandlerGetInfo (DialogItemHandlerInfo **itemHandlerPP, RscType itemType) |
Retrieves certain information about a dialog item handler. More... | |
StatusInt | mdlDialog_nativeItemHandlerPublishByMdlDesc (int nHandlers, DialogItemHandler *pHandlers) |
Publishes dialog item handlers based on data in an array of DialogItemHandler structures. More... | |
int | mdlDialog_itemGetType (DialogItemP diP) |
Returns the type of the dialog item. More... | |
int | mdlDialog_itemGetID (DialogItemP diP) |
Returns the resource ID of the dialog item. More... | |
RawItemHdrP | mdlDialog_itemGetRawItemHdr (DialogItemP diP) |
Returns a pointer to the item's raw item header. More... | |
DialogItemP | mdlDialog_rItemGetDialogItem (RawItemHdrP riP) |
Returns a pointer to the raw item's dialog item. More... | |
int | mdlDialog_getID (MSDialogP dbP) |
Returns the resource ID of the dialog box. More... | |
StatusInt mdlDialog_addHookHandler | ( | MSDialogP | dbP, |
DialogHookHandler * | pHandler, | ||
DialogHookInterests * | pHookInterests | ||
) |
Adds a dialog hook handler to the Dialog Box.
[in] | dbP | Dialog Box with a secondary hook |
[in] | pHandler | pointer to the hook handler |
[in] | pHookInterests | flags representing which events the the handler will be notified about |
void mdlDialog_adjustPopDownHeight | ( | MSDialogP | dbP | ) |
Adjusts the width and height of the Tool Settings window after hiding or showing items in the Command Item List.
[in] | dbP | The Tool Settings Dialog. Get the Tool Settings window by calling mdlDialog_getToolSettings. |
void mdlDialog_balloonTextShow | ( | MSDialogP | dbP, |
Point2dCP | cursorPt, | ||
bool | showBalloon, | ||
WCharCP | displayText, | ||
BSIRectCP | localItemRectP, | ||
Point2dCP | originPtP, | ||
int | fontIndex, | ||
BSIColorDescrCP | textColorP | ||
) |
Displays or hides the tooltip window.
[in] | dbP | Dialog the cursor & origin are relative to |
[in] | cursorPt | Origin of the cursor |
[in] | showBalloon | true means open, false to CLOSE |
[in] | displayText | Text to display |
[in] | localItemRectP | Rect of item, used if originPt not specified |
[in] | originPtP | Override Origin of the Balloon Popup |
[in] | fontIndex | FontIndex to be used for text |
[in] | textColorP | Color of text |
void mdlDialog_beep | ( | int | tone, |
int | ticks, | ||
int | rept | ||
) |
Beeps at given tone for a given number of ticks.
[in] | tone | the tone in Hz |
[in] | ticks | the duration of each beep |
[in] | rept | the number of repititions |
void mdlDialog_dmsgsClear | ( | void | ) |
Clears the "Messages" Dialog Box.
It takes no arguments.
void mdlDialog_dmsgsGetPrintState | ( | UInt32 * | bypassMessagesP | ) |
Gets the print state of the "Messages" Dialog Box.
[out] | bypassMessagesP | receives the "messages bypassed" flags |
void mdlDialog_dmsgsPrint | ( | WCharCP | stringP | ) |
Allows application developers to display status or diagnostic messages to the Dialog Manager's Messages Dialog Box.
If the Messages Dialog Box is not already visible on the screen, calling this function will make it so.
[in] | stringP | is a free-form string to display in the Dialog Manager's Messages Dialog Box. |
void mdlDialog_dmsgsPrintA | ( | char * | stringP | ) |
Allows application developers to display status or diagnostic messages to the Dialog Manager's Messages Dialog Box.
If the Messages Dialog Box is not already visible on the screen, calling this function will make it so.
[in] | stringP | is a free-form string to display in the Dialog Manager's Messages Dialog Box. |
void mdlDialog_dmsgsPrintDialogMsg | ( | DialogMessage * | dmP, |
bool | filterCommandWindow | ||
) |
Displays information on the dialog message dmP in the "Messages" Dialog Box.
It can be used to display information on messages that are being sent to a particular dialog hook function. The last parameter should always be true.
[in] | dmP | dialog messag to print |
[in] | filterCommandWindow | always set to true |
void mdlDialog_dmsgsPrintItemMsg | ( | DialogItemMessage * | dimP, |
bool | filterCommandWindow, | ||
bool | fromHookFunction | ||
) |
Displays information on the dialog item message dimP in the "Messages" Dialog Box.
It can be used to display information on messages that are being sent to a particular item hook function. The last two parameters should always be set to true.
[in] | dimP | dialog item message to print |
[in] | filterCommandWindow | always set to true |
[in] | fromHookFunction | always set to true |
void mdlDialog_dmsgsSet | ( | bool | dialogMessages, |
bool | itemHookMessages, | ||
bool | itemHandlerMessages, | ||
bool | verboseMessages | ||
) |
Controls which types of messages for which information will be displayed.
Set the dialogMessages, itemHookMessages or itemHandlerMessages parameter to true to display information for those types of messages. Set verbose to true to turn on detailed information for any displayed messages.
[in] | dialogMessages | display dialog hook messages? |
[in] | itemHookMessages | display item hook messages? |
[in] | itemHandlerMessages | display item handler messages? |
[in] | verboseMessages | display msg details |
void mdlDialog_dmsgsSetPrintState | ( | UInt32 | bypassMessages | ) |
Sets the print state of the "Messages" Dialog Box.
[in] | bypassMessages | the "messages bypassed" flags |
void mdlDialog_dump | ( | MSDialogP | dbP | ) |
Displays diagnostic information about a Dialog Box and its constituent items.
The information is displayed in the Dialog Manager's messages Dialog Box. If the messages Dialog Box is not already visible, calling this function will make it so. This is a debugging tool.
[in] | dbP | is the Dialog Box about which information will be displayed. |
int mdlDialog_fileOpenExt | ( | BeFileNameR | fileName, |
FileOpenExtraInfo * | extraInfoP, | ||
FileOpenParams * | paramsP, | ||
int | attributes | ||
) |
Displays a Dialog Box that lets the user select a file to open or create.
The mdlDialog_fileOpenExt function can be used in place of mdlDialog_fileOpen, mdlDialog_fileCreate, mdlDialog_defFileOpen, mdlDialog_defFileCreate and mdlDialog_fileCreateFromSeed.
[out] | fileName | returns the name of the file to be opened or created. On Open, fileNameP will be an existing file. On Create, if the file exists, an alert will display asking the user if the existing file should be overwritten. If the user chooses CANCEL, the user can choose another file name. If the user chooses OK, the file name will be returned. |
[out] | extraInfoP | returns additional information about the selected file. This structure will contain the name of the configuration variable used to select a directory (as in attaching a reference file) or the name of the seed file that should be used to create a file (as in creating a new design file). If this information is not needed, pass NULL. |
[in] | paramsP | is a structure containing file open parameters. The entire structure should be memset to 0 and then individual fields set as necessary. |
[in] | attributes | file open dialog attributes |
Obtains a properly aligned pointer to a structure member within a resource.
This function is useful for traversing resources which contain variable sized arrays (variable sized arrays make static dereferences impossible). The function uses three parameters to accomplish this as follows:
[in] | resP | the base address of the resource, is subtracted from memberP, the caller's best guess at the location of the desired structure member. This calculates the effective offset of the "best guess" relative to the beginning of the resource. ("Best guess" means the caller calculated the address without taking padding or alignment considerations into account). |
[in] | memberP | address of member that may need alignment fixing |
[in] | sizeMember | The third argument, the proposed alignment of the target member, is used to adjust the caller's proposed member offset required by the current hardware platform. That adjusted pointer is returned to the caller. |
int mdlDialog_getID | ( | MSDialogP | dbP | ) |
Returns the resource ID of the dialog box.
[in] | dbP | a pointer to the MSDialog |
StatusInt mdlDialog_hookDialogGetSecondary | ( | MdlDescP * | dialogHookMDP, |
PFDialogBoxHook * | dialogHookFuncP, | ||
MSDialogP | dbP | ||
) |
Gets the secondary hook information for a Dialog Box.
[out] | dialogHookMDP | Receives the MDL Descriptor for the secondary hook |
[out] | dialogHookFuncP | Receives the hook function pointer for the secondary hook |
[in] | dbP | Dialog Box with a secondary hook |
StatusInt mdlDialog_hookDialogRemoveSecondary | ( | MSDialogP | dbP, |
PFDialogBoxHook | pFunc | ||
) |
Removes a secondary hook from a Dialog Box.
[in] | dbP | Dialog Box with a secondary hook |
[in] | pFunc | pointer to the secondary hook function |
StatusInt mdlDialog_hookDialogSetSecondary | ( | MSDialogP | dbP, |
PFDialogBoxHook | dialogHookFuncP, | ||
DialogHookInterests * | pHookInterests | ||
) |
Sets/Adds at secondary hook to the Dialog Box.
[in] | dbP | Dialog Box with a secondary hook |
[in] | dialogHookFuncP | pointer to the secondary hook function |
[in] | pHookInterests | flags representing which events the secondary hook will be notified about |
StatusInt mdlDialog_hookItemSetByDescr | ( | RawItemHdrP | riP, |
PFDialogItemHook | pFunc, | ||
MdlDescP | mdlDescP | ||
) |
Sets the hook information for a dialog item.
[in] | riP | RawItemHdr pointer of a dialog item |
[in] | pFunc | pointer to the secondary hook function |
[in] | mdlDescP | The MDL Descriptor of the application |
bool mdlDialog_isFocusable | ( | MSDialogP | dbP | ) |
Returns the focusable state of a Dialog Box.
[in] | dbP | is the Dialog Box to check for focusability. |
bool mdlDialog_isUstnTaskIdP | ( | WCharCP | taskIdP | ) |
Determines whether a task is the main (Ustn) Task Id.
[in] | taskIdP | Task Id to check against Ustn TaskId. |
bool mdlDialog_isValidDialog | ( | MSDialogP | dbP | ) |
int mdlDialog_itemGetCancel | ( | MSDialogP | dbP | ) |
Gets the index of the cancel button for the specified dialog.
[in] | dbP | a pointer to the Dialog Box |
int mdlDialog_itemGetDefault | ( | MSDialogP | dbP | ) |
Gets the index of the default button for the specified dialog.
[in] | dbP | a pointer to the Dialog Box |
int mdlDialog_itemGetID | ( | DialogItemP | diP | ) |
Returns the resource ID of the dialog item.
[in] | diP | a pointer to the DialogItem |
RawItemHdrP mdlDialog_itemGetRawItemHdr | ( | DialogItemP | diP | ) |
Returns a pointer to the item's raw item header.
[in] | diP | a pointer to the DialogItem |
int mdlDialog_itemGetType | ( | DialogItemP | diP | ) |
Returns the type of the dialog item.
[in] | diP | a pointer to the DialogItem |
StatusInt mdlDialog_itemHandlerFind | ( | MdlDescP * | mdlDescP, |
void(**)(DialogItemMessage *) | mdlFunc, | ||
RscType | itemType | ||
) |
Retrieves certain information about a dialog item handler.
[in] | mdlDescP | pointer used to retrieve a pointer to the Mdl Descriptor of the item handler |
[in] | mdlFunc | pointer used to retrieve the function pointer of the item handler |
[in] | itemType | RTYPE of the dialog item. These types are defined in rtypes.r.h. |
StatusInt mdlDialog_itemHandlerGetInfo | ( | DialogItemHandlerInfo ** | itemHandlerPP, |
RscType | itemType | ||
) |
Retrieves certain information about a dialog item handler.
[in] | itemHandlerPP | pointer used to retrieve a pointer to a DialogItemHandlerInfo containing information about an item handler. DialogItemHandlerInfo is defined in dlogitem.h. |
[in] | itemType | RTYPE of the dialog item. These types are defined in rtypes.r.h. |
bool mdlDialog_itemIsValid | ( | DialogItemP | diP | ) |
Validates a DialogItem pointer.
[in] | diP | a pointer to the DialogItem |
MSDialogP mdlDialog_keyinWindowGet | ( | void | ) |
Returns a MSDialog pointer of the main key-in area, which can be referenced without having to consider the currently selected interface style.
StatusInt mdlDialog_nativeItemHandlerPublishByMdlDesc | ( | int | nHandlers, |
DialogItemHandler * | pHandlers | ||
) |
Publishes dialog item handlers based on data in an array of DialogItemHandler structures.
The DialogItemHandler structure is defined in dlogitem.h.
[in] | nHandlers | the number of handler structures in the array containing information about an item handler. DialogItemHandlerInfo is defined in dlogitem.h. |
[in] | pHandlers | points to an array DialogItemHandler structures containing information about dialog item handlers. |
int mdlDialog_openAdvisoryBox | ( | RscId | dialogId, |
WCharCP | titleP, | ||
WCharCP | stringP, | ||
MessageBoxIconType | whichIcon | ||
) |
Presents a message that cannot be dismissed.
Once opened, it will stay visible until the current drawing is closed.
[in] | dialogId | DialogId of AdvisoryBox |
[in] | titleP | string to display in title, NULL for default |
[in] | stringP | string to display in alert, NULL for default |
[in] | whichIcon | ID of icon to be displayed in box. 0 indicates no icon, or one of the MSGBOX_ICON_... IDs from dlogitem.h indicates which icon to use. |
MSDialogP mdlDialog_overallTitleBarGet | ( | void | ) |
Returns a pointer of the Dialog Box containing MicroStation's overall application title and main menu.
This function is not typically needed. The mdlDialog_menuBarGetCmdWinP function should be used if an application needs to dynamically alter MicroStation's main menu.
DialogItemP mdlDialog_rItemGetDialogItem | ( | RawItemHdrP | riP | ) |
Returns a pointer to the raw item's dialog item.
[in] | riP | a pointer to the raw item header. |
MSDialogP mdlDialog_statusAreaGet | ( | void | ) |
Returns a pointer of the Dialog Box containing the current snap icon, active level, etc.
Since the command window style interface does not have a status area, this function can be used to determine the currently selected interface style.
void mdlDialog_toolSettingsAdjustWidthAndHeight | ( | ) |
Adjusts the width and height of the Tool Settings window after hiding or showing items in the Command Item List.
StatusInt mdlDialog_userPrefFileOpen | ( | RscFileHandle * | userPrefHP, |
int | readWriteAccess | ||
) |
Obtains a resource file handle corresponding to the active user preferences file for the current MicroStation session.
Other resource manager calls such as mdlResource_addByAlias and mdlResource_loadByAlias can be called using this resource file handle.
[out] | userPrefHP | points to a location to receive the resource file handle for the user preferences file. |
[in] | readWriteAccess | is one of the valid file access modes defined in mdlResource_openFile. |