Functions
ditemlib.fdf File Reference
#include "dlogitem.h"
#include "listmodel.fdf"
#include <RmgrTools\Tools\msstrlst.h>

Functions

StatusInt mdlDialog_publishBasicArray (SymbolSet *setP, CType *typeP, char *variableName, void *variableP, int nMembers)
 Publishes a pointer to a basic C array for use in C expression strings. More...
 
StatusInt mdlDialog_publishBasicVariable (SymbolSet *setP, CType *typeP, char *variableName, void *variableP)
 Publishes a basic C data type variable for use in C expression strings. More...
 
StatusInt mdlDialog_publishComplexVariable (SymbolSet *setP, char *structName, char *variableName, void *variableP)
 Publishes a structure type variable for use in C expression strings. More...
 
StatusInt mdlDialog_publishBasicPtr (SymbolSet *setP, CType *typeP, char *variableName, void *variableP)
 Publishes a pointer to a basic C data type variable for use in C expression strings. More...
 
StatusInt mdlDialog_publishComplexPtr (SymbolSet *setP, char *structName, char *variableName, void *variableP)
 Publishes a pointer to a structure type variable for use in C expression strings. More...
 
StatusInt mdlDialog_publishStructure (SymbolSet *setP, char *structName)
 Publishes a structure declaration for use in C expression strings. More...
 
StatusInt mdlDialog_radioButtonGetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, UInt32 *maskP, UInt32 *valueP, long *radioButtonListIdP, RawItemHdr *rButP)
 Gets specific information about the specified Radio Button. More...
 
StatusInt mdlDialog_radioButtonSetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, UInt32 *maskP, UInt32 *valueP, long *radioButtonListIdP, RawItemHdr *rButP)
 Sets specific information about the specified Radio Button. More...
 
StatusInt mdlDialog_buttonGroupSetEnabled (RawItemHdr *bGroupP, int subItemIndex, bool enabled)
 Enables/disables a sub item of a ButtonGroup in a MSDialog. More...
 
StatusInt mdlDialog_buttonGroupGetSubInfo (WChar *labelP, RscType *iconTypeP, RscId *iconIdP, IconRsc **iconPP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, UInt32 *arrayIndexP, UInt32 *attributesP, void **userDataPP, RawItemHdr *bGroupP, int subItemIndex)
 Gets specific information about a sub item of a ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupSetSubInfo (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, IconRsc **iconPP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, UInt32 *arrayIndexP, UInt32 *attributesP, void **userDataPP, RawItemHdr *bGroupP, int subItemIndex, bool redraw)
 Gets specific information about a sub item of a ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupSetGreyed (RawItemHdr *bGroupP, int subItemIndex, bool greyed, bool redraw)
 Sets the specified sub item of a ButtonGroup to be greyed out (unselectable). More...
 
int mdlDialog_buttonGroupGetNItems (RawItemHdr *bGroupP)
 Gets the number of sub items in a ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupInsSubItem (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, UInt32 *arrayIndexP, UInt32 *attributesP, void **userDataH, RawItemHdr *bGroupP, int subItemIndex, bool redraw)
 Adds a sub item to the specified ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupInsSubItemDesc (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, UInt32 *arrayIndexP, UInt32 *attributesP, void **userDataH, RawItemHdr *bGroupP, int subItemIndex, bool redraw, MdlDesc *ownerMD)
 Adds a sub item to the specified ButtonGroup from a given Mdl Descriptor. More...
 
StatusInt mdlDialog_buttonGroupDeleteItem (RawItemHdr *bGroupP, int subItemIndex)
 Deletes a sub item from a ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupDeleteAll (RawItemHdr *bGroupP)
 Deletes a ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupDrawSubItem (RawItemHdr *bGroupP, int subItemIndex)
 Draws a sub item from a ButtonGroup. More...
 
StatusInt mdlDialog_buttonGroupSetPositionalScanCodes (RawItemHdr *bGroupP, int iZone, int iZoneItem, bool bShow, bool bRedraw)
 Sets or unsets the positional scancodes for the items in a ButtonGroup. More...
 
bool mdlItem_colorChanged (RawItemHdr *riP, int itemColorType)
 Queries whether an item's color has been changed from the default, and if so, gives the color type to which it has been changed. More...
 
StatusInt mdlDialog_labelSetAttributes (RawItemHdr *labelP, UInt32 attributes)
 Sets the attributes of the label item indicated by labelP. More...
 
StatusInt mdlDialog_labelGetAttributes (UInt32 *attributesP, RawItemHdr *labelP)
 Gets the attributes of the label item indicated by labelP. More...
 
StatusInt mdlDialog_textGetRange (WChar *minimumP, WChar *maximumP, RawItemHdr *textP)
 Retrieves the minimum and maximum value strings from the Text item specified by textP. More...
 
StatusInt mdlDialog_textSetRange (RawItemHdr *textP, WCharCP minimumP, WCharCP maximumP)
 Sets the minimum and maximum value strings for the Text item specified by textP. More...
 
void mdlDialog_textGetBasicText (BasicText **bTextPP, RawItemHdr *textP)
 Gets the internal BasicText item from a MSDialog Text item. More...
 
StatusInt mdlDialog_textGetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, int *maxSizeP, WChar *formatToDisplayP, WChar *formatToInternalP, WChar *minimumP, WChar *maximumP, UInt32 *maskP, UShort *attributesP, long *labelAboveP, RawItemHdr *textP)
 Gets information on the attributes of a Text item. More...
 
StatusInt mdlDialog_textSetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, int *maxSizeP, WCharCP formatToDisplayP, WCharCP formatToInternalP, WCharCP minimumP, WCharCP maximumP, UInt32 *maskP, UShort *attributesP, long *labelAboveP, bool redraw, RawItemHdr *textP)
 Sets information on the attributes of a Text item. More...
 
StatusInt mdlDialog_textSetSubEditor (RawItemHdr *textP, bool bSubEditor, RawItemHdr *ownerRiP)
 Enables the specified Text item as a sub-editor. More...
 
StatusInt mdlDialog_textSetWatermarkText (RawItemHdr *textP, WCharCP watermarkText)
 Sets the "watermark" text to display inside a text item when empty. More...
 
void mdlDialog_mlTextGetBasicText (void **bTextPP, RawItemHdr *mlTextP)
 Gets the internal BasicText item from a MSDialog Multi-Line Text item. More...
 
StatusInt mdlDialog_mlTextGetInfo (int *attributesP, int *displayRowsP, int *labelAboveP, RawItemHdr *mlTextP)
 Gets information on Multi-Line Text items. More...
 
StatusInt mdlDialog_mlTextSetInfo (int *attributesP, int *displayRowsP, int *labelAboveP, bool redraw, RawItemHdr *mlTextP)
 Sets information on Multi-Line Text items. More...
 
StatusInt mdlDialog_mlTextSetCursor (RawItemHdr *mlTextP, int lineNumber, UInt32 startCharPos, bool forceVisible)
 Sets the cursor position in a Multi-Line Text item. More...
 
StatusInt mdlDialog_mlTextGetCursor (int *lineNumberP, UInt32 *startCharPosP, RawItemHdr *mlTextP)
 Retrieves the current cursor position for the Multi-Line Text item specified by mlTextP. More...
 
int mdlDialog_mlTextTopRowNumber (RawItemHdr *mlTextP, int firstRow)
 Forces the specified row to be the first row in the Text item's display area. More...
 
StatusInt mdlDialog_mlTextGetLineRange (UInt32 *startCharPosP, UInt32 *endCharPosP, RawItemHdr *mlTextP, int lineNumber)
 Retrieves the byte indices for the beginning and end of a line in the Multi-Line Text item. More...
 
StatusInt mdlDialog_mlTextInsertString (RawItemHdr *mlTextP, WCharCP stringP, int charsToReplace, int offset)
 Inserts a string at the specified offset. More...
 
StatusInt mdlDialog_mlTextGetLineCoords (int *lineP, int *offsetP, RawItemHdr *mlTextP, int byteOffset)
 Translates a byte offset into a line number and offset. More...
 
int mdlDialog_mlTextGetTopRowNumber (RawItemHdr *mlTextP)
 Returns the row number of the first row in the Text item's display area. More...
 
StatusInt mdlDialog_mlTextGetHighlightRange (int *startPosP, int *endPosP, RawItemHdr *mlTextP)
 Gets the highlight range of a Multi-Line Text dialog item. More...
 
StatusInt mdlDialog_mlTextSetHighlightRange (UInt32 *startPosP, UInt32 *endPosP, RawItemHdr *mlTextP)
 Sets the highlight range in a Multi-Line Text dialog item. More...
 
StatusInt mdlDialog_scrollBarSetRange (RawItemHdr *sbarP, double sliderSize, int minValue, int maxValue, int incAmount, int pageIncAmount)
 Sets the range information associated with the Scroll Bar item specified by the sbarP parameter. More...
 
StatusInt mdlDialog_scrollBarSetRangeRedraw (RawItemHdr *sbarP, double sliderSize, int minValue, int maxValue, int incAmount, int pageIncAmount, bool redraw)
 Sets the range information associated with the Scroll Bar item specified by the sbarP parameter. More...
 
StatusInt mdlDialog_scrollBarGetInfo (long *minValueP, long *maxValueP, long *incAmountP, long *pageIncAmountP, double *sliderSizeP, bool *isVerticalP, RawItemHdr *sbarP)
 Gets information on Scroll Bar items. More...
 
StatusInt mdlDialog_scrollBarSetInfo (long *minValueP, long *maxValueP, long *incAmountP, long *pageIncAmountP, double *sliderSizeP, bool *isVerticalP, bool redraw, RawItemHdr *sbarP)
 Sets information on Scroll Bar items. More...
 
ErrorCode mdlDialog_listBoxSetStrListP (RawItemHdr *listBoxP, StringListP strListP, int nColumns)
 Sets the StringList that the List Box item will use. More...
 
ErrorCode mdlDialog_listBoxSetListModelP (RawItemHdr *listBoxP, ListModel *pListModel, int unused)
 Sets the ListModel pointer in the ListBox. More...
 
ErrorCode mdlDialog_listBoxSetListModelPEx (RawItemHdr *listBoxP, ListModel *pListModel, int unused, bool redraw)
 An extension of mdlDialog_listBoxSetListModelP that allows control over the redrawing of the ListBox after setting the ListModel pointer. More...
 
ErrorCode mdlDialog_listBoxNRowsChangedRedraw (RawItemHdr *listBoxP, bool redraw)
 Similar to mdlDialog_listBoxNRowsChanged but also gives the option of redrawing or not. More...
 
ErrorCode mdlDialog_listBoxNRowsChanged (RawItemHdr *listBoxP)
 Informs the List Box item specified by listBoxP that the number of rows in its StringList or ListModel has changed. More...
 
StringListP mdlDialog_listBoxGetStrListP (RawItemHdr *listBoxP)
 Retrieves a pointer to the StringList that the List Box item specified by listBoxP is manipulating. More...
 
ListModel * mdlDialog_listBoxGetListModelP (RawItemHdr *listBoxP)
 Retrieves a pointer to the ListModel. More...
 
ErrorCode mdlDialog_listBoxGetDisplayRange (int *topRowIndexP, int *bottomRowIndexP, int *leftColIndexP, int *rightColIndexP, RawItemHdr *listBoxP)
 Gets the range of the cells that are displayed in the List Box specified by listBoxP. More...
 
ErrorCode mdlDialog_listBoxSetTopRow (RawItemHdr *listBoxP, int topRowIndex)
 Sets the first displayed row of a List Box to be topRowIndex. More...
 
ErrorCode mdlDialog_listBoxSetTopRowRedraw (RawItemHdr *listBoxP, int topRowIndex, bool redraw)
 Sets which row number of a List Box is displayed as the first row. More...
 
ErrorCode mdlDialog_listBoxDrawContents (RawItemHdr *listBoxP, int relRowIndex, int relColIndex)
 Draws the contents of the List Box item specified by listBoxP. More...
 
ErrorCode mdlDialog_listBoxSelectCells (RawItemHdr *listBoxP, int minRowIndex, int maxRowIndex, int minColIndex, int maxColIndex, bool selectOn, bool redraw)
 Selects a range of cells in the List Box specified by listBoxP. More...
 
ErrorCode mdlDialog_listBoxEnableCells (RawItemHdr *listBoxP, int minRowIndex, int maxRowIndex, int minColIndex, int maxColIndex, bool enable, bool redraw)
 Enables or disables a range of cells in the List Box specified by listBoxP. More...
 
ErrorCode mdlDialog_listBoxGetSelectRange (int *minRowIndexP, int *maxRowIndexP, int *minColIndexP, int *maxColIndexP, RawItemHdr *listBoxP)
 Gets the range of the cells that are currently selected in the List Box specified by listBoxP. More...
 
ErrorCode mdlDialog_listBoxGetNextSelection (bool *foundP, int *rowIndexP, int *colIndexP, RawItemHdr *listBoxP)
 Searches for the next selected cell of the List Box specified by listBoxP. More...
 
StatusInt mdlDialog_listBoxFindCell (int *iRowP, int *iColP, RawItemHdr *listBoxP, Point2d *ptP)
 Returns the row and column in the List Box at the current mouse position, ptP. More...
 
bool mdlDialog_listBoxIsCellSelected (RawItemHdr *listBoxP, int rowIndex, int colIndex)
 Determines if a cell in the List Box specified by listBoxP is selected. More...
 
bool mdlDialog_listBoxIsCellEnabled (RawItemHdr *listBoxP, int rowIndex, int colIndex)
 Determines if a cell in the List Box specified by listBoxP is enabled. More...
 
ErrorCode mdlDialog_listBoxLastCellClicked (int *rowIndexP, int *colIndexP, RawItemHdr *listBoxP)
 Determines the cell in the List Box specified by listBoxP in which the data button was last clicked. More...
 
StatusInt mdlDialog_listBoxGetInfo (UInt32 *attributesP, UInt32 *nRowsP, UInt32 *sizeNumColumnP, RawItemHdr *listBoxP)
 Gets several parameters associated with List Boxes. More...
 
StatusInt mdlDialog_listBoxSetInfo (UInt32 *attributesP, UInt32 *nRowsP, UInt32 *sizeNumColumnP, bool redraw, RawItemHdr *listBoxP)
 Sets several parameters associated with List Boxes. More...
 
StatusInt mdlDialog_listBoxGetInfoEx (UInt32 *attributesP, UInt32 *nRowsP, UInt32 *sizeNumColumnP, UInt32 *attributesExP, UInt32 *statusFlagsP, RawItemHdr *listBoxP)
 Gets several parameters associated with List Boxes. More...
 
StatusInt mdlDialog_listBoxSetInfoEx (UInt32 *attributesP, UInt32 *nRowsP, UInt32 *sizeNumColumnP, UInt32 *attributesExP, bool redraw, RawItemHdr *listBoxP)
 Sets several parameters associated with List Boxes. More...
 
int mdlDialog_listBoxGetNColumns (RawItemHdr *listBoxP)
 Retrieves the number of columns present in a List Box. More...
 
StatusInt mdlDialog_listBoxGetColInfo (int *widthP, int *maxSizeP, UInt32 *attributesP, WChar *headingP, RawItemHdr *listBoxP, int columnIndex)
 Gets several parameters associated with individual columns in List Boxes. More...
 
StatusInt mdlDialog_listBoxSetColInfo (int *widthP, int *maxSizeP, UInt32 *attributesP, WCharCP headingP, RawItemHdr *listBoxP, int columnIndex, bool redraw)
 Sets several parameters associated with individual columns in List Boxes. More...
 
StatusInt mdlDialog_listBoxInsertColumn (int *widthP, int *maxSizeP, UInt32 *attributesP, WCharCP headingP, RawItemHdr *listBoxP, int columnIndex, bool redraw)
 Inserts a new column into an existing List Box. More...
 
StatusInt mdlDialog_listBoxSetColumnHeading (WCharCP headingP, RawItemHdr *listBoxP, int columnIndex, bool redraw)
 Updates a column's heading to a Unicode string. More...
 
StatusInt mdlDialog_listBoxGetColInfoEx (int *widthP, int *maxSizeP, UInt32 *attributesP, WChar *headingP, int *originXP, short *sortStatusP, int *sortSecondaryColP, RawItemHdr *listBoxP, int columnIndex)
 Similar to the mdlDialog_listBoxGetColInfo but with added arguments. More...
 
StatusInt mdlDialog_listBoxSetColInfoEx (int *widthP, int *maxSizeP, UInt32 *attributesP, WCharCP headingP, short *sortStatusP, ListColumnSortFuncP sortFunc, MdlDesc *sortOwnerMD, int *sortSecondaryColP, RawItemHdr *listBoxP, int columnIndex, bool redraw)
 Similar to the mdlDialog_listBoxSetColInfo but with added arguments. More...
 
int mdlDialog_listBoxGetSortColumn (RawItemHdr *listBoxP)
 Gets the index of the current sorted column. More...
 
StatusInt mdlDialog_listBoxSetSortColumn (short *sortStatusP, ListColumnSortFuncP sortFunc, MdlDesc *sortOwnerMD, int *sortSecondaryColP, RawItemHdr *listBoxP, int columnIndex, bool sort, bool redraw)
 Sets the current sorted column and allows the setting of sort information on the column. More...
 
StatusInt mdlDialog_listBoxInsertColumnEx (int *widthP, int *maxSizeP, UInt32 *attributesP, WCharCP headingP, short *sortStatusP, ListColumnSortFuncP sortFunc, MdlDesc *sortOwnerMD, int *sortSecondaryColP, RawItemHdr *listBoxP, int columnIndex, bool redraw)
 Similar to the mdlDialog_listBoxInsertColumn but with added arguments. More...
 
StatusInt mdlDialog_listBoxDeleteColumn (RawItemHdr *listBoxP, int columnIndex, bool redraw)
 Deletes one column from a List Box. More...
 
StatusInt mdlDialog_listBoxDeleteAll (RawItemHdr *listBoxP)
 Deletes all columns from a List Box. More...
 
StatusInt mdlDialog_listBoxGetSelections (int *nSelectionsP, SPoint2d **selectionsPP, RawItemHdr *listBoxP)
 Returns a pointer to an array indicating which cells of the given ListBox are currently selected. More...
 
StatusInt mdlDialog_listBoxSetSelections (RawItemHdr *listBoxP, int nSelections, SPoint2d *selectionsP, bool deselectAllFirst, bool redraw)
 Sets which cells in a List Box are selected given a pointer to an array of cell coordinates. More...
 
StatusInt mdlDialog_listBoxGetSelectionsX (int *nSelectionsP, Point2d **selectionsPP, RawItemHdr *listBoxP)
 Returns a pointer to an array indicating which cells of the given ListBox are currently selected. More...
 
StatusInt mdlDialog_listBoxSetSelectionsX (RawItemHdr *listBoxP, int nSelections, Point2d *selectionsP, bool deselectAllFirst, bool redraw)
 Sets which cells in a List Box are selected given a pointer to an array of cell coordinates. More...
 
StatusInt mdlDialog_listBoxGetLocationCursor (int *locationRowP, int *locationColP, RawItemHdr *listBoxP)
 Returns the location of the selection cursor within a ListBox. More...
 
StatusInt mdlDialog_listBoxSetLocationCursor (RawItemHdr *listBoxP, int locationRow, int locationCol)
 Sets the location of the selection cursor within a ListBox. More...
 
StatusInt mdlDialog_listBoxGetHeights (int *rowHeightP, int *headingHeightP, int *labelHeightP, RawItemHdr *listBoxP)
 Retrieves several heights from a ListBox, including the row height, heading height and label height. More...
 
ErrorCode mdlDialog_listBoxSetFilter (RawItemHdr *listBoxP, bool bFilter, WChar *pwFilterTableName, UInt32 filterId, bool redraw)
 Changes the status of the filter for the specified List Box, and optionally redraws the List Box. More...
 
ErrorCode mdlDialog_listBoxSetHighlightColumn (RawItemHdr *listBoxP, int columnIndex)
 Sets the highlight column in the specified List Box. More...
 
ErrorCode mdlDialog_listBoxGetEditCell (int *rowIndexP, int *colIndexP, RawItemHdr *listBoxP)
 Gets the row and column of the cell being edited in the ListBox item. More...
 
ErrorCode mdlDialog_listBoxEditCell (RawItemHdr *listBoxP, int rowIndex, int colIndex)
 Starts a cell editing session on the specified row and column in the ListBox item. More...
 
ErrorCode mdlDialog_listBoxGetFullWidth (int *iFullWidthP, bool bSetColumnWidths, RawItemHdr *listBoxP)
 Gets the width of a ListBox with all columns expanded based on the widest column values. More...
 
ErrorCode mdlDialog_listBoxMakeRowVisible (RawItemHdr *listBoxP, int rowIndex)
 Makes a row visible by scrolling it into view. More...
 
StatusInt mdlDialog_listBoxColumnSetIcon (RawItemHdr *listBoxP, int columnIndex, UInt32 *iconAlignmentP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP, BSIColorDescr **iconFgColorPP, BSIColorDescr **iconBgColorPP)
 Sets the icon information for a ListBox column heading. More...
 
int mdlDialog_listBoxGetColDisplayIndex (RawItemHdr *listBoxP, int columnIndex)
 Retrieves a column's display index. More...
 
int mdlDialog_listBoxSetColDisplayIndex (RawItemHdr *listBoxP, int columnIndex, int displayIndex)
 Sets a column's display index. More...
 
StatusInt mdlDialog_listBoxSetKeySearchColumn (RawItemHdr *listBoxP, int columnIndex)
 Sets the key search column for a ListBox. More...
 
int mdlDialog_listBoxGetDisplayColumnIndex (RawItemHdr *listBoxP, int columnIndex)
 Gets the display column index associated with an application's column index. More...
 
StatusInt mdlDialog_listBoxSetDefaultSortColumn (RawItemHdr *listBoxP, int columnIndex, short sortStatus)
 Sets the default sort column for a ListBox. More...
 
StatusInt mdlDialog_listBoxSetSortBeginRow (RawItemHdr *listBoxP, int sortBeginRow)
 Sets the row from which to start user sorting. More...
 
StatusInt mdlDialog_optionButtonSetExtent (RawItemHdr *oButP)
 Causes the Dialog Manager to recompute the extents of the Option Button item pointed to by oButP. More...
 
StatusInt mdlDialog_optionButtonSetEnabled (RawItemHdr *oButP, int subItemIndex, bool enabled)
 Sets the enabled state (enabled or disabled) of a sub-item of the Option Button item specified by oButP to the value specified by enabled. More...
 
StatusInt mdlDialog_optionButtonGetItemInfo (WChar *labelP, RscType *iconTypeP, RscId *iconIdP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void **userDataPP, RawItemHdr *oButP, int subItemIndex)
 Gets information about an Option Button sub-item. More...
 
StatusInt mdlDialog_optionButtonSetItemInfo (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void **userDataPP, RawItemHdr *oButP, int subItemIndex)
 Sets information in an Option Button sub-item. More...
 
StatusInt mdlDialog_optionButtonGetSubInfo (WChar *labelP, RscType *iconTypeP, RscId *iconIdP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void **userDataPP, RawItemHdr *oButP, int subItemIndex)
 Gets information about an Option Button sub-item. More...
 
StatusInt mdlDialog_optionButtonSetSubInfo (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void **userDataPP, RawItemHdr *oButP, int subItemIndex)
 Sets information in an Option Button sub-item. More...
 
int mdlDialog_optionButtonGetNItems (RawItemHdr *oButP)
 Returns the number of sub-items contained in the Option Button item specified by oButP. More...
 
StatusInt mdlDialog_optionButtonInsertItem (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void *userDataP, RawItemHdr *oButP, int subItemIndex)
 Inserts an Option Button sub-item into the Option Button item specified by oButP. More...
 
StatusInt mdlDialog_optionButtonInsSubItem (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, CommandNumber *commandNumberP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void *userDataP, RawItemHdr *oButP, int subItemIndex)
 Inserts an Option Button sub-item into the Option Button item specified by oButP. More...
 
StatusInt mdlDialog_optionButtonDeleteItem (RawItemHdr *oButP, int subItemIndex)
 Deletes an Option Button sub- item from the Option Button specified by oButP. More...
 
void mdlDialog_optionButtonDeleteAll (RawItemHdr *oButP)
 Deletes all the sub-items from the Option Button specified by oButP. More...
 
StatusInt mdlDialog_optionButtonGetItemLabel (WStringR labelString, RawItemHdr *oButP, int subItemIndex)
 Gets the label for an OptionButton item. More...
 
StatusInt mdlDialog_optionButtonSetItemLabel (WCharCP pLabelText, RawItemHdr *oButP, int subItemIndex)
 Sets the label for an OptionButton item. More...
 
StatusInt mdlDialog_iconCmdGetInfo (RawItemHdr *iconCmdP, RscId *iconCmdIdP, WChar const **ownerTaskIdPP, IconRsc **iconRscPP, CommandNumber *commandNumberP, WChar const **commandTaskIdPP, UInt32 *attributesP, int *iconWidthP, int *iconHeightP, IconCmdSelectType *selectTypeP)
 Gets specific information about the specified icon command. More...
 
StatusInt mdlDialog_iconCmdSetInfo (RawItemHdr *iconCmdP, int *iconCmdIdP, MdlDesc **iconOwnerMDP, CommandNumber *commandNumberP, WChar const **commandTaskIdPP, UInt32 *attributesP)
 Sets specific information about the specified icon command. More...
 
StatusInt mdlDialog_iconCmdSetNamedIcon (RawItemHdr *iconCmdP, WCharCP iconName)
 Sets the named icon for the specified icon command. More...
 
RawItemHdrmdlDialog_menuBarGetCmdWinP (void)
 Gets a pointer to the RawItemHdr of the Command Window Menu Bar. More...
 
DItem_PulldownMenumdlDialog_menuBarFindAppMenu (RawItemHdr **menuBarPP)
 Gets the pointer to the applications menu. More...
 
DItem_PulldownMenumdlDialog_menuBarAddAppMenu (RawItemHdr *menuBarP)
 Adds the Applications menu to the Command Window Menu Bar, or to another Menu Bar if specified. More...
 
StatusInt mdlDialog_menuBarAddCmdWinMenu (DItem_PulldownMenuItem *menuItemP, long menuId, bool insertAlphabetically)
 Adds a Pull-Down menu to the Command Window Menu Bar. More...
 
StatusInt mdlDialog_menuBarDeleteCmdWinMenu (DItem_PulldownMenuItem *menuItemP)
 Removes a Pull-Down menu from the Command Window. More...
 
StatusInt mdlDialog_menuBarRegister (DItem_PulldownMenuItem *newMenuItemP, long menuBarId, WCharCP appName, bool disableMicroStation, bool setCmdWindowTitle)
 Creates a Menu Bar item from resource information The newly created menu appears as a selection on the applications menu. More...
 
StatusInt mdlDialog_menuBarActivate (DItem_PulldownMenuItem *menuItemP, WCharCP taskIdP, long menuBarId, bool override, bool disableMicroStation, bool setCmdWindowTitle)
 Makes a Menu Bar active in the command window. More...
 
StatusInt mdlDialog_menuBarSetDefault (DItem_PulldownMenuItem *menuItemP, WCharCP taskIdP, long menuBarId)
 Sets MicroStation's default Command Window Menu Bar from among the choices on the applications menu. More...
 
StatusInt mdlDialog_menuBarUnloadAppItem (DItem_PulldownMenuItem *menuItemP)
 Unloads from memory the specified application menu item and Menu Bar. More...
 
StatusInt mdlDialog_menuBarUnloadApp (DItem_PulldownMenuItem *menuItemP, WCharCP taskIdP, long menuBarId)
 Removes an applications menu item and the associated Menu Bar. More...
 
StatusInt mdlDialog_menuBarFindItem (DItem_PulldownMenuItem *menuItemP, DItem_PulldownMenu **menuPP, RawItemHdr *mbarP, UInt32 menuType, long menuId, long searchId)
 Finds, within a specified Pull-Down menu, the menu item whose search ID is searchId. More...
 
StatusInt mdlDialog_menuBarFindItemByCommandNumber (DItem_PulldownMenuItem *menuItemP, DItem_PulldownMenu **menuPP, RawItemHdr *mbarP, UInt32 menuType, long menuId, CommandNumber cmdNum)
 Finds, within a specified Pull-Down menu, the menu item whose CommandNumber is cmdNum. More...
 
StatusInt mdlDialog_menuBarFindItemByAccelerator (DItem_PulldownMenuItem *menuItemP, DItem_PulldownMenu **menuPP, RawItemHdr *mbarP, UInt32 menuType, long menuId, long accelerator)
 Searches the specified Menu Bar for the menu item that currently has the given accelerator. More...
 
StatusInt mdlDialog_menuBarGetItem (DItem_PulldownMenuItem *menuItemP, DItem_PulldownMenu **menuPP, RawItemHdr *mbarP, UInt32 menuType, long menuId, int subItemIndex)
 Retrieves a pointer to the subItemIndexth menu item of a specified Pull-Down menu. More...
 
DItem_PulldownMenumdlDialog_menuBarFindMenu (RawItemHdr *mbarP, UInt32 menuType, long menuId)
 Returns a pointer to the Pull-Down menu whose type is menuType and ID is menuId that is contained in the Menu Bar item mbarP. More...
 
DItem_PulldownMenumdlDialog_menuBarGetMenu (RawItemHdr *mbarP, int menuIndex)
 Returns a pointer to the Pull-Down menu at the menuIndex position within the Menu Bar item mbarP. More...
 
int mdlDialog_menuBarGetNMenus (RawItemHdr *mbarP)
 Returns the number of Pull-Down menus contained within the Menu Bar item specified by mbarP. More...
 
int mdlDialog_menuBarGetNItems (DItem_PulldownMenu **menuPP, RawItemHdr *mbarP, UInt32 menuType, long menuId)
 Returns the number of menu items contained within a specified Pull-Down menu. More...
 
StatusInt mdlDialog_menuBarGetSelection (UInt32 *menuTypeP, long *menuIdP, int *subItemIndexP, long *searchIdP, RawItemHdr *mbarP)
 Retrieves information about the last menu item that was selected by the user from the Menu Bar item specified by mbarP. More...
 
StatusInt mdlDialog_menuBarDeleteAllMenus (RawItemHdr *mbarP)
 Removes all Pull-Down menus from the Menu Bar item specified by mbarP. More...
 
StatusInt mdlDialog_menuBarDeleteMenu (DItem_PulldownMenu *menuP, RawItemHdr *mbarP, UInt32 menuType, long menuId)
 Deletes the specified Pull-Down menu from the Menu Bar item specified by mbarP. More...
 
StatusInt mdlDialog_menuBarInsertMenu (RawItemHdr *mbarP, UInt32 menuType, long menuId, DItem_PulldownMenu *beforeMenuP)
 Inserts the Pull-Down menu whose resource type is menuType and ID is menuId into the Menu Bar item specified by mbarP. More...
 
DItem_PulldownMenumdlDialog_menuBarInsMenu (RawItemHdr *mbarP, UInt32 menuType, long menuId, DItem_PulldownMenu *beforeMenuP)
 Inserts the Pull-Down menu whose resource type is menuType and ID is menuId into the Menu Bar item specified by mbarP. More...
 
DItem_PulldownMenumdlDialog_menuBarInsMenuEx (RawItemHdr *mbRiP, UInt32 menuType, long menuId, DItem_PulldownMenu *beforeMenuP, MdlDesc *ownerMD)
 Inserts the Pull-Down menu whose resource type is menuType and ID is menuId into the Menu Bar item specified by mbarP. More...
 
StatusInt mdlDialog_menuBarDetachMenu (DItem_PulldownMenu *menuP, RawItemHdr *mbarP, UInt32 menuType, long menuId, bool redraw)
 Removes a Pull-Down menu from a Menu Bar. More...
 
DItem_PulldownMenumdlDialog_menuBarAttachMenu (RawItemHdr *mbarP, DItem_PulldownMenu *menuP, DItem_PulldownMenu *beforeMenuP)
 Adds a Pull-Down menu to any Menu Bar. More...
 
StatusInt mdlDialog_menuBarDeleteItem (DItem_PulldownMenuItem *menuItemP)
 Deletes the Pull-Down menu item specified by menuItemP. More...
 
StatusInt mdlDialog_menuBarDeleteAllItems (DItem_PulldownMenu *menuP)
 Deletes all the pull- down menu items from the Pull-Down menu specified by menuP. More...
 
StatusInt mdlDialog_menuBarMenuGetTitle (WCharCP *titlePP, DItem_PulldownMenu *menuP)
 Retrieves a pointer to the title of the Pull-Down menu specified by menuP. More...
 
void mdlDialog_menuBarMenuSetTitle (DItem_PulldownMenu *menuP, WCharCP titleP)
 Sets the title of the pull- down menu specified by menuP to be the string pointed to by titleP. More...
 
StatusInt mdlDialog_menuBarMenuGetEnabled (bool *enabledP, DItem_PulldownMenu *menuP)
 Retrieves the enabled state (enabled or disabled) of the Pull-Down menu specified by menuP. More...
 
StatusInt mdlDialog_menuBarMenuSetEnabled (DItem_PulldownMenu *menuP, bool enabled)
 Sets the enabled state (enabled or disabled) of the Pull-Down menu specified by menuP to the value specified by enabled. More...
 
StatusInt mdlDialog_menuBarToggle (RawItemHdr *mbarP)
 Toggles the appearance of the specified menubar. More...
 
StatusInt mdlDialog_menuBarHasFocus (RawItemHdr *mbarP)
 Determines whether the menubar specified has the input focus. More...
 
StatusInt mdlDialog_textPDMItemGetInfo (TextPDM_Item *textPDMInfoP, DItem_PulldownMenuItem *menuItemP)
 Gets information about the Text Pull-down Menu item specified by menuItemP in the TextPDM_Item structure pointed to by textPDMInfoP. More...
 
StatusInt mdlDialog_textPDMItemSetInfo (DItem_PulldownMenuItem *menuItemP, TextPDM_Item *textPDMInfoP, TextPDM_ItemModify *textPDMModifyP)
 Sets information in the Text Pull-down Menu item specified by menuItemP using the TextPDM_Item structure pointed to by textPDMInfoP, and the TextPDM_ItemModify variable pointed to by textPDMModifyP. More...
 
StatusInt mdlDialog_textPDMItemSetEnabled (DItem_PulldownMenuItem *menuItemP, bool enabled)
 Sets the enabled state (enabled or disabled) of the Text Pull-down Menu item specified by menuItemP to the value specified by enabled. More...
 
StatusInt mdlDialog_textPDMItemSetLabel (DItem_PulldownMenuItem *menuItemP, WCharCP labelP)
 Sets the label of the Text Pull-down Menu item specified by menuItemP to the string pointed to by labelP. More...
 
StatusInt mdlDialog_textPDMItemSetMark (DItem_PulldownMenuItem *menuItemP, int markType)
 Sets the mark of the Text Pull-down Menu item specified by menuItemP to the value specified by markType. More...
 
StatusInt mdlDialog_textPDMItemInsert (DItem_PulldownMenu *menuP, DItem_PulldownMenuItem *menuItemP, TextPDM_Item *textPDMInfoP, TextPDM_ItemModify *textPDMModifyP)
 Inserts the Text Pull-down Menu item specified by textPDMInfoP and the TextPDM_ItemModify variable pointed to by textPDMModifyP into a Text Pull-down Menu. More...
 
StatusInt mdlDialog_textPDMItemIns (DItem_PulldownMenuItem *newMenuItemP, DItem_PulldownMenu *menuP, DItem_PulldownMenuItem *menuItemP, TextPDM_Item *textPDMInfoP, TextPDM_ItemModify *textPDMModifyP)
 Inserts the Text Pull-down Menu item specified by textPDMInfoP and the TextPDM_ItemModify variable pointed to by textPDMModifyP into a Text Pull-down Menu. More...
 
StatusInt mdlDialog_textPDMItemSetIcon (DItem_PulldownMenuItem *menuItemP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP, bool pressed)
 Sets the icon information for a PulldownMenuItem or PulldownIconMenuItem. More...
 
StatusInt mdlDialog_textPDMItemSetIconName (DItem_PulldownMenuItem *menuItemP, WCharCP iconNameP, Point2d *sizeP, bool pressed)
 Sets the icon information for a PulldownMenuItem or PulldownIconMenuItem. More...
 
StatusInt mdlDialog_textPDMItemGetIcon (RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP, bool *pressedP, DItem_PulldownMenuItem *menuItemP)
 Gets the icon that is specified for the given pulldown menu item. More...
 
StatusInt mdlDialog_textPDMItemSetPressedIcon (DItem_PulldownMenuItem *menuItemP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP)
 Sets the pressed icon id type and owner of the specified pulldown menu item. More...
 
StatusInt mdlDialog_optionPDMItemGetInfo (WChar *labelP, RscType *iconTypeP, RscId *iconIdP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void **userDataPP, DItem_PulldownMenuItem *menuItemP)
 Gets information about the Option Pull-Down menu item specified by menuItemP. More...
 
StatusInt mdlDialog_optionPDMItemSetInfo (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void **userDataPP, DItem_PulldownMenuItem *menuItemP)
 Sets information in the Option Pull-Down menu item specified by menuItemP. More...
 
StatusInt mdlDialog_optionPDMItemSetEnabled (DItem_PulldownMenuItem *menuItemP, bool enabled)
 Sets the enabled state (enabled or disabled) of the Option Pull-Down menu item specified by menuItemP to the value specified by enabled. More...
 
StatusInt mdlDialog_optionPDMItemInsert (WCharCP labelP, RscType *iconTypeP, RscId *iconIdP, int *commandSourceP, UInt32 *valueP, UInt32 *maskP, bool *enabledP, void *userDataP, DItem_PulldownMenu *menuP, DItem_PulldownMenuItem *menuItemP)
 Inserts an Option Pull-Down menu item into an Option Pull-Down menu. More...
 
DialogItemmdlDialog_menuBarFind (MSDialog *db)
 Returns a pointer to the Menu Bar of the specified MSDialog, if any. More...
 
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...
 
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_colorChooserGetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, UInt32 *attributesP, RawItemHdr *cChooserP)
 Gets internal information about a given ColorChooser dialog item. More...
 
StatusInt mdlDialog_colorChooserSetInfo (CommandNumber *commandNumberP, int *commandSourceP, UInt32 *attributesP, RawItemHdr *cChooserP)
 Sets the internal attributes associated with a ColorChooser dialog item. More...
 
StatusInt mdlDialog_colorChooserSetColorTable (RgbColorDef *colorTableP, RawItemHdr *cChooserP)
 Sets the color table in a ColorChooser item. More...
 
StatusInt mdlDialog_toggleButtonGetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, UInt32 *maskP, int *invertP, RawItemHdr *tButP)
 Gets information on Toggle Button items. More...
 
StatusInt mdlDialog_toggleButtonSetInfo (CommandNumber *commandNumberP, UInt32 *commandSourceP, UInt32 *maskP, int *invertP, RawItemHdr *tButP)
 Sets information on Toggle Button items. More...
 
StatusInt mdlDialog_toggleButtonGetIcon (RawItemHdr *tButP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP, IconRsc **iconRscPP)
 Gets the icon that is specified for the given ToggleButton or ToggleIcon item. More...
 
StatusInt mdlDialog_toggleButtonSetIcon (RawItemHdr *tButP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP)
 Sets the icon information for a ToggleButton or ToggleIcon item. More...
 
StatusInt mdlDialog_toggleButtonSetPressedIcon (RawItemHdr *tButP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP)
 Sets the pressed icon id, type and owner for the specified togglebutton dialog item. More...
 
StatusInt mdlDialog_toggleIconSetIconColors (RawItemHdr *tIconP, BSIColorDescr **iconFgColorPP, BSIColorDescr **iconBgColorPP)
 Sets the colors to be used when drawing a mono color icon in the ToggleIcon. More...
 
StatusInt mdlDialog_toggleIconGetAttributes (RawItemHdr *tIconP, UInt32 *attributesP, IconCmdSelectType *selectTypeP)
 Gets attributes and the selection type from the ToggleIcon. More...
 
StatusInt mdlDialog_toggleIconSetAttributes (RawItemHdr *tIconP, UInt32 *attributesP, IconCmdSelectType *selectTypeP, int redraw)
 Sets attributes and the selection type of the ToggleIcon. More...
 
StatusInt mdlDialog_treeGetInfo (UInt32 *attributesP, long *nRowsP, long *nColumnsP, long *detailPanelIdP, RawItemHdr *pTree)
 Retrieves several parameters associated with a Tree item. More...
 
StatusInt mdlDialog_treeGetInfoEx (UInt32 *attributesP, long *nRowsP, long *nColumnsP, long *detailPanelIdP, UInt32 *attributesExP, UInt32 *statusFlagsP, RawItemHdr *pTree)
 An extension of mdlDialog_treeGetInfo that also gets extended attributes and status flags associated with a Tree item. More...
 
StatusInt mdlDialog_treeSetInfo (UInt32 *attributesP, long *nRowsP, long *detailPanelIdP, bool redraw, RawItemHdr *pTree)
 Sets several parameters associated with a Tree item. More...
 
StatusInt mdlDialog_treeSetInfoEx (UInt32 *attributesP, long *nRowsP, long *detailPanelIdP, UInt32 *attributesExP, bool redraw, RawItemHdr *pTree)
 An extension of mdlDialog_treeSetInfo that also can set extended attributes in a Tree item. More...
 
GuiTreeModelP mdlDialog_treeGetTreeModelP (RawItemHdr *pTree)
 Retrieves the GuiTreeModel pointer from the Tree item. More...
 
ErrorCode mdlDialog_treeSetTreeModelP (RawItemHdr *pTree, GuiTreeModelP pTreeModel)
 Sets the GuiTreeModel pointer in the Tree item. More...
 
ErrorCode mdlDialog_treeSetTreeModelPEx (RawItemHdr *pTree, GuiTreeModelP pTreeModel, bool redraw)
 Sets the GuiTreeModel pointer in the Tree item and allows you to control the redrawing of the Tree item after setting the GuiTreeModel. More...
 
ErrorCode mdlDialog_treeModelUpdated (RawItemHdr *pTree, bool redraw)
 Notifies the Tree item that the GuiTreeModel has been updated. More...
 
StatusInt mdlDialog_treeGetHeights (int *rowHeightP, int *headingHeightP, int *labelHeightP, RawItemHdr *pTreeP)
 Retrieves certain internal heights from the Tree item. More...
 
ErrorCode mdlDialog_treeGetDisplayRange (int *topRowIndexP, int *bottomRowIndexP, int *leftColIndexP, int *rightColIndexP, RawItemHdr *pTree)
 Gets the range of the cells that are displayed in the Tree item. More...
 
ErrorCode mdlDialog_treeSetTopRow (RawItemHdr *pTree, int topRowIndex, bool redraw)
 Sets the first displayed row index in a Tree item. More...
 
ErrorCode mdlDialog_treeDrawContents (RawItemHdr *pTree, int relRowIndex, int relColIndex)
 Draws the contents of a Tree item. More...
 
ErrorCode mdlDialog_treeGetSelectRange (int *minRowIndexP, int *maxRowIndexP, int *minColIndexP, int *maxColIndexP, RawItemHdr *pTree)
 Gets the range of the cells that are currently selected in the Tree item. More...
 
ErrorCode mdlDialog_treeGetNextSelection (bool *foundP, int *rowIndexP, int *colIndexP, RawItemHdr *pTree)
 Searches for the next selected cell of a Tree item. More...
 
StatusInt mdlDialog_treeGetSelections (int *nSelectionsP, Point2d **selectionsPP, RawItemHdr *pTree)
 Retrieves a pointer to an array indicating which cells of a Tree item are currently selected. More...
 
StatusInt mdlDialog_treeSetSelections (RawItemHdr *pTree, int nSelections, Point2d *selectionsP, bool deselectAllFirst, bool redraw)
 Sets which cells in a Tree item are selected given a pointer to an array of cell coordinates. More...
 
StatusInt mdlDialog_treeGetLocationCursor (int *locationRowP, int *locationColP, RawItemHdr *pTree)
 Retrieves the location of the selection cursor from a Tree item. More...
 
StatusInt mdlDialog_treeSetLocationCursor (RawItemHdr *pTree, int locationRow, int locationCol)
 Sets the location of the selection cursor in a Tree item. More...
 
StatusInt mdlDialog_treeFindCell (int *iRowP, int *iColP, RawItemHdr *pTree, Point2d *ptP)
 Returns the row and column in the Tree at the current mouse position, ptP. More...
 
bool mdlDialog_treeIsCellSelected (RawItemHdr *pTree, int rowIndex, int colIndex)
 Determines if a cell is selected in a Tree item. More...
 
bool mdlDialog_treeIsCellEnabled (RawItemHdr *pTree, int rowIndex, int colIndex)
 Determines if a cell is enabled in a Tree item. More...
 
ErrorCode mdlDialog_treeLastCellClicked (int *rowIndexP, int *colIndexP, RawItemHdr *pTree)
 Determines the cell in the Tree item in which the data button was last clicked. More...
 
ErrorCode mdlDialog_treeSelectCells (RawItemHdr *pTree, int minRowIndex, int maxRowIndex, int minColIndex, int maxColIndex, bool selectOn, bool redraw)
 Selects/deselects a range of cells in a Tree item. More...
 
ErrorCode mdlDialog_treeEnableCells (RawItemHdr *pTree, int minRowIndex, int maxRowIndex, int minColIndex, int maxColIndex, bool enable, bool redraw)
 Enables/disables a range of cells in a Tree item. More...
 
StatusInt mdlDialog_treeGetColInfo (int *widthP, int *maxSizeP, UInt32 *attributesP, WChar *headingP, int *originXP, RawItemHdr *pTree, int columnIndex)
 Retrieves several parameters associated with individual columns in a Tree item. More...
 
StatusInt mdlDialog_treeSetColInfo (int *widthP, int *maxSizeP, UInt32 *attributesP, WCharCP headingP, RawItemHdr *pTree, int columnIndex, bool redraw)
 Sets several parameters associated with individual columns in a Tree item. More...
 
StatusInt mdlDialog_treeInsertColumn (int *widthP, int *maxSizeP, UInt32 *attributesP, WCharCP headingP, RawItemHdr *pTree, int columnIndex, bool redraw)
 Inserts a new column into a Tree item. More...
 
StatusInt mdlDialog_treeDeleteColumn (RawItemHdr *pTree, int columnIndex, bool redraw)
 Deletes one column from a Tree item. More...
 
StatusInt mdlDialog_treeDeleteAll (RawItemHdr *pTree)
 Deletes all columns from a Tree item. More...
 
StatusInt mdlDialog_treeSetContainer (RawItemHdr *pTree, int containerId, MdlDesc *containerOwnerMD, bool redraw)
 Sets the container and owner in the specified Tree item. More...
 
ErrorCode mdlDialog_treeGetEditCell (int *rowIndexP, int *colIndexP, RawItemHdr *pTree)
 Gets the row and column of the cell being edited in the Tree item. More...
 
ErrorCode mdlDialog_treeEditCell (RawItemHdr *pTree, int rowIndex, int colIndex)
 Starts a cell editing session on the specified row and column in the Tree item. More...
 
ErrorCode mdlDialog_treeExpandRow (RawItemHdr *pTree, int rowIndex, bool bExpandAll)
 Expands a tree row and optionally expands all the row's descendents. More...
 
ErrorCode mdlDialog_treeMakeRowVisible (RawItemHdr *pTree, int rowIndex)
 Makes a row visible by scrolling it into view. More...
 
ErrorCode mdlDialog_treeNodePortionClicked (TreeNodePortion *tnPortionP, RawItemHdr *pTree)
 Gets the portion of the node last clicked. More...
 
ErrorCode mdlDialog_treeGetFullWidth (int *iFullWidthP, bool bSetColumnWidths, RawItemHdr *pTree)
 Gets the width of a Tree with all columns expanded based on the widest column values. More...
 
ErrorCode mdlDialog_treeSetColumnHeading (WCharCP headingP, RawItemHdr *pTree, int columnIndex, bool redraw)
 Updates a column's heading to a Unicode string. More...
 
StatusInt mdlDialog_treeColumnSetIcon (RawItemHdr *pTree, int columnIndex, UInt32 *iconAlignmentP, RscId *iconIdP, RscType *iconTypeP, MdlDesc **iconOwnerMDP, BSIColorDescr **iconFgColorPP, BSIColorDescr **iconBgColorPP)
 Sets the icon information for a Tree column heading. More...
 

Function Documentation

StatusInt mdlDialog_menuBarFindItemByCommandNumber ( DItem_PulldownMenuItem menuItemP,
DItem_PulldownMenu **  menuPP,
RawItemHdr mbarP,
UInt32  menuType,
long  menuId,
CommandNumber  cmdNum 
)

Finds, within a specified Pull-Down menu, the menu item whose CommandNumber is cmdNum.

All of the functions that manipulate menu items use a pointer to DItem_PulldownMenuItem to indicate a particular menu item.

Remarks
When the number of items in a menu is changing dynamically, obtaining a pointer to a menu item by searching for its search ID is more useful than getting the nth menu item. A menu item that is the seventh item could become the fifth item if earlier items are deleted by calling mdlDialog_menuBarDeleteItem.
Parameters
[out]menuItemPIf the menu item is found, the location specified by the menuItemP parameter will be filled with information identifying the menu item. If the menu item is not found, the location will be filled with NULLs. The menuItemP parameter cannot be NULL.
[in,out]menuPPis a pointer to NULL or a NULL pointer, the Menu Bar item will first be searched for a menu whose type is menuType and ID is menuId. If menuPP was not a NULL pointer, the location pointed at by menuPP will be set to be a pointer to the menu that was found, or NULL if the menu was not found. The mbarP parameter must point to a Menu Bar item.
[in]mbarPThe mbarP parameter specifies the Menu Bar item to search.
[in]menuTypemenuPP not NULL : ignored
[in]menuIdmenuPP not NULL:ignored
[in]cmdNumcommandNumber of item to find
Remarks
The menu to search can be indicated in two ways. If a pointer to a menu was obtained through a call to mdlDialog_menuBarFindMenu or a previous call to mdlDialog_menuBarFindItem or mdlDialog_menuBarGetItem, the menuPP parameter can be set so that it points to the pointer. In this case, only the menu specified by menuPP will be searched for searchId. The mbarP parameter is unused and can be NULL.
Required Library: mdlbltin.lib +------------—+------------—+------------—+------------—+------------—+---—
StatusInt mdlDialog_publishBasicArray ( SymbolSet setP,
CType typeP,
char *  variableName,
void *  variableP,
int  nMembers 
)

Publishes a pointer to a basic C array for use in C expression strings.

Parameters
[in]setPspecifies the symbol set to publish the array into.
[in]typePparameter points to a basic C data type specifier. It can be &longType, &shortType, &charType, &ulongType, &ucharType, &doubleType or &voidType.
[in]variableNameparameter is a NULL terminated string that specifies the name by which the variable or pointer will be referenced in C expression strings.
[in]variablePparameter specifies the address of the variable or pointer.
[in]nMembersspecifies the number of members in the array.
Returns
SUCCESS, or non-zero value if an error occurs.
StatusInt mdlDialog_publishBasicPtr ( SymbolSet setP,
CType typeP,
char *  variableName,
void *  variableP 
)

Publishes a pointer to a basic C data type variable for use in C expression strings.

Parameters
[in]setPsymbol set to publish variable in
[in]typePtype of data
[in]variableNamethe name of the variable to publish
[in]variablePthe address of the variable to publish
Returns
SUCCESS, or true is returned if an error occurs.
Remarks
The mdlDialog_publish... functions are usually called near the beginning of an MDL application program. They MUST be called before any DialogBoxes that use C expression strings in their resource definitions are opened. When using with "nativeCode" you must use the mdlCExpression_getType function to set the typeP parameter.
An example of using this function with the expression "*globalLongP" is:
mdlDialog_publishBasicPtr (setP, &amp;longType, "globalLongP", &amp;globalLongP);
mdl_publishComplexPtr mdl_publishStructure
StatusInt mdlDialog_publishBasicVariable ( SymbolSet setP,
CType typeP,
char *  variableName,
void *  variableP 
)

Publishes a basic C data type variable for use in C expression strings.

Parameters
[in]setPsymbol set to publish variable in
[in]typePtype of data
[in]variableNamethe name of the variable to publish, as a NULL terminated string.
[in]variablePthe address of the variable to publish
Returns
SUCCESS, or true is returned if an error occurs.
Remarks
The typeP parameter points to a basic C data type specifier. It can be &longType, &shortType, &charType, &ulongType, &ucharType, &doubleType, or &voidType.
The mdlDialog_publish... functions are usually called near the beginning of an MDL application program. They MUST be called before any DialogBoxes that use C expression strings in their resource definitions are opened.
An example of using this function with the expression "globalLongP" is:
mdlDialog_publishBasicVariable (setP, &amp;longType, "globalLongP", &amp;globalLongP);
mdl_publishComplexPtr mdl_publishStructure
StatusInt mdlDialog_publishComplexPtr ( SymbolSet setP,
char *  structName,
char *  variableName,
void *  variableP 
)

Publishes a pointer to a structure type variable for use in C expression strings.

Parameters
[in]setPsymbol set to publish variable in
[in]structNamea NULL terminated string that contains the "tag" of a structure. Any structures referenced must also have type declaration resources present in an open resource file.
[in]variableNamethe name of the variable to publish, as a NULL terminated string.
[in]variablePthe address of the variable to publish
Returns
true is returned if an error occurs, otherwise false is returned.
Remarks
The mdlDialog_publish... functions are usually called near the beginning of an MDL application program. They MUST be called before any DialogBoxes that use C expression strings in their resource definitions are opened.
See also
mdlDialog_publishBasicVariable mdlDialog_publishComplexVariable mdl_publishBasicPtr mdl_publishStructure
StatusInt mdlDialog_publishComplexVariable ( SymbolSet setP,
char *  structName,
char *  variableName,
void *  variableP 
)

Publishes a structure type variable for use in C expression strings.

Parameters
[in]setPsymbol set to publish variable in
[in]structNamea NULL terminated string that contains the "tag" of a structure. Any structures referenced must also have type declaration resources present in an open resource file.
[in]variableNamethe name of the variable to publish, as a NULL terminated string.
[in]variablePthe address of the variable to publish
Returns
SUCCESS, or true is returned if an error occurs.
See also
mdlDialog_publishBasicVariable mdlDialog_publishBasicPtr mdl_publishComplexPtr mdl_publishStructure
Remarks
The mdlDialog_publish... functions are usually called near the beginning of an MDL application program. They MUST be called before any DialogBoxes that use C expression strings in their resource definitions are opened.
StatusInt mdlDialog_publishStructure ( SymbolSet setP,
char *  structName 
)

Publishes a structure declaration for use in C expression strings.

Parameters
[in]setPsymbol set to publish variable in
[in]structNamea NULL terminated string that contains the "tag" of a structure.
Returns
SUCCESS, or true is returned if an error occurs.
Remarks
The mdlDialog_publish... functions are usually called near the beginning of an MDL application program. They MUST be called before any DialogBoxes that use C expression strings in their resource definitions are opened.
See also
mdlDialog_publishBasicVariable mdlDialog_publishComplexVariable mdl_publishBasicPtr mdl_publishComplexPtr
bool mdlItem_colorChanged ( RawItemHdr riP,
int  itemColorType 
)

Queries whether an item's color has been changed from the default, and if so, gives the color type to which it has been changed.

Parameters
[in]riPpoints to the RawItemHdr of the dialog item in question
[in]itemColorTypeindicates the color of the item.
Returns
false if the item's color is unchanged, or a non-zero value if has been changed.

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.