Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023


Contents

1

Introduction to Cadence User Interface

Bottom-Up Construction
Global Symbols
Destroy the User Interface

Cadence User Interface Callback Routines

Callbacks Supported by HI Forms and Fields

Function Object Callbacks

Function Object Callbacks with Additional Arguments

2

Command Interpreter Window

CIW Input Commands

Mouse and Keyboard Inputs
Input Prompt
Parse Command Line
Command Output Results
Error Recovery
Interrupts
Nesting Commands

General Environmental Functions

dplp
hiAddExtraRepeatCommand
hiAddNonRepeatPrefix
hiBoxCenter
hiDisplaySaveForRestoreDialog
hiEditfile
hiEnqueueCmd
hiFlush
hiFlushCIW
hiFlushInfo
hiFlushLogFile
hiFocusToCIW
hiGetAttention
hiGetDisplayName
hiGetMouseMoveSampleRate
hiGetMouseStopDetectTime
hiGetMultiClickTime
hiGetNonRepeatPrefixes
hiGetScreenSize
hiGetBannerPoint
hiGetBeepVolume
hiGetCommandPoint
hiGetCIWindow
hiGetExtraRepeatCommands
hiGetPoint
hiGetRepeatCommand
hiGraphicMode
hiInsertBlankCIWOutputPage
hiIsExtraRepeatCommand
hiQuit
hiRegTimer
hiRemoveExtraRepeatCommand
hiRemoveNonRepeatPrefix
hiRepeat
hiSaveForRestore
hiScaleBox
hiSetBeepVolume
hiSetMouseMoveSampleRate
hiSetMouseStopDetectTime
hiSetMultiClickTime
hiSetUserPreferences
hiSetWindowDefaultPrompt
hiSetWindowFocus
hiSynchronize
hiSync

Process Control Functions

hiCheckAbort
hiGetUserAbort
hiResetAbort
hiSetAbort

Log File Functions

hiEndLog
hiGetLogFileName
hiIsInReplay
hiLogDragEvents
hiPrintToLogFile
hiReplayFile
hiSetFilter
hiSetFilterOptions
hiStartLog

Resource Management Functions

hiGetBBoxResource
hiGetGeometryResource
hiGetStringResource

Text Attribute Functions

hiGetFont
hiGetFontInfo
hiGetXFontName
hiGetTextWidth
hiQueryFont
hiSetFont
hiTextWidth

Cdsenv Editor Functions

startCdsenvEditor
envCyclicStringToIndex
envCyclicIndexToString
envGetAvailableTools
envGetDefVal
envGetLoadedTools
envGetModifiedTools
envGetVal
envGetVarType
envIsToolModified
envIsVal
envLoadFile
envLoadVals
envRegLoadDumpTrigger
envRegSetTrigger
envSetToolCurrValToDefault
envSetToolDefaultToCurrVal
envSetVal
envSetVarCurrValToDefault
envSetVarDefaultToCurrVal
envStoreEnv
envUnregLoadDumpTrigger
envUnregSetTrigger

3

Menu Functions

hiAddMenuItem
hiCreate2DMenu
hiCreateHorizontalFixedMenu
hiCreateMenu
hiCreateMenuItem
hiCreatePulldownMenu
hiCreateSimpleMenu
hiCreateSeparatorMenuItem
hiCreateSliderMenuItem
hiCreateTypeinMenuItem
hiSetTypeinMenuItemCompleterList
hiCreateVerticalFixedMenu
hiDeleteMenu
hiDeleteMenuItem
hiDisableMenuItem
hiDisplayFixedMenu
hiDisplayMenu
hiDisplayWindowMenu
hiEnableMenuItem
hiFixedMenuDown
hiGetMenuItems
hiGetWindowMenu
hiInsertMenuItem
hiIs2DMenu
hiIsIcon
hiIsMenu
hiIsMenuItemEnabled
hiSetMenuItemCallback
hiSetMenuItemStatusTip
hiSetMenuItemText
hiSetWindowMenu

4

Toolbar Functions

ddHiCreateCellToolbarComboBox
ddHiCreateLibraryToolbarComboBox
ddHiCreateViewToolbarComboBox
hiAddToolbarItem
hiAddToolbarItems
hiCreateAction
hiCreateToolbar
hiCreateToolbarComboBox
hiCreateToolbarTypein
hiCreateToolbarSeparator
hiDeleteToolbar
hiDeleteToolbarBreak
hiDeleteToolbarItem
hiDeleteToolbarItems
hiFocusToToolbarItem
hiGetSharedIcon
hiGetToolbarObjName
hiGetWindowToolbars
hiHasToolbarBreak
hiHideToolbar
hiInsertToolbar
hiInsertToolbarBreak
hiInsertToolbarItem
hiInsertToolbarItems
hiListFocusableToolbarItems
hiPlaceToolbar
hiPlaceToolbarBreak
hiReattachToolbar
hiShowToolbar
hiSetToolbarObjName
hiSetActionChecked

5

Dialog Boxes

Information Dialog Boxes
File Selection Dialog Boxes
Progress Dialog Boxes

General Dialog Box Functions

hiDisplayAppDBox
hiDisplayUserDBox
hiDBoxCancel
hiDBoxOK
hiSetDBoxDefaultLocation
hiGetDBoxDefaultLocation

File Selection Dialog Box Functions

hiDisplayFileDialog
hiFileDialogSelection
hiFileDialogSetSelection
hiFileDialogDone
hiGetExistingFile
hiGetExistingFiles
hiGetAnyFile
hiGetExistingDirectory

Progress Dialog Box Functions

hiAdvanceProgressBarOneStep
hiCancelProgressBox
hiDisplayProgressBox
hiGetProgress
hiGetProgressBarCurrentStep
hiGetProgressBarTotalSteps
hiGetProgressTotalSteps
hiHideProgressBar
hiIsProgressBoxCancelled
hiSetProgress
hiSetProgressText
hiSetProgressTotalSteps
hiSetProgressAndText
hiSetProgressButtonText
hiSetProgressBannerText
hiResetProgressBox
hiShowProgressBar
hiSetProgressBar
hiSetProgressLabel

Color Dialog Function

hiDisplayColorDialog

Old Dialog Box Functions

hiDisplayBlockingDBox
hiDisplayModalDBox
hiDisplayModelessDBox
hiDisplayNonBlockingDBox

6

List Box Functions

hiDisplayListBox
hiGetListBoxFieldFit
hiListBoxCancel
hiListBoxDone
hiShowListBox

7

Icon Functions

colorIndex
hiAddIconOverrides
hiCreateColorArray
hiGetIconOverrides
hiLoadIconFile
hiLoadImageFile
hiLoadIconData
hiMatchColor
hiMatchColorByName
hiRemoveIconOverrides
hiSaveIconData
hiStringToIcon
hiSetDisabledIcon
nameToColor

8

Form Functions

Form Layout

One Dimensional Form Layout
Two Dimensional Form Layout

hiLayout Form Functions

hiAddItemToLayout
hiAddField
hiAddFields
hiCreateFormLayout
hiCreateGridLayout
hiCreateHorizontalBoxLayout
hiCreateStackedLayout
hiCreateVerticalBoxLayout
hiCreateLayoutForm
hiDeleteField
hiDeleteFields
hiDeleteItemFromLayout

Traversing Fields

Creating Context Menus for Fields

Setting the hiContextMenu Property
Setting the hiShowContextMenuCallback Property

Creating Tool Tips for Fields

Form and Field Functions

ddHiCreateCellComboField
ddHiCreateLibraryComboField
ddHiCreateViewComboField
ddoAccepts
ddoPreferred
ddHiLinkFields
hiAddCyclicChoice
hiChangeFormCallback
hiChangeFormTitle
hiCollapseTreeItem
hiCreateAppForm
hiCreateBBoxField
hiCreateBooleanButton
hiCreateButton
hiCreateButtonBoxField
hiCreateComboField
hiCreateCyclicField
hiCreateFileSelectorField
hiCreateDisclosureButton
hiCreateDisclosureTriangle
hiCreateFloatField
hiCreateFrameField
hiCreateScrollRegion
hiIsScrollRegion
hiCreateForm
hiCreateFormButton
hiCreateFormLabel
hiCreateHypertextField
hiCreateIntField
hiCreateLabel
hiCreateLayerCyclicField
hiCreateListField
hiCreateListBoxField
hiCreateMLTextField
hiCreateOptionsForm
hiCreateOutputStringField
hiCreatePointField
hiCreatePointListField
hiCreateRadioField
hiCreateReportField
hiCreateScaleField
hiCreateSeparatorField
hiCreateSimpleHypertextField
hiCreateSpinBox
hiCreateFloatSpinBox
hiCreateStringField
hiCreateTabField
hiCreateTree
hiCreateTreeItem
hiCreateTreeTable
hiCreateToggleField
hiDeleteForm
hiDisplayForm
hiEditPropList
hiEscapeStringChars
hiEscapeHTMLTags
hiExpandTreeItem
hiFormApply
hiFormCancel
hiFormClose
hiFormDefaults
hiFormDone
hiFormFinish
hiFormList
hiFormUnmap
hiGetButtonAreaHeight
hiGetChoiceStrings
hiGetCurrentField
hiGetCurrentForm
hiGetCyclicValueString
hiGetFieldAttachments
hiGetFieldInfo
hiGetFieldMinSize
hiGetRadioValueString
hiLayoutUTp
hiGetFieldOverlaps
hiGetFieldScope
hiGetFormLocation
hiGetFormSize
hiGetInsertionPosition
hiGetItemOfLayout
hiGetLayerCyclicValue
hiGetLayoutChildLayouts
hiGetLayoutFields
hiGetLayoutItems
hiGetListBoxValue
hiGetLayoutFrame
hiGetLayoutItemIndex
hiGetLayoutType
hiGetStackedLayoutCurrentIndex
hiSetFieldMinSize
hiSetKeyboardFocusField
hiSetLayoutFrameTitle
hiSetLayoutMargins
hiGetGridLayoutItemLocation
hiGetKeyboardFocusField
hiGetLayoutMargins
hiGetNumVisibleItems
hiGetScrollBarInfo
hiGetTextFieldFit
hiGetTopListItem
hiGetTree
hiGetTreeItems
hiGetTreeItemDescription
hiGetTreeItemIcons
hiGetTreeItemParent
hiGetTreeParent
hiHighlightField
hiHypertextReadin
hiHypertextReplace
hiHypertextScroll
hiIgnoreProp
hiInFormApply
hiInsertItemToLayout
hiInstantiateForm
hiIsForm
hiIsFormDisplayed
hiIsInstantiated
hiIsInFieldCancel
hiItemInsertTree
hiLayerMatchCyclicStr
hiLaunchBrowser
hiLayerStringToLPP
hiMoveField
hiMoveToFormField
hiMoveInsBarToEnd
hiOffsetField
hiOffsetFields
hiResizeField
hiReattachField
hiReportSelectItem
hiReportSelectItems
hiReportSelectAllItems
hiReportDeselectItem
hiReportDeselectItems
hiReportDeselectAllItems
hiReportGetSelectedItems
hiSetButtonIcon
hiSetButtonLabel
hiSetCallbackStatus
hiSetCurrentField
hiSetCurrentForm
hiSetFieldEditable
hiSetFieldEnabled
hiSetFormButtonEnabled
hiSetFormBlock
hiSetFormHighlights
hiSetFormMinMaxSize
hiSetFormName
hiSetFormPosition
hiSetFormSize
hiSetFormToDefaults
hiSetInsertionPosition
hiSetLayerCyclicValue
hiSetStackedLayoutCurrentIndex
hiSetScrollBarValue
hiSetTopListItem
hiSetTreeItemDescription
hiSetTreeItemIcons
hiSetListItemVisible
hiSetListItemCenter
hiShowFieldBorders
hiStoreFormLocation
hiSwapTreeItemSelectionIcons
hiTreeAppendItem
hiTreeAppendItems
hiTreePrependItem
hiTreePrependItems
hiTreeRemoveItem
hiTreeRemoveItems
hiTreeRemoveAllItems
hiTreeTableDeselectItem
hiTreeTableDeselectAllItems
hiTreeTableDeselectItems
hiTreeTableGetExpandedItems
hiTreeTableGetExpandedItemCount
hiTreeTableGetItems
hiTreeTableGetItemCount
hiTreeTableGetSelectedItems
hiTreeTableGetSelectedItemCount
hiTreeTableSelectItem
hiTreeTableSelectAllItems
hiTreeTableSelectItems
hiItemRemoveTree
hiUpdateFormBlock

9

Window Functions

dwindow
dwindowp
getCurrentWindow
getMaxScreenCoords
hiAddFixedMenu
hiCloseWindow
hiCreateDockWindow
hiCreateWindow
hiDeiconifyWindow
hiDisplayWindow
hiDockWindow
hiFocusToCursor
hiGetAbsWindowScreenBBox
hiGetActiveTabWindow
hiGetAppType
hiGetCurrentEnterFunPoints
hiGetCurrentWindow
hiGetCursor
hiGetCursorByName
hiGetDbuPoint
hiGetDrawThruDelta
hiGetEFDrawThruDelta
hiGetEFunCursor
hiGetHelp
hiGetIconName
hiGetScreenPoint
hiGetSessionWindow
hiGetWindowState
hiGetWindowDisplayState
hiGetWindowIconifyState
hiGetWindowList
hiGetWindowName
hiOpenWindow
hiUndockWindow
hiIsWindowSpecifier
hiSetDrawThruDelta
hiSetSessionFocus
hiSetTabWindowTitle
hiSetTabWindowIcon
hiSetTabWindowTip
hiSetWindowAtts
hiSetWinStyle
hiRegCloseProc
hiUnregCloseProc
hiSwitchWindowType
hiIconifyWindow
hiLowerWindow
hiRaiseWindow
hiRaiseTab
hiLowerTab
hiPickWindow
hiMapWindow
hiUnmapWindow
hiMoveWindow
hiResizeWindow
hiSetWindowName
hiSetIconName
hiSetWindowIcon
hiGetWidgetType
hiIsWidgetType
hiSetCurrentWindow
hiRegCurWindowTrigger
hiUnregCurWindowTrigger
hiGetMaxScreenCoords
hiGetWMOffsets
hiRemoveFixedMenu
hiMoveFixedMenu
hiGetWindowFixedMenu
hiSetCursor
hiGetCursorName
hiSetShadowMode
hiRemovePromptLine
hiSetEFunCursor
hiSetEFDrawThruDelta
setCurrentWindow
window
swindow
swindowp
windowp
wtypep

Viewing Functions

hiZoomIn
hiZoomOut
hiZoomRelativeScale
hiZoomAbsoluteScale
hiZoomWindowAtPoint
hiZoomWindowAtMouse
hiZoomInAtMouse
hiZoomOutAtMouse
hiZoomExpandAtPoint
hiZoomExpandAtMouse
hiGetViewBBox
hiPan
hiVectorPan
hiDeltaPan
hiAbsolutePan
hiDynamicPanAbsolute
hiDynamicPanRelative
hiDynamicPanInteractive
hiDynamicPanGrabbing
hiRedraw
hiRegZoomPanProc
hiUnregZoomPanProc
hiSaveView
hiListView
hiRestoreView
hiPrevWinView
hiNextWinView
hiGetUndoLimit
hiSetUndoLimit
hiUndo
hiRedo
hiEnableBlink
hiIsBlinkEnabled

World View Functions

hiCreateWorldView
hiWorldViewFit
hiWorldViewRedraw
hiWorldViewZoomIn
hiWorldViewZoomOut

Thumbnail View Functions

hiGenerateThumbnails
hiGetDefaultThumbnail
hiGetDefaultThumbnailResolution
hiGetDefaultWidgetSpacing
hiGetThumbnailFilename

Workspace Functions

hiGetWinConfig
hiSaveWinConfig
hiReadWinConfig
hiApplyWinConfig
hiWinConfigModified
hiGetWinConfigInfo
hiSetWinObjName
hiGetWinObjName

Screen Capture Functions

hiWindowSaveImage
hiExportImage
hiExportImageDialog

Splash Screen Functions

hiAbout
hiSetSplashBackground
hiSetSplashDefaultBackground
hiSetSplashIcon
hiSetSplashFamily
hiSetSplashProduct
hiSetSplashLicense

Magnifier Functions

hiGetMagnifierSize
hiIsMagnifierAnchored
hiIsMagnifierOpened
hiResizeMagnifier
hiScaleMagnifier
hiToggleAnchorMagnifier
hiToggleMagnifier
hiToggleMagnifierResolution
hiUpdateMagOptions
hiUseMagnifierResolution
hiUsingMagnifierResolution
hiZoomInMagnifier
hiZoomOutMagnifier

10

Window Banner Functions

hiChangeBannerLabel
hiDeleteBannerLabel
hiDeleteBannerMenu
hiDeleteBannerMenus
hiGetBannerLabels
hiGetBannerMenus
hiGetNumMenus
hiInsertBannerMenu
hiIsMenuSlotFilled
hiReplaceAllBannerMenus

11

Bindkey Functions

hiBindKeyModifiers
hiSetBindKey
hiSetBindKeys
hiRegSetBindKeyProc
hiGetBindKey
hiGetBindKeys
hiShowBindKeys
hiShowBindKeysByAppType
hiShowBindKeysByWindow
hiRegisterBindKeyPrefix
hiInheritBindKey
hiGetBindKeyInheritRoot
hiGetBindKeyInheritAlias
hiGetBindKeyPrefixList
hiConfigureBindKeys
hiEnableAsstBindKeyPrefix
hiDisableAsstBindKeyPrefix
hiGetDisabledAsstBindKeyPrefixes
hiPrintBindKeyUsage

12

User Entry Functions

Enterfunction Prompts

Terminating an Enterfunction

Callback Procedures

Callback Procedure addPointProc
Callback Procedure delPointProc
Callback Procedure formProc
Callback Procedure doneProc

Enterfunction Flags

Enterfunction Flag dontDraw
Enterfunction Flag alwaysMap
Enterfunction Flag acceptString
Enterfunction Flag acceptNumber
Enterfunction Flag noInfix

Nesting Enterfunctions

addPoint
applyEnterFun
cancelEnterFun
changeEnterFun
changeNextEnterFun
clearAllEnterFunctions
deletePoint
drawEnterFun
enterArc
enterBox
enterCircle
enterDonut
enterEllipse
enterFunNestLevel
enterLine
enterNumber
enterPath
enterPoint
enterPoints
enterPolygon
enterScreenBox
enterSegment
enterMultiRep
enterString
finishEnterFun
hiGetCurrentCmd
hiInEnterFun
hiMarkNestable
hiMarkNonNestable
hiToggleEnterForm
hiUpdate
preXY
setEFunFlightLineTarget
undrawEnterFun

13

Encapsulation Window

hiAppendInputCmd
hiEncap
hiFocusToEncap
hiGetEncapSkillCmd
hiSetEncapHistory
hiSetEncapPrompt
hiSetEncapSkillCmd

14

Functions of Viewfile Window

Viewfile Management

HTML Viewfile Window
Text Device Mode
Hypertext Viewfile Window
hiClearClipboard
hiClearCurrentTextSelection
hiDisableTailViewfile
hiEnableTailViewfile
hiGenTextIndex
hiViewfile
hiViewTextFile
hiSetViewfile
hiSaveViewfile
hiSaveAsViewfile
hiStartGenTextIndex
hiGetTextSelection
hiGetTextSelByLoc
hiSetTextSelection
hiSelectTextByLoc
hiGetCurrentTextSelection
hiGetCurrentTextSelectionLoc
hiSetCurrentTextSelectionLoc
hiSetTextSelectAll
hiUnselectText
hiUnselectTextByLoc
hiUnselectTextClass
hiUnselectTextAll
hiGoToLine
hiGoToIndex
hiScrollWindowLeft
hiScrollWindowRight
hiScrollWindowUp
hiScrollWindowDown
hiScrollWindowTop
hiScrollWindowBottom
hiScrollWindowToCurrentIndex
hiScrollWindowToIndex
hiScrollWindowToName
hiGetCurrentIndex
hiSetCurrentIndex
hiGetClipboard
hiSetClipboard
hiGetTextClass
hiSetTextClass
view

Text Customization Functions

hiSetTextHighlightColor
hiTextDisplayString
hiRefreshTextWindow
hiUpdateTextSelectionColors

Word Delimiters

hiGetTextWordDelimiter
hiAddTextWordDelimiter
hiRemoveTextWordDelimiter
hiReplaceTextWordDelimiter

Miscellaneous Viewfile Functions

hiGetTextCharAtLoc
hiGetTextSourceLength
hiGetTextLineColumn
hiGetTextIndexLoc
hiGetTextDispLoc

15

Online Help Mechanism

Form and Dialog Box Help

Window Help
Menu Help

Properties Required for Task Assistant

Specify Your Own Callback for Help

Setting the hiHelpAction Property on a Form or Dialog Box
Writing a Callback Function for a Form or Dialog Box
Specifying Your Own Callback for Windows

Online Help Functions

hiHelp
hiLookupHRFtag
hiModalDBoxHelp
hiModelessDBoxHelp
hiObShowTag

Debugging Help

16

QtReplay Functions

nrDialogAccept
nrGetIndexesFromSelection
nrGetSelectedIndexes
nrListColumnMove
nrListColumnSort
nrListItemAction
nrListItemExpand
nrListItemRename
nrResizeWindow
nrSetCurrentWindow
nrSetFileFilter
nrSetWindowVisibility
nrUpdateMenu

17

Performance Diagnostic Functions

perfDiagInstall
perfRefreshControl
perfStartCallStackProc
perfStopCallStackProc

18

Display Lists

Add Objects to the Display List

dlAddArc
dlAddBox
dlAddCircle
dlAddDonut
dlAddEventObject
dlAddPath
dlAddPoint
dlAddPolygon
dlAddRasterText
dlAddSegment
dlAddSkillObject
dlAddStrokeText
dlMakeDisplayList
dlSetClearOnDraw

Display List Draw Functions

dlDrawArc
dlDrawBox
dlDrawCircle
dlDrawDonut
dlDrawPath
dlDrawPoint
dlDrawPolygon
dlDrawRasterText
dlDrawSegment
dlDrawStrokeText

Display List Pen Functions

dlMakePenTable
dlMakeStipple
dlSetCurrentPen
dlSetPenColor
dlSetPenFillStyle
dlSetPenFilled
dlSetPenStipple
dlSetPenTable

View Display List Functions

dlAttachDlistToWidget
dlAttachDlistToWindow
dlClearDisplayList
dlCloseWidget
dlConfigureButton
dlDetachDlistFromWidget
dlDetachDlistFromWindow
dlDisplay
dlDlistToIcon
dlEnableItem
dlGetRasterTextWidth
dlFitDlistOnDraw
dlMakeDlistButton
dlMakeWidget
dlMapWidget
dlMoveButton
dlQueryRasterFont
dlResizeButton
dlSaveDlist
dlSetDlistPosition
dlSetDlistScale
dlSetWidgetName
dlUnMapWidget

19

Graph Browser

Terms Used in Cadence User Interface

Properties of the dagArc

Properties of the dagClass

Properties of the dagNode

Properties of the dagTool

Actions and Action Lists

dag Functions

dagAddActionToObject
dagCreateClass
dagCreateNode
dagDeleteActionFromObject
dagDestroyNode
dagDisplayTool
dagGetCurrentObject
dagGetCurrentTool
dagLinkParentToChild
dagNumToTool
dagOpenTool
dagPopTool
dagPushTool
dagRefreshObject
dagSetActionStatus
dagSetCurrentTool
dagSetExpandedActionStatus
dagSetFont
dagUnlinkParentFromChild

20

Interprocess Communication

hiSleep

21

Stroke Functions

hiGetStrokeBBox
hiGetStrokeFirstPt
hiGetStrokeLastPt
hiStroke

Return to top
 ⠀
X