Skip to main content

Vis

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Runtime.Vis.50 (5.0.0.0)

Provides Visual Toolchest compatibility functions for arrays, files, strings, lists, menus, and windows.

public class Vis

Many functions use zero for success and negative VTERR_* values for failure. Check the individual return contract; Boolean and item-index functions use different conventions.

Example:

using PPJ.Runtime;
using PPJ.Runtime.Vis;

SalString result = Vis.StrChoose(true, "Enabled", "Disabled");
SalNumber flags = 0;
Vis.NumberBitSet(ref flags, 4);

Fields

NameTypeDescriptionValue
ACTION_AbortInt32abort.2
ACTION_RetryInt32Requests that an operation be retried after error recovery.1
CAL_AlternateButtonsInt32Calendar style flag for alternate navigation-button placement.0x1000
CAL_EnableButtonsInt32Not used.0x0004
CAL_EnableKeyboardInt32Not used.0x0008
CAL_EtchedLookInt32Compatibility style flag that draws the calendar with an etched (sunken) border look.0x0010
CAL_MultiSelectInt32Compatibility style flag that allows multiple dates to be selected on a VisCalendar.0x0020
CAL_SelectExtraInt32Compatibility style flag that allows selecting days from the previous/next month shown at the edges of the grid.0x0040
CAL_SelectSpecialInt32Compatibility style flag that allows selecting days marked as special.0x0080
CAL_ShowExtraInt32Compatibility style flag that shows the leading/trailing days from adjacent months.0x0100
CAL_ShowFocusInt32Compatibility style flag that draws a focus rectangle around the selected day.0x0200
CAL_ShowGridInt32Compatibility style flag that draws grid lines between the days of the calendar.0x0400
CAL_ShowSpecialInt32Compatibility style flag that highlights days marked as special.0x0800
CALN_DateChangedInt32Fired by VisCalendar and VisListViewDropDown as the wParam value with the SAM_CustControlCmd message when the user changes the selected date.1
CALN_DateFinishedInt32Fired by VisCalendarDropDown as the wParam value with the SAM_CustControlCmd message when the user closes the drop down calendar.2
CALN_ErrSpaceInt32Not used.-1
CALN_ScrollInt32Fired by VisCalendar and VisListViewDropDown as the wParam value with the SAM_CustControlCmd message when the user scrolls the calendar to a different month.3
CAPTION_ErrorHandlerStringNot used."PPJ Framework"
COLOR_CAL_BackExtraInt32Identifies the background color role for days outside the displayed month.2
COLOR_CAL_BackLabelInt32Indicates the background color of the month name in the VisCalendar control.3
COLOR_CAL_ForeDaysInt32Indicates the text color of the days in the VisCalendar control.10
COLOR_CAL_ForeExtraInt32Indicates the text color of the days in the adjacent months in the VisCalendar control.11
COLOR_CAL_ForeMonthInt32Indicates the text color of the month name in the VisCalendar control.13
COLOR_PAL_BackColorInt32Identifies the palette background color role.0
COLOR_PAL_BackMenuInt32Color role for the palette's context menu background.2
DAY_FridayInt32Weekday selector for Friday, used by SPECIAL_Weekly and related rule types.6
DAY_MondayInt32Weekday selector for Monday, used by SPECIAL_Weekly and related rule types.2
DAY_SaturdayInt32Weekday selector for Saturday, used by SPECIAL_Weekly and related rule types.7
DAY_SundayInt32Weekday selector for Sunday, used by SPECIAL_Weekly and related rule types.1
DAY_ThursdayInt32Weekday selector for Thursday, used by SPECIAL_Weekly and related rule types.5
DAY_TuesdayInt32Weekday selector for Tuesday, used by SPECIAL_Weekly and related rule types.3
DAY_UnsetInt32Indicates that no weekday selector is set.0
DAY_WednesdayInt32Weekday selector for Wednesday, used by SPECIAL_Weekly and related rule types.4
DBF_IncrementalTimeInt32Requests elapsed-time information in legacy debug output.0x10000
DBF_MessageBoxInt32Debug flag that routes debug output through a message box.0x80000
DBF_RealTimeInt32Debug flag that enables real-time debug output.0x20000
DESKTOP_MyComputerInt32Value associated with the computer node in the VisDesktopListBox control.-2
DESKTOP_NetworkNeighborhoodInt32Value associated with the network neighborhood node in the VisDesktopListBox control.-3
DESKTOP_RootInt32Identifies the desktop root in the legacy desktop list.-1
DOS_BreakFlagInt32DOS flag that controls Ctrl+Break checking.0x0002
DOS_ErrorModeInt32DOS flag that controls the critical-error handling mode.0x0004
DOS_VerifyFlagInt32Identifies the legacy DOS write-verification flag.0x0001
DRIVE_CDROMInt32CD drive.5
DRIVE_FixedInt32fixed drive.3
DRIVE_FloppyInt32Identifies a removable disk drive.2
DRIVE_NetworkInt32network drive.4
DRIVE_RAMInt32RAM drive.6
DROP_ChildInt32Marks a drop target as a child item.0x0001
DROP_SiblingInt32Drop flag indicating the drop target is a sibling of the dragged item rather than a child.0x0002
DT_HandleInt32Identifies a handle value in Visual Toolchest array operations.0x0100
EM_SetReadOnlyInt32Identifies the edit-control message that changes read-only state.0x00cf
FA_VolumeInt32Identifies the legacy volume-label file attribute.0x0008
FILETYPE_DocumentInt32File type flag for a document file.2
FILETYPE_OtherInt32File type flag for a file that does not match another known type.4
FILETYPE_ProgramInt32Identifies a program file.1
FILETYPE_SystemInt32File type flag for a system file.3
FONTTYPE_DeviceInt32Identifies a device font.0x0001
FONTTYPE_RasterInt32Font type flag for a raster (bitmap) font.0x0002
FONTTYPE_TrueTypeInt32Font type flag for a TrueType (scalable) font.0x0004
hPicNullInt32Represents a null Visual Toolchest picture handle.0
ITEM_CanCollapseUInt32List box item flag indicating the item can be collapsed.0x200000
ITEM_CanDemoteUInt32List box item flag indicating the item can be demoted (indented) a level in the hierarchy.0x20000
ITEM_CanExpandUInt32List box item flag indicating the item can be expanded.0x100000
ITEM_CanMoveDownUInt32List box item flag indicating the item can move down among its siblings.0x80000
ITEM_CanMoveUpUInt32List box item flag indicating the item can move up among its siblings.0x40000
ITEM_CanPromoteUInt32List box item flag indicating the item can be promoted (outdented) a level in the hierarchy.0x10000
ITEM_IsDeletedUInt32List box item flag indicating the item has been marked as deleted.0x20000000
ITEM_IsDisabledUInt32Marks a Visual Toolchest list item as disabled.0x1000000
ITEM_IsExpandedUInt32List box item flag indicating the item's children are expanded.0x80000000
ITEM_IsFocusUInt32List box item flag indicating the item has input focus.0x8000000
ITEM_IsFrameUInt32List box item flag indicating the item is drawn with a highlight frame.0x10000000
ITEM_IsHiddenUInt32List box item flag indicating the item is hidden from view.0x2000000
ITEM_IsParentUInt32List box item flag indicating the item has child items.0x40000000
ITEM_IsSelectedUInt32List box item flag indicating the item is selected.0x4000000
KDS_AltInt32Key down state indicating the Alt key was down.4
KDS_AltCtrlInt32Key down state indicating the Alt and Ctrl keys were down.6
KDS_AltShiftInt32Key down state indicating the Alt and Shift keys were down.5
KDS_CtrlInt32Key down state indicating the Ctrl key was down.2
KDS_NoneInt32Indicates that no modifier key is pressed.0
KDS_ShiftInt32Key down state indicating the Shift key was down.1
KDS_ShiftAltCtrlInt32Key down state indicating the Shift, Alt, and Ctrl keys were down.7
KDS_ShiftCtrlInt32Key down state indicating the Shift and Ctrl keys were down.3
KS_DownInt32Marks a key as currently pressed.0x8000
KS_LockOnInt32Key state flag bit indicating the key is toggled on (for example, Caps Lock).0x0001
LBS_DisableNoScrollInt32List box extended style that disables scrolling when the control is disabled.0x2000000
LBS_DragSelectInt32List box extended style that allows selecting a range of items by dragging.0x1000000
LBS_EditableInt32List box extended style that allows item text to be edited in place.0x80000
LBS_ExplorerInt32List box extended style that uses Windows Explorer-style selection visuals.0x20000
LBS_ExtendedComboInt32List box extended style that enables extended combo box behavior.0x8000001
LBS_FmtLowercaseInt32List box extended style that displays item text in lowercase.0x0004
LBS_FmtMixedcaseInt32List box extended style that displays item text using its original mixed case.0x40000
LBS_FmtUppercaseInt32List box extended style that displays item text in uppercase.0x0002
LBS_KillFocusFrameSelectInt32List box extended style that draws the selection as a frame instead of a filled highlight when the control loses focus.0x0400
LBS_KillFocusNoSelectInt32List box extended style that does not keep the selection highlighted when the control loses focus.0x0200
LBS_NoAutoResizeInt32List box extended style that prevents the control from automatically resizing its items.0x4000000
LBS_SetWidthEachInsertInt32List box extended style that recalculates the horizontal extent each time an item is inserted.0x1000
LBS_ShowHorzScrollBarInt32List box extended style that shows a horizontal scroll bar.0x10000
LBS_ShowNoEditSelectInt32List box extended style that does not select the item text when entering edit mode.0x0080
LBS_ShowNoEditTextInt32List box extended style that prevents the item text from being edited.0x0100
LBS_ShowNoSelectInt32List box extended style that disables item selection.0x2000
LBS_ShowNoTreeInt32List box extended style that hides the outline (tree) lines.0x0040
LBS_ShowPicCenterInt32List box extended style that centers the item picture vertically.0x0020
LBS_ShowSelectBkgdInt32List box extended style that shows the selection using the selection background color.0x8000
LBS_ShowSelectColorInt32List box extended style that shows the selection using the selection color.0x0008
LBS_ShowSelectTextInt32List box extended style that shows the selection using the selection text color.0x0010
LBS_ShowSelectTextPictureInt32List box extended style that shows the selection around both the item's text and picture.0x4000
LBS_VisExtensionsInt32Enables Visual Toolchest list-box extensions.0x0001
LVA_AligLeftInt32Arrange code that aligns icons along the left edge of the control.0x0001
LVA_AligTopInt32Arrange code that aligns icons along the top edge of the control.0x0002
LVA_DefaultInt32Selects the default list-view icon arrangement.0x0000
LVA_SnapToGridInt32Arrange code that snaps icons to the nearest grid position.0x0005
LVCF_FmtInt32Selects column-format information in a list-view column mask.0x0001
LVCF_TextInt32Column mask indicating the column's header text is valid.0x0004
LVCF_WidthInt32Column mask indicating the column's width is valid.0x0002
LVCFMT_CenterInt32Column alignment flag that center-aligns the column.0x0002
LVCFMT_JustifyMaskInt32Mask that isolates the column alignment bits.0x0003
LVCFMT_LeftInt32Aligns list-view column text to the left.0x0000
LVCFMT_RightInt32Column alignment flag that right-aligns the column.0x0001
LVFI_NearestXYInt32FindItem flag that searches for the item nearest to a given point.0x0040
LVFI_PartialInt32FindItem flag that matches items whose text begins with the search string.0x0008
LVFI_StringInt32Searches list-view items by text.0x0002
LVFI_WrapInt32FindItem flag that wraps the search to the beginning of the list when the end is reached.0x0020
LVHT_AboveInt32HitTest flag indicating the point is above the client area.0x0008
LVHT_BelowInt32HitTest flag indicating the point is below the client area.0x0010
LVHT_NowhereInt32Indicates that a list-view hit test did not locate an item.0x0001
LVHT_OnItemInt32HitTest flag indicating the point is on the item (icon, label, or state icon).14
LVHT_OnItemIconInt32HitTest flag indicating the point is on the item's icon.0x0002
LVHT_OnItemLabelInt32HitTest flag indicating the point is on the item's label.0x0004
LVHT_OnItemStateIconInt32HitTest flag indicating the point is on the item's state icon.0x0008
LVHT_ToLeftInt32HitTest flag indicating the point is to the left of the client area.0x0040
LVHT_ToRightInt32HitTest flag indicating the point is to the right of the client area.0x0020
LVIF_ImageInt32Item mask indicating the item's image index is valid.0x0002
LVIF_ParamInt32Item mask indicating the item's application-defined value is valid.0x0004
LVIF_StateInt32Item mask indicating the item's state is valid.0x0008
LVIF_TextInt32Selects the item-text field in a list-view item mask.0x0001
LVIR_BoundsInt32Selects the complete list-view item bounds.0
LVIR_IconInt32ItemRect code for the bounding rectangle of the item's icon.1
LVIR_LabelInt32ItemRect code for the bounding rectangle of the item's label text.2
LVIR_SelectBoundsInt32ItemRect code for the bounding rectangle used to hit-test the item's selection.3
LVIS_CutInt32Item state flag indicating the item is marked as cut for a move operation.0x0004
LVIS_DropHilitedInt32Item state flag indicating the item is highlighted as a drop target.0x0008
LVIS_FocusedInt32Marks a list-view item as focused.0x0001
LVIS_SelectedInt32Item state flag indicating the item is selected.0x0002
LVIS_StateImageMaskInt32Mask that isolates the state-image index bits of the item state.0xf000
LVN_BeginDragInt32Notification message sent when a drag operation begins with the left mouse button.-109
LVN_BeginRDragInt32Notification message sent when a drag operation begins with the right mouse button.-111
LVN_ColumnClickInt32Notification message sent when a column header is clicked.-108
LVN_DeleteAllItemsInt32Notification message sent before all items are deleted.-104
LVN_DeleteItemInt32Notification message sent after an item has been deleted.-103
LVN_FirstInt32Defines the base identifier for list-view notifications.-100
LVN_InsertItemInt32Notification message sent after an item has been inserted.-102
LVN_ItemChangedInt32Notification message sent after an item's attributes have changed.-101
LVN_ItemChangingInt32Notification message sent before an item's attributes change.-100
LVNI_AboveInt32NextItem flag that searches for the item above the specified one.0x0100
LVNI_AllInt32Selects all item states when searching for the next list-view item.0x0000
LVNI_BelowInt32NextItem flag that searches for the item below the specified one.0x0200
LVNI_CutInt32NextItem flag that restricts the search to items marked as cut.0x0004
LVNI_DropHilitedInt32NextItem flag that restricts the search to items highlighted as a drop target.0x0008
LVNI_FocusedInt32NextItem flag that restricts the search to the focused item.0x0001
LVNI_SelectedInt32NextItem flag that restricts the search to selected items.0x0002
LVNI_ToLeftInt32NextItem flag that searches for the item to the left of the specified one.0x0400
LVNI_ToRightInt32NextItem flag that searches for the item to the right of the specified one.0x0800
LVS_AlignLeftInt32List view style that aligns icons to the left of the control.0x0800
LVS_AlignMaskInt32Mask that isolates the icon alignment bits of the list view style.0x0c00
LVS_AlignTopInt32List view style that aligns icons to the top of the control.0x0000
LVS_AutoArrangeInt32List view style that automatically arranges icons in icon/small-icon view.0x0100
LVS_EditLabelsInt32List view style that allows item labels to be edited in place.0x0200
LVS_IconInt32Selects the large-icon list-view mode.0x0000
LVS_ListInt32List view style that displays items in a simple list view.0x0003
LVS_NoColumnHeaderInt32List view style that hides the column header in report view.0x4000
LVS_NoLabelWrapInt32List view style that disables wrapping of item labels in icon view.0x0080
LVS_NoScrollInt32List view style that disables scrolling.0x2000
LVS_NoSortHeaderInt32List view style that disables the button behavior of the column header.0x8000
LVS_ReportInt32List view style that displays items in report (details) view.0x0001
LVS_ShowSelAlwaysInt32List view style that keeps the selection visible even when the control does not have focus.0x0008
LVS_SingleSelInt32List view style that allows only a single item to be selected at a time.0x0004
LVS_SmallIconInt32List view style that displays items using small icons.0x0002
LVS_TypeMaskInt32Mask that isolates the view-type bits (Icon/Report/SmallIcon/List) of the list view style.0x0003
LVS_TypeStyleMaskInt32Mask that isolates the type-style bits of the list view style.0xfc00
LVSORT_AscendingInt32Selects ascending list-view sort order.0
LVSORT_DescendingInt32sort descending.1
MBF_IconAsteriskInt32Selects the information icon for a Visual Toolchest message box.0x10000
MBF_IconErrorInt32Message box flag that displays the error icon.0x20000
MBF_IconExclamationInt32Message box flag that displays the exclamation-point icon.0x80000
MBF_IconHandInt32Message box flag that displays the stop-sign (hand) icon.0x20000
MBF_IconInformationInt32Message box flag that displays the information icon.0x10000
MBF_IconQuestionInt32Message box flag that displays the question-mark icon.0x40000
MBF_IconStopInt32Message box flag that displays the stop icon.0x20000
MBF_IconWarningInt32Message box flag that displays the warning icon.0x80000
MF_CheckInt32checked.0x0008
MF_DisableInt32Marks a menu item as disabled.0x0003
MF_SeparatorInt32menu separator.0x0800
NM_ClickInt32Notification code sent when the control is clicked.-2
NM_DoubleClickInt32Notification code sent when the control is double-clicked.-3
NM_FirstInt32Defines the base value for generic control notifications.-1
NM_KillFocusInt32Notification code sent when the control loses input focus.-8
NM_OutOfMemoryInt32Notification code indicating the control ran out of memory while processing a request.-1
NM_ReturnInt32Notification code sent when Enter is pressed while the control has focus.-4
NM_RightClickInt32Notification code sent when the control is right-clicked.-5
NM_RightDoubleClickInt32Notification code sent when the control is right-double-clicked.-6
NM_SetFocusInt32Notification code sent when the control receives input focus.-7
ORIENT_SPLIT_HorizontalInt32Orientation value indicating the splitter is oriented horizontally.0
ORIENT_SPLIT_UnsetInt32Indicates that a splitter orientation is not set.-1
ORIENT_SPLIT_VerticalInt32Orientation value indicating the splitter is oriented vertically.1
PAL_EnableMRUColorsInt32Enables the recent-colors area in a color palette.0x0004
PAL_NoHideSelectsInt32Compatibility style flag that keeps the selection highlighted when the palette loses focus.0x0008
PALETTE_MainInt32Palette code for the main color palette.0
PALETTE_MRUInt32Palette code for the most-recently-used color palette.1
PALN_ChangedInt32Notification message sent when the palette selection has changed.1
PALN_ErrSpaceInt32Identifies an allocation-error notification from a color palette.-1
PALN_FinishedInt32Notification message sent when the user has finished interacting with the palette.2
PALN_MenuInt32Notification message sent when a palette context menu command is selected.3
PIC_LoadFileInt32Picture flag indicating the picture should be loaded from a file.0x0400
PIC_LoadLargeIconInt32Picture flag indicating a large icon should be loaded.0x2000
PIC_LoadResourceInt32Picture flag indicating the picture should be loaded from an embedded module resource.0x0200
PIC_LoadSmallIconInt32Picture flag indicating a small icon should be loaded.0x1000
PIC_LoadSWinResInt32Picture flag indicating the picture should be loaded from a SQLWindows resource.0x0800
PIC_LoadSWinStrInt32Loads picture data from a SAL string blob.0x0100
PicDesktopSalNumberStores the cached picture handle for the desktop image.
PicDriveCDSalNumberStores the cached picture handle for the CD-ROM drive image.
PicDriveFixedSalNumberStores the cached picture handle for the fixed drive image.
PicDriveFloppySalNumberStores the cached picture handle for the floppy drive image.
PicDriveNetworkSalNumberStores the cached picture handle for the network drive image.
PicDriveRemovableSalNumberStores the cached picture handle for the removable drive image.
PicFolderClosedSalNumberStores the cached picture handle for the closed folder image.
PicFolderOpenSalNumberStores the cached picture handle for the open folder image.
PicMyComputerSalNumberStores the cached picture handle for the My Computer image.
PicNetworkNeighborhoodSalNumberStores the cached picture handle for the Network Neighborhood image.
PicTTFontSalNumberStores the cached picture handle for the TrueType font image.
REF_AutoHScrollInt32Compatibility option that enables automatic horizontal scrolling.0x0080
REF_AutoVScrollInt32Compatibility option that enables automatic vertical scrolling.0x0040
REF_AutoWordSelectionInt32Option Flags (duplicates of ECO_ constants from Microsoft's RICHEDIT.H).0x0001
REF_CFE_AutoColorInt32Character Format Flags (duplicates of CFE_ constants from Microsoft's RICHEDIT.H).0x40000000
REF_CFE_BoldInt32Character format flag for bold text.0x0001
REF_CFE_ItalicInt32Character format flag for italic text.0x0002
REF_CFE_ProtectedInt32Character format flag that marks the text as protected from editing.0x0010
REF_CFE_StrikeoutInt32Character format flag for strikeout text.0x0008
REF_CFE_UnderlineInt32Character format flag for underlined text.0x0004
REF_FT_MatchCaseInt32Makes a rich-edit text search case-sensitive.0x0004
REF_FT_WholeWordInt32matches whole word.0x0002
REF_NoHideSelInt32Compatibility option that keeps the selection highlighted when the control loses focus.0x0100
REF_PFA_CenterInt32Paragraph format flag that center-aligns the paragraph.0x0003
REF_PFA_LeftInt32Paragraph Format Alignment Flags (duplicates of PFA_ constants from Microsoft's RICHEDIT.H).0x0001
REF_PFA_RightInt32Paragraph format flag that right-aligns the paragraph.0x0002
REF_PFN_BulletInt32Paragraph Format Numbering Flags (duplicates of PFN_ constants from Microsoft's RICHEDIT.H).0x0001
REF_ReadOnlyInt32Compatibility option that makes the control read-only.0x0800
REF_SaveSelectionInt32Compatibility option that preserves the selection when the control loses focus.0x8000
REF_SEL_EmptyInt32Selection Flags (duplicates of SEL_ constants from Microsoft's RICHEDIT.H).0x0000
REF_SEL_MultiCharInt32Selection flag indicating the selection spans more than one character.0x0004
REF_SEL_MultiObjectInt32Selection flag indicating the selection spans more than one object.0x0008
REF_SEL_ObjectInt32Selection flag indicating the selection contains an OLE object.0x0002
REF_SEL_TextInt32Selection flag indicating the selection contains text.0x0001
REF_VerticalInt32Compatibility option that displays text vertically.0x400000
REGION_MainInt32Identifies the main palette region.0
REGION_MenuInt32Region code for the palette's context-menu region.1
REGION_MRUInt32Region code for the palette's most-recently-used color region.2
REN_ChangeInt32Message type sent when the contents change.4
REN_ErrSpaceInt32Identifies a rich-edit allocation-error notification.0
REN_HScrollInt32Message type sent when the control is scrolled horizontally.5
REN_MaxTextInt32Message type sent when the text has reached its maximum length.8
REN_ProtectedInt32Message type sent when the user attempts to modify protected text.1
REN_RequestResizeInt32Message type sent when the control requests to be resized.2
REN_SelChangeInt32Message type sent when the selection changes.3
REN_UpdateInt32Message type sent when the control's display needs to be updated.7
REN_VScrollInt32Message type sent when the control is scrolled vertically.6
ROW_UserFlag1Int32Reserves the first application-defined table-row flag.0x0080
ROW_UserFlag2Int32Application-defined (user) flag bit 2 for a row.0x0100
ROW_UserFlag3Int32Application-defined (user) flag bit 3 for a row.0x0200
ROW_UserFlag4Int32Application-defined (user) flag bit 4 for a row.0x0400
ROW_UserFlag5Int32Application-defined (user) flag bit 5 for a row.0x0800
SEEK_BeginInt32Measures a seek offset from the beginning of a file.0
SEEK_CurrentInt32Seek origin indicating a position relative to the current file position.1
SEEK_EndInt32Seek origin indicating a position relative to the end of the file.2
SEQ_FirstInt32Sequence selector for the first occurrence of a weekday within a month.1
SEQ_FourthInt32Sequence selector for the fourth occurrence of a weekday within a month.4
SEQ_LastInt32Sequence selector for the last occurrence of a weekday within a month.5
SEQ_SecondInt32Sequence selector for the second occurrence of a weekday within a month.2
SEQ_ThirdInt32Sequence selector for the third occurrence of a weekday within a month.3
SEQ_UnsetInt32Indicates that no weekday sequence is selected.0
SHOW_AllLevelsInt32Show All Levels.32767
SHOW_HiddenInt32Requests that a window remain hidden.0
SHOW_MaximizedInt32Show window flag that shows the window maximized.3
SHOW_MinimizedInt32Show window flag that shows the window minimized.2
SHOW_NormalInt32Show window flag that shows the window in its normal state.1
SM_DBCSEnabledInt32System metrics index that is non-zero if the double-byte character set version of Windows is installed.42
SM_DebugInt32System metrics index that is non-zero if the debug version of Windows is installed.22
SM_MenuDropAlignmentInt32System metrics index that is non-zero if popup menus are right-aligned relative to their owner.40
SM_MousePresentInt32System metrics index that is non-zero if a mouse is installed.19
SM_PenWindowsInt32System metrics index that is non-zero if Windows for Pen Computing is installed.41
SM_SwapButtonInt32System metrics index that is non-zero if the mouse buttons are swapped.23
SM_XBorderInt32System metrics index for the width of a window border.5
SM_XCursorInt32System metrics index for the width of a cursor.13
SM_XDlgFrameInt32System metrics index for the width of a dialog frame.7
SM_XDoubleClickInt32System metrics index for the width of the rectangle used to detect a double-click.36
SM_XFrameInt32System metrics index for the width of a resizable window frame.32
SM_XFullScreenInt32System metrics index for the width of the client area of a full-screen window.16
SM_XHScrollInt32System metrics index for the width of the arrow bitmap on a horizontal scroll bar.21
SM_XHThumbInt32System metrics index for the width of the thumb box on a horizontal scroll bar.10
SM_XIconInt32System metrics index for the width of a default icon.11
SM_XIconSpacingInt32System metrics index for the horizontal spacing between icons in large icon view.38
SM_XMinInt32System metrics index for the minimum width of a window.28
SM_XMinTrackInt32System metrics index for the minimum tracking width of a window.34
SM_XScreenInt32Identifies the screen-width system metric.0
SM_XSizeInt32System metrics index for the width of a caption button bitmap.30
SM_XVScrollInt32System metrics index for the width of the arrow bitmap on a vertical scroll bar.2
SM_YBorderInt32System metrics index for the height of a window border.6
SM_YCaptionInt32System metrics index for the height of a window caption.4
SM_YCursorInt32System metrics index for the height of a cursor.14
SM_YDlgFrameInt32System metrics index for the height of a dialog frame.8
SM_YDoubleClickInt32System metrics index for the height of the rectangle used to detect a double-click.37
SM_YFrameInt32System metrics index for the height of a resizable window frame.33
SM_YFullScreenInt32System metrics index for the height of the client area of a full-screen window.17
SM_YHScrollInt32System metrics index for the height of the arrow bitmap on a horizontal scroll bar.3
SM_YIconInt32System metrics index for the height of a default icon.12
SM_YIconSpacingInt32System metrics index for the vertical spacing between icons in large icon view.39
SM_YKanjiWindowInt32System metrics index for the height of the Kanji input window.18
SM_YMenuInt32System metrics index for the height of a single-line menu bar.15
SM_YMinInt32System metrics index for the minimum height of a window.29
SM_YMinTrackInt32System metrics index for the minimum tracking height of a window.35
SM_YScreenInt32System metrics index for the height of the screen.1
SM_YSizeInt32System metrics index for the height of a caption button bitmap.31
SM_YVScrollInt32System metrics index for the height of the arrow bitmap on a vertical scroll bar.20
SM_YVThumbInt32System metrics index for the height of the thumb box on a vertical scroll bar.9
SORT_AscendingInt32Sort ascending flag for ArraySort.0
SORT_DescendingInt32Sort descending flag for ArraySort.1
SPECIAL_MonthlyDOMInt32Special rule type indicating a date that recurs monthly on a fixed day of the month.3
SPECIAL_MonthlyDOWInt32Special rule type indicating a date that recurs monthly on a specific day-of-week sequence.4
SPECIAL_OneTimeInt32Special rule type indicating a date that occurs only once.1
SPECIAL_UnsetInt32Indicates that no special-date recurrence rule is selected.0
SPECIAL_WeeklyInt32Special rule type indicating a date that recurs every week on a given day.2
SPECIAL_YearlyInt32Special rule type indicating a date that recurs yearly on a fixed date.5
SPECIAL_YearlyDOWInt32Special rule type indicating a date that recurs yearly on a specific day-of-week sequence.6
VK_0Int32Identifies the 0 virtual key.0x0030
VK_1Int32Identifies the 1 virtual key.0x0031
VK_2Int32Identifies the 2 virtual key.0x0032
VK_3Int32Identifies the 3 virtual key.0x0033
VK_4Int32Identifies the 4 virtual key.0x0034
VK_5Int32Identifies the 5 virtual key.0x0035
VK_6Int32Identifies the 6 virtual key.0x0036
VK_7Int32Identifies the 7 virtual key.0x0037
VK_8Int32Identifies the 8 virtual key.0x0038
VK_9Int32Identifies the 9 virtual key.0x0039
VK_AInt32Identifies the A virtual key.0x0041
VK_AddInt32Identifies the Add virtual key.0x006b
VK_AltInt32Identifies the Alt virtual key.0x0012
VK_BInt32Identifies the B virtual key.0x0042
VK_BackspaceInt32Identifies the Backspace virtual key.0x0008
VK_CInt32Identifies the C virtual key.0x0043
VK_CancelInt32Identifies the Cancel virtual key.0x0003
VK_CapsLockInt32Identifies the Caps Lock virtual key.0x0014
VK_ClearInt32Identifies the Clear virtual key.0x000c
VK_ControlInt32Identifies the Control virtual key.0x0011
VK_DInt32Identifies the D virtual key.0x0044
VK_DecimalInt32Identifies the Decimal virtual key.0x006e
VK_DeleteInt32Identifies the Delete virtual key.0x002e
VK_DivideInt32Identifies the Divide virtual key.0x006f
VK_DownInt32Identifies the Down virtual key.0x0028
VK_EInt32Identifies the E virtual key.0x0045
VK_EndInt32Identifies the End virtual key.0x0023
VK_EnterInt32Identifies the Enter virtual key.0x000d
VK_EscapeInt32Identifies the Escape virtual key.0x001b
VK_ExecuteInt32Identifies the Execute virtual key.0x002b
VK_FInt32Identifies the F virtual key.0x0046
VK_F1Int32Identifies the F1 virtual key.0x0070
VK_F10Int32Identifies the F10 virtual key.0x0079
VK_F11Int32Identifies the F11 virtual key.0x007a
VK_F12Int32Identifies the F12 virtual key.0x007b
VK_F2Int32Identifies the F2 virtual key.0x0071
VK_F3Int32Identifies the F3 virtual key.0x0072
VK_F4Int32Identifies the F4 virtual key.0x0073
VK_F5Int32Identifies the F5 virtual key.0x0074
VK_F6Int32Identifies the F6 virtual key.0x0075
VK_F7Int32Identifies the F7 virtual key.0x0076
VK_F8Int32Identifies the F8 virtual key.0x0077
VK_F9Int32Identifies the F9 virtual key.0x0078
VK_GInt32Identifies the G virtual key.0x0047
VK_HInt32Identifies the H virtual key.0x0048
VK_HelpInt32Identifies the Help virtual key.0x002f
VK_HomeInt32Identifies the Home virtual key.0x0024
VK_IInt32Identifies the I virtual key.0x0049
VK_InsertInt32Identifies the Insert virtual key.0x002d
VK_JInt32Identifies the J virtual key.0x004a
VK_KInt32Identifies the K virtual key.0x004b
VK_LInt32Identifies the L virtual key.0x004c
VK_LeftInt32Identifies the Left virtual key.0x0025
VK_LeftButtonInt32Identifies the Left Button virtual key.0x0001
VK_MInt32Identifies the M virtual key.0x004d
VK_MiddleButtonInt32Identifies the Middle Button virtual key.0x0004
VK_MultiplyInt32Identifies the Multiply virtual key.0x006a
VK_NInt32Identifies the N virtual key.0x004e
VK_NumLockInt32Identifies the Num Lock virtual key.0x0090
VK_OInt32Identifies the O virtual key.0x004f
VK_PInt32Identifies the P virtual key.0x0050
VK_PageDownInt32Identifies the Page Down virtual key.0x0022
VK_PageUpInt32Identifies the Page Up virtual key.0x0021
VK_PauseInt32Identifies the Pause virtual key.0x0013
VK_PrintScreenInt32Identifies the Print Screen virtual key.0x002c
VK_QInt32Identifies the Q virtual key.0x0051
VK_RInt32Identifies the R virtual key.0x0052
VK_RightInt32Identifies the Right virtual key.0x0027
VK_RightButtonInt32Identifies the Right Button virtual key.0x0002
VK_SInt32Identifies the S virtual key.0x0053
VK_ScrollLockInt32Identifies the Scroll Lock virtual key.0x0091
VK_SelectInt32Identifies the Select virtual key.0x0029
VK_SeparatorInt32Identifies the Separator virtual key.0x006c
VK_ShiftInt32Identifies the Shift virtual key.0x0010
VK_SpaceInt32Identifies the Space virtual key.0x0020
VK_SubtractInt32Identifies the Subtract virtual key.0x006d
VK_TInt32Identifies the T virtual key.0x0054
VK_TabInt32Identifies the Tab virtual key.0x0009
VK_UInt32Identifies the U virtual key.0x0055
VK_UpInt32Identifies the Up virtual key.0x0026
VK_VInt32Identifies the V virtual key.0x0056
VK_WInt32Identifies the W virtual key.0x0057
VK_XInt32Identifies the X virtual key.0x0058
VK_YInt32Identifies the Y virtual key.0x0059
VK_ZInt32Identifies the Z virtual key.0x005a
VT_DLLNameStringIdentifies the built-in Visual Toolchest image resource collection."PPJ.Runtime.Vis.res"
VT_SWP_NoZOrderInt32Preserves a window's stacking order when positioning it.0x0004
VTERR_AccessDeniedInt32Error return value that maps to the Windows ERROR_ACCESS_DENIED code.-5
VTERR_BadNetNameInt32Error return value that maps to the Windows ERROR_BAD_NET_NAME code.-67
VTERR_BadNetPathInt32Error return value that maps to the Windows ERROR_BAD_NETPATH code.-53
VTERR_DiskFullInt32Error return value that maps to the Windows ERROR_HANDLE_DISK_FULL code.-39
VTERR_DriveNotReadyInt32Error return value that maps to the Windows ERROR_NOT_READY code.-21
VTERR_EndOfFileInt32Error return value indicating the end of the file has been reached.-18
VTERR_FileNotFoundInt32Error return value that maps to the Windows ERROR_FILE_NOT_FOUND code.-2
VTERR_InvalidDataInt32Error return value that maps to the Windows ERROR_INVALID_DATA code.-13
VTERR_InvalidDriveInt32Error return value that maps to the Windows ERROR_INVALID_DRIVE code.-15
VTERR_InvalidHandleInt32Error return value that maps to the Windows ERROR_INVALID_HANDLE code.-6
VTERR_InvalidParameterInt32Error return value that maps to the Windows ERROR_INVALID_PARAMETER code.-87
VTERR_LockViolationInt32Error return value that maps to the Windows ERROR_LOCK_VIOLATION code.-33
VTERR_NetNameDeletedInt32Error return value that maps to the Windows ERROR_NETNAME_DELETED code.-64
VTERR_NetworkAccessDeniedInt32Error return value that maps to the Windows ERROR_NETWORK_ACCESS_DENIED code.-65
VTERR_NetworkBusyInt32Error return value that maps to the Windows ERROR_NETWORK_BUSY code.-54
VTERR_NetworkUnreachableInt32Error return value that maps to the Windows ERROR_NETWORK_UNREACHABLE code.-1231
VTERR_NetWriteFaultInt32Error return value that maps to the Windows ERROR_NET_WRITE_FAULT code.-88
VTERR_NoMemoryInt32Error return value that maps to the Windows ERROR_NOT_ENOUGH_MEMORY code.-8
VTERR_NoMoreFilesInt32Error return value that maps to the Windows ERROR_NO_MORE_FILES code.-18
VTERR_OkInt32Error return values - these are remaps of values found in SDK's WINERROR.H.0
VTERR_PathNotFoundInt32Error return value that maps to the Windows ERROR_PATH_NOT_FOUND code.-3
VTERR_ReadFaultInt32Error return value that maps to the Windows ERROR_READ_FAULT code.-30
VTERR_SharingViolationInt32Error return value that maps to the Windows ERROR_SHARING_VIOLATION code.-32
VTERR_TooManyFilesInt32Error return value that maps to the Windows ERROR_TOO_MANY_OPEN_FILES code.-4
VTERR_WriteFaultInt32Error return value that maps to the Windows ERROR_WRITE_FAULT code.-29
VTERR_WriteProtectedInt32Error return value that maps to the Windows ERROR_WRITE_PROTECT code.-19
VTM_AcceleratorInt32Notification identifier sent when an accelerator key associated with the control is processed.24582
VTM_BaseInt32Defines the base identifier for Visual Toolchest messages.0x6000
VTM_CharInt32Identifies the native window message WM_CHAR.0x0102
VTM_ClickInt32Notification identifier sent when the control is clicked.24579
VTM_ControlCreateInt32Notification identifier sent when a control is created.24584
VTM_CreateInt32Identifies the native nonclient-create message used by Visual Toolchest controls.0x0081
VTM_CreateCompleteInt32Notification identifier sent when creation of the control hierarchy has completed.24586
VTM_DestroyInt32Notification identifier sent when the control is being destroyed.24580
VTM_EnableInt32Identifies the native window message WM_ENABLE.0x000a
VTM_EraseBkgndInt32Identifies the native window message WM_ERASEBKGND.0x0014
VTM_KeyDownInt32Identifies the native window message WM_KEYDOWN.0x0100
VTM_KeyUpInt32Identifies the native window message WM_KEYUP.0x0101
VTM_LeftClickInt32Identifies the native window message WM_LBUTTONUP.0x0202
VTM_LeftDoubleClickInt32Identifies the native window message WM_LBUTTONDBLCLK.0x0203
VTM_LVColumnClickInt32Identifies a list-view column-header click notification.24590
VTM_MenuSelectInt32Notification identifier sent when a menu item created using Vis functions is selected.24583
VTM_MiddleClickInt32Identifies the native window message WM_MBUTTONUP.0x0208
VTM_MiddleDoubleClickInt32Identifies the native window message WM_MBUTTONDBLCLK.0x0209
VTM_OutlineCornerClickInt32Notification identifier sent when the expand/collapse glyph of an outline item is clicked.24585
VTM_PopulateInt32Notification identifier sent when the control's contents need to be populated.24581
VTM_RightClickInt32Identifies the native window message WM_RBUTTONUP.0x0205
VTM_RightDoubleClickInt32Identifies the native window message WM_RBUTTONDBLCLK.0x0206
VTM_SizeInt32Identifies the native window message WM_SIZE.0x0005
VTM_SpinGetValueInt32Notification identifier that retrieves the spin control's current value.1031
VTM_SpinScrollDownInt32Notification identifier sent when the spin control is scrolled down (decremented).1030
VTM_SpinScrollUpInt32Notification identifier sent when the spin control is scrolled up (incremented).1029
VTM_SpinSetIncrementInt32Notification identifier that sets the spin control's increment amount.1027
VTM_SpinSetMaxInt32Notification identifier that sets the spin control's maximum value.1026
VTM_SpinSetMinInt32Identifies the spin-field message that sets the minimum value.1025
VTM_SpinSetValueInt32Notification identifier that sets the spin control's current value.1028
VTPIC_BookClosedStringNames the built-in book closed picture resource."bkclosed"
VTPIC_BookOpenStringNames the built-in book open picture resource."bkopen"
VTPIC_BookShelf2StringNames the built-in book shelf2 picture resource."bkshelf2"
VTPIC_BookShelf3StringNames the built-in book shelf3 picture resource."bkshelf3"
VTPIC_CheckBlackStringNames the built-in check black picture resource."chkblk"
VTPIC_CheckBoxOffStringNames the built-in check box off picture resource."ckbxoff2"
VTPIC_CheckBoxOnStringNames the built-in check box on picture resource."ckbxon2"
VTPIC_CheckWhiteStringNames the built-in check white picture resource."chkwht"
VTPIC_DesktopStringNames the built-in desktop picture resource."desktop"
VTPIC_DiamondBlackClosedStringNames the built-in diamond black closed picture resource."diablkc"
VTPIC_DiamondBlackOpenStringNames the built-in diamond black open picture resource."diablko"
VTPIC_DiamondWhiteClosedStringNames the built-in diamond white closed picture resource."diawhtc"
VTPIC_DiamondWhiteOpenStringNames the built-in diamond white open picture resource."diawhto"
VTPIC_DriveCDROMStringNames the built-in drive cdrom picture resource."drvcd2"
VTPIC_DriveCDROM2StringNames the built-in drive cdrom2 picture resource."drvcd3"
VTPIC_DriveFixedStringNames the built-in drive fixed picture resource."drvhard2"
VTPIC_DriveFloppyStringNames the built-in drive floppy picture resource."drvflop2"
VTPIC_DriveNetworkStringNames the built-in drive network picture resource."drvnet2"
VTPIC_DriveNetworkXStringNames the built-in drive network x picture resource."drvnetx"
VTPIC_DriveRAMStringNames the built-in drive ram picture resource."drvram2"
VTPIC_EmptyStringNames the built-in empty picture resource."empty"
VTPIC_FileAllOtherStringNames the built-in file all other picture resource."fileall"
VTPIC_FileDocumentsStringNames the built-in file documents picture resource."filedoc"
VTPIC_FileProgramsStringNames the built-in file programs picture resource."fileprog"
VTPIC_FileSystemStringNames the built-in file system picture resource."filesys"
VTPIC_FolderStringNames the built-in folder picture resource."fdr"
VTPIC_Folder2StringNames the built-in folder2 picture resource."fdr"
VTPIC_FolderCurStringNames the built-in folder cur picture resource."fdrcur"
VTPIC_FolderCurMinusStringNames the built-in folder cur minus picture resource."fdrcurm"
VTPIC_FolderCurPlusStringNames the built-in folder cur plus picture resource."fdrcurp"
VTPIC_FolderMinusStringNames the built-in folder minus picture resource."fdrmnus"
VTPIC_FolderOpenStringNames the built-in folder open picture resource."fdropen"
VTPIC_FolderOpen2StringNames the built-in folder open2 picture resource."fdropen"
VTPIC_FolderPlusStringNames the built-in folder plus picture resource."fdrplus"
VTPIC_FontPrinterStringNames the built-in font printer picture resource."fonprtr"
VTPIC_FontTrueTypeStringNames the built-in font true type picture resource."fontrtyp"
VTPIC_MinusDarkStringNames the built-in minus dark picture resource."minusdk"
VTPIC_MinusLightStringNames the built-in minus light picture resource."minuslt"
VTPIC_MinusWhiteStringNames the built-in minus white picture resource."minuswht"
VTPIC_MyComputerStringNames the built-in my computer picture resource."mycomp"
VTPIC_NetworkNeighborhoodStringNames the built-in network neighborhood picture resource."netneigh"
VTPIC_PlusDarkStringNames the built-in plus dark picture resource."plusdk"
VTPIC_PlusLightStringNames the built-in plus light picture resource."pluslt"
VTPIC_PlusWhiteStringNames the built-in plus white picture resource."pluswht"
VTPIC_PrevDirectoryStringNames the built-in prev directory picture resource."prevdir"
VTPIC_RadioOffStringNames the built-in radio off picture resource."radoff2"
VTPIC_RadioOnStringNames the built-in radio on picture resource."radon2"
WAIT_SysModalOffInt32Wait cursor flag that removes a system-modal wait cursor.5
WAIT_SysModalOnInt32Wait cursor flag that displays a system-modal wait cursor.4
WAIT_TempOffInt32Wait cursor flag that restores the previous cursor after a temporary wait cursor.3
WAIT_TempOnInt32Requests a temporary wait cursor.2
WF_80x87Int32Windows flag indicating a math coprocessor is installed.0x0400
WF_CPU286Int32Windows flag indicating the system's processor is an 80286.0x0002
WF_CPU386Int32Windows flag indicating the system's processor is an 80386.0x0004
WF_CPU486Int32Windows flag indicating the system's processor is an 80486 or later.0x0008
WF_DisplayOnlyInt32Window flag that makes the field display-only (not editable).0x0010
WF_EnableWhenNotNullInt32Window flag that enables the field only when its value is not null.0x10000
WF_EnhancedInt32Windows flag indicating Windows is running in 386 enhanced mode.0x0020
WF_FitPathInt32Window flag that fits (truncates) a path to fit the field's width.0x0008
WF_NoClearInt32Window flag that prevents the field's content from being cleared.0x0002
WF_NoClearEditFlagInt32Window flag that prevents the field's edited flag from being cleared.0x0004
WF_PagingInt32Windows flag indicating the system supports paging.0x0800
WF_PModeInt32Identifies the legacy protected-mode Windows flag.0x0001
WF_RequiredInt32Marks a field as requiring a value.0x0001
WF_StandardInt32Windows flag indicating Windows is running in standard mode.0x0010
WF_WLOInt32Windows flag indicating Windows is running in Win32s on Windows 3.1.0x8000

Methods

Static member ArrayAppend(SourceArray, TargetArray, dataType)

Appends the source elements to a compatible dynamic target array.

ParameterTypeDescription
SourceArraySalArrayThe one-dimensional source array.
TargetArraySalArrayThe compatible destination array.
dataTypeSalNumberThe SAL data-type code used for compatibility validation.

Returns: SalNumber. The new target length; zero for an empty source; -1 if the target is not dynamic, the arrays are incompatible, or appending fails.

Static member ArrayCopy(SourceArray, TargetArray, dataType)

Copies a compatible one-dimensional source array into the target using the source bounds.

ParameterTypeDescription
SourceArraySalArrayThe one-dimensional source array.
TargetArraySalArrayThe compatible destination array.
dataTypeSalNumberThe SAL data-type code used for compatibility validation.

Returns: SalNumber. The copied length; zero for an empty source; -1 on incompatibility or failure.

An empty source resets a dynamic target and leaves a fixed target unchanged.

Static member ArrayDeleteItem(array, index, dataType)

Removes the element at an array index and shifts subsequent elements.

ParameterTypeDescription
arraySalArrayThe array to search or modify.
indexSalNumberThe array or list index to operate on.
dataTypeSalNumberReserved for compatibility; this argument is ignored.

Returns: SalNumber. The remaining length; VTERR_InvalidParameter for an invalid index; -1 for an empty or multidimensional array or another failure.

Static member ArrayFillDateTime(array, value, count)

Fills the requested number of array elements with a value.

ParameterTypeDescription
arraySalArray<SalDateTime>The date/time array to fill.
valueSalDateTimeThe date/time value to assign.
countSalNumberThe number of array elements to fill.

Returns: SalBoolean. The result returned by the SAL array Fill operation.

Static member ArrayFillNumber(array, value, count)

Fills the requested number of array elements with a value.

ParameterTypeDescription
arraySalArray<SalNumber>The numeric array to fill.
valueSalNumberThe numeric value to assign or modify.
countSalNumberThe number of array elements to fill.

Returns: SalBoolean. The result returned by the SAL array Fill operation.

Static member ArrayFillString(array, value, count)

Fills the requested number of array elements with a value.

ParameterTypeDescription
arraySalArray<SalString>The string array to fill.
valueSalStringThe string value to assign.
countSalNumberThe number of array elements to fill.

Returns: SalBoolean. The result returned by the SAL array Fill operation.

Static member ArrayFindDateTime(array, searchFor)

Finds the first matching value in a one-dimensional array.

ParameterTypeDescription
arraySalArray<SalDateTime>The array to search or modify.
searchForSalDateTimeThe date/time value to find.

Returns: SalNumber. The matching element index, or -1 for no match or a multidimensional array.

Date/time matching compares tick values.

Static member ArrayFindNumber(array, searchFor)

Finds the first matching value in a one-dimensional array.

ParameterTypeDescription
arraySalArray<SalNumber>The array to search or modify.
searchForSalNumberThe number to find.

Returns: SalNumber. The matching element index, or -1 for no match or a multidimensional array.

Static member ArrayFindNumber(array, searchFor)

Finds the first matching value in a one-dimensional array.

ParameterTypeDescription
arraySalArray<SalBoolean>The array to search or modify.
searchForSalBooleanThe Boolean value to find.

Returns: SalNumber. The matching element index, or -1 for no match or a multidimensional array.

Static member ArrayFindString(array, searchFor)

Finds the first matching value in a one-dimensional array.

ParameterTypeDescription
arraySalArray<SalString>The array to search or modify.
searchForSalStringThe text to find using ordinal comparison that ignores case.

Returns: SalNumber. The matching element index, or -1 for no match or a multidimensional array.

String matching ignores case using ordinal comparison; date matching compares ticks.

Static member ArrayInsertItem(array, index, dataType)

Inserts an element and initializes it according to the SAL data type.

ParameterTypeDescription
arraySalArrayThe array to search or modify.
indexSalNumberThe array or list index to operate on.
dataTypeSalNumberThe SAL data type used to initialize the inserted element.

Returns: SalNumber. The new length; VTERR_InvalidParameter for an invalid index; -1 for another failure.

For compatibility, inserting at index zero into an empty dynamic array creates an additional empty element.

Static member ArraySort(array, sortOrder, dataType)

Sorts array elements using Visual Toolchest comparison rules.

ParameterTypeDescription
arraySalArrayThe array to search or modify.
sortOrderSalNumberSORT_Descending for descending order; any other value selects ascending order.
dataTypeSalNumberReserved for compatibility; this argument is ignored.

Returns: SalNumber. The array length after sorting.

Static member DebugAssert(expression, DebugString)

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete assertion compatibility call.

ParameterTypeDescription
expressionSalBooleanThe assertion condition; ignored.
DebugStringSalStringThe diagnostic text; ignored.

Returns: SalBoolean. False.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugBeginTime()

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete timing-start compatibility call.

Returns: SalBoolean. False.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugEndTime(Context, DebugLevel)

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete timing-end compatibility call.

ParameterTypeDescription
ContextSalStringThe diagnostic context; ignored.
DebugLevelSalNumberThe diagnostic level; ignored.

Returns: SalBoolean. False.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugGetFlags()

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete debug-flag query compatibility call.

Returns: SalNumber. Zero.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugSetFlags(Flags, Mode)

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete debug-flag update compatibility call.

ParameterTypeDescription
FlagsSalNumberThe diagnostic flags; ignored.
ModeSalBooleanThe requested flag state; ignored.

Returns: SalNumber. Zero.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugSetLevel(DebugLevel)

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete debug-level update compatibility call.

ParameterTypeDescription
DebugLevelSalNumberThe diagnostic level; ignored.

Returns: SalBoolean. False.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugSetTime(Context)

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete timing-context compatibility call.

ParameterTypeDescription
ContextSalStringThe diagnostic context; ignored.

Returns: SalBoolean. False.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DebugString(DebugString, DebugLevel)

Deprecated memberDeprecated: Use System.Diagnostics.Debug Accepts the obsolete debug-output compatibility call.

ParameterTypeDescription
DebugStringSalStringThe diagnostic text; ignored.
DebugLevelSalNumberThe diagnostic level; ignored.

Returns: SalBoolean. False.

Logs that the operation is unsupported; no diagnostic state is changed. Use System.Diagnostics.Debug for diagnostic output.

Static member DosBuildFullName(moduleName, fileName)

Combines a loaded module's directory with a file name.

ParameterTypeDescription
moduleNameSalStringThe name of a loaded module.
fileNameSalStringThe file path or pattern, as required by the operation.

Returns: SalString. The combined path, or SalString.Null when the module or its path cannot be resolved.

Static member DosEnumDirInfo(dirSpec, dirs, dateTimes, attributes)

Enumerates matching subdirectory names, creation times, and attributes into parallel arrays.

ParameterTypeDescription
dirSpecSalStringThe directory path and wildcard name pattern.
dirsSalArray<SalString>Receives matching directory names.
dateTimesSalArray<SalDateTime>Receives creation times in the same order as the names.
attributesSalArray<SalNumber>The file attribute mask, or the parallel output attribute array for enumeration.

Returns: SalNumber. The matching directory count; zero when the directory has no subdirectories; a negative error code on failure or a nonempty unmatched directory.

Static member DosEnumDirs(dirSpec, dirs)

Enumerates subdirectory names matching a path pattern.

ParameterTypeDescription
dirSpecSalStringThe directory path and wildcard name pattern.
dirsSalArray<SalString>Receives matching directory names.

Returns: SalNumber. The number of matches, or a negative error code when no match exists or enumeration fails.

Static member DosEnumDrives(drives)

Enumerates logical drive paths into an array.

ParameterTypeDescription
drivesSalArray<SalString>Receives logical drive paths.

Returns: SalNumber. The drive count, or a negative system error code.

Static member DosEnumFileInfo(fileSpec, attribute, files, sizes, dateTimes, attributes)

Enumerates matching file names, byte sizes, creation times, and attributes into parallel arrays.

ParameterTypeDescription
fileSpecSalStringThe file or directory path, optionally containing a wildcard filename.
attributeSalNumberThe attribute filter; FA_Standard accepts all files, otherwise any matching attribute bit qualifies.
filesSalArray<SalString>Receives the matching file names without their parent directory.
sizesSalArray<SalNumber>Receives file sizes in bytes.
dateTimesSalArray<SalDateTime>Receives creation times in the same order as the names.
attributesSalArray<SalNumber>The file attribute mask, or the parallel output attribute array for enumeration.

Returns: SalNumber. The qualifying count; zero for an empty directory; a negative error code when a nonempty directory has no filename match or enumeration fails.

Output arrays remain unchanged when no file qualifies.

Static member DosEnumFiles(fileSpec, attributes, files)

Enumerates file names matching a path pattern and attribute filter.

ParameterTypeDescription
fileSpecSalStringThe file or directory path, optionally containing a wildcard filename.
attributesSalNumberFA_Standard to accept all files; otherwise, an attribute mask requiring any matching bit.
filesSalArray<SalString>Receives the matching file names without their parent directory.

Returns: SalNumber. The qualifying file count, or a negative error code when no filename matches or enumeration fails.

Static member DosEnumNetConnections(devices, netNames)

Enumerates mapped network drives and their remote names.

ParameterTypeDescription
devicesSalArray<SalString>Receives local mapped device names.
netNamesSalArray<SalString>Receives corresponding remote network names.

Returns: SalNumber. The number of network connections, or zero for multidimensional output arrays.

Static member DosEnumPath(directories)

Enumerates existing directories from the PATH environment variable.

ParameterTypeDescription
directoriesSalArray<SalString>Receives qualifying PATH directories with a trailing separator.

Returns: SalNumber. The number of included paths, or a negative system error code.

Entries already ending in the directory separator are skipped. Included entries receive a trailing separator.

Static member DosExist(fileSpec)

Tests whether a path or wildcard pattern matches a file or directory.

ParameterTypeDescription
fileSpecSalStringThe file or directory path, optionally containing a wildcard filename.

Returns: SalBoolean. True when a match exists; false for an empty path, no match, or an error.

Static member DosGetCurDir(drive)

Gets the current process directory.

ParameterTypeDescription
driveSalStringReserved for compatibility; this argument is ignored.

Returns: SalString. The current directory path.

Static member DosGetDriveSize(drive, totalSpace, freeSpace)

Reads the total and free byte counts of a logical drive.

ParameterTypeDescription
driveSalStringThe drive path or drive component.
totalSpace by referenceSalNumberReceives the total drive size in bytes.
freeSpace by referenceSalNumberReceives the total free space in bytes.

Returns: SalNumber. VTERR_Ok on success; VTERR_InvalidDrive when the drive cannot be read.

Static member DosGetDriveType(drive)

Reads the logical drive type.

ParameterTypeDescription
driveSalStringThe drive path or drive component.

Returns: SalNumber. The drive type code, or zero for an empty, invalid, or unreadable drive.

Static member DosGetEnvString(name)

Reads an environment variable by name.

ParameterTypeDescription
nameSalStringThe environment variable name.

Returns: SalString. The variable value, or an empty string if it is not defined.

Static member DosGetFlags()

Deprecated memberDeprecated: Provides the obsolete DOS-flags compatibility entry point.

Returns: SalNumber. Zero.

Logs that the operation is unsupported.

Static member DosGetNetName(device)

Resolves a mapped device to its remote network name.

ParameterTypeDescription
deviceSalStringThe local mapped device name.

Returns: SalString. The network name, or an empty string when resolution fails.

Static member DosGetVersion()

Gets the operating-system major version reported by the runtime.

Returns: SalNumber. The major version number.

Static member DosGetVolumeLabel(drive)

Reads a drive's volume label.

ParameterTypeDescription
driveSalStringThe drive path or drive component.

Returns: SalString. The label, or an empty string if the drive cannot be read.

Static member DosIsParent(dirSpec)

Tests whether a directory contains any immediate subdirectories.

ParameterTypeDescription
dirSpecSalStringThe directory to inspect; an empty value selects the current directory.

Returns: SalBoolean. True if at least one subdirectory exists; otherwise, false, including errors.

Static member DosMakeAllDir(dir)

Creates a directory and any missing parent directories.

ParameterTypeDescription
dirSalStringThe directory path or component.

Returns: SalNumber. VTERR_Ok on success, or a negative system error code.

Static member DosMakePath(drive, dir, baseStr, ext)

Concatenates a drive, directory, base name, and extension.

ParameterTypeDescription
driveSalStringThe drive path or drive component.
dirSalStringThe directory path or component.
baseStrSalStringThe filename without its extension.
extSalStringThe extension including its leading dot.

Returns: SalString. The concatenated path.

The inputs must include any required separators and extension dot.

Static member DosNetConnect(device, netName, password)

Maps a local device to a network resource.

ParameterTypeDescription
deviceSalStringThe local mapped device name.
netNameSalStringThe remote network resource name.
passwordSalStringThe password used to establish the connection.

Returns: SalNumber. Zero on success, or the negated network error code.

Static member DosNetDisconnect(device, force)

Cancels a network device connection.

ParameterTypeDescription
deviceSalStringThe local mapped device name.
forceSalBooleanTrue to request disconnection even when files are open.

Returns: SalNumber. Zero on success, or the negated network error code.

Static member DosSetFlags(Flags, state)

Deprecated memberDeprecated: Provides the obsolete DOS-flags compatibility setter.

ParameterTypeDescription
FlagsSalNumberThe operation flags.
stateSalBooleanTrue to set the selected flags; false to clear them.

Returns: SalNumber. Zero.

Logs that the operation is unsupported and ignores its arguments.

Static member DosSetVolumeLabel(drive, label)

Changes a drive's volume label.

ParameterTypeDescription
driveSalStringThe drive path or drive component.
labelSalStringThe new volume label.

Returns: SalNumber. Zero on success, or the negated Windows error code.

Static member DosSplitPath(fileSpec, drive, dir, baseStr, ext)

Splits a path into drive, directory, base filename, and extension.

ParameterTypeDescription
fileSpecSalStringThe file or directory path, optionally containing a wildcard filename.
drive by referenceSalStringReceives the drive component including its colon.
dir by referenceSalStringReceives the directory component with a trailing separator when nonempty.
baseStr by referenceSalStringReceives the filename without its extension.
ext by referenceSalStringReceives the extension including its leading dot.

Returns: SalNumber. Zero after assigning the output components.

The drive includes its colon, the directory ends with a separator when nonempty, and the extension includes its dot.

Static member ErrorRecovery(Caption)

Displays a recovery dialog offering Retry and Halt Application.

ParameterTypeDescription
CaptionSalStringThe recovery dialog caption.

Returns: SalNumber. The selected button action code.

Static member FileAppend(sourceFile, targetFile)

Appends the bytes of all matching source files to an existing target file.

ParameterTypeDescription
sourceFileSalStringThe source file path, optionally containing filename wildcards.
targetFileSalStringThe target path, with wildcard substitutions when supported.

Returns: SalNumber. The number of appended files, or a negative error code.

Static member FileClose(file)

Closes an open SAL file handle.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.

Returns: SalNumber. VTERR_Ok on success, or a negative error code.

The handle argument is passed by value, so the caller's handle variable is not cleared.

Static member FileCopy(sourceFile, targetFile)

Copies matching source files to the target path or wildcard-derived names.

ParameterTypeDescription
sourceFileSalStringThe source file path, optionally containing filename wildcards.
targetFileSalStringThe target path, with wildcard substitutions when supported.

Returns: SalNumber. The number of files copied, or a negative error code.

Existing target files are overwritten.

Static member FileCreateTemp(prefix)

Creates an empty file with an unused name in the temporary directory.

ParameterTypeDescription
prefixSalStringThe filename prefix; at most three characters are used.

Returns: SalString. The path of the created file.

The name begins with a tilde, up to three prefix characters, and a hexadecimal counter.

Static member FileDelete(fileName)

Deletes files matching the supplied path pattern.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.

Returns: SalNumber. The number of deleted files, or a negative error code.

Static member FileExpand(sourceFile, targetFile)

Deprecated memberDeprecated: Provides the unsupported compressed-file expansion entry point.

ParameterTypeDescription
sourceFileSalStringThe source file path, optionally containing filename wildcards.
targetFileSalStringThe target path, with wildcard substitutions when supported.

Returns: SalNumber. This method does not return.

Always throws NotSupportedException.

Static member FileFind(fileName)

Searches the Windows search path for a file.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.

Returns: SalString. The resolved full path, or SalString.Null when not found.

Static member FileGetAttribute(fileName)

Reads a file's attribute flags.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.

Returns: SalNumber. The FileAttributes flags, or a negative error code.

Static member FileGetSize(fileName)

Reads a file's size in bytes.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.

Returns: SalNumber. The byte count; zero for an empty filename; a negative error code for a null filename or file-system failure.

Static member FileGetType(fileName)

Classifies a file as system, program, associated document, or other.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.

Returns: SalNumber. A FILETYPE_* value, or a negative error code.

Hidden or system attributes take precedence over filename extensions and executable associations.

Static member FileOpen(file, fileName, flags)

Opens a SAL file, searching the Windows search path when creation is not requested.

ParameterTypeDescription
file by referenceSalFileHandleReceives the opened file handle.
fileNameSalStringThe file path or pattern, as required by the operation.
flagsSalNumberThe operation flags.

Returns: SalNumber. VTERR_Ok on success, or a negative error code.

Static member FileRead(file, buffer, size)

Reads data from an open SAL file into a buffer.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.
buffer by referenceSalStringReceives the data read from the file.
sizeSalNumberThe requested transfer size passed to the SAL file operation.

Returns: SalNumber. The amount read, or a negative error code; zero can indicate end of file.

Static member FileReadBinary(file, buffer, numBytes)

Reads bytes from an open file into a binary value.

ParameterTypeDescription
fileSalFileHandleThe open file handle.
buffer by referenceSalBinaryReceives the bytes read from the file.
numBytesSalNumberThe maximum number of bytes to read.

Returns: SalNumber. VTERR_Ok when the file reports no error; VTERR_InvalidParameter for a null handle; otherwise the negated file error.

Static member FileReadString(file, line)

Reads up to 8192 characters, stopping at a CR/LF line ending.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.
line by referenceSalStringReceives the line after a successful read.

Returns: SalNumber. VTERR_Ok on success, VTERR_EndOfFile at end of file, or a negative file error code.

The CR/LF delimiter is omitted. A lone line-feed is retained.

Static member FileRename(sourceFile, targetFile)

Moves or renames files matching the source pattern.

ParameterTypeDescription
sourceFileSalStringThe source file path, optionally containing filename wildcards.
targetFileSalStringThe target path, with wildcard substitutions when supported.

Returns: SalNumber. The number of files moved, or a negative error code.

Target wildcard characters are expanded from the matching source names.

Static member FileSeek(file, offset, origin)

Moves the position of an open SAL file relative to the selected origin.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.
offsetSalNumberThe offset relative to the seek origin.
originSalNumberThe SAL file seek origin code.

Returns: SalNumber. The resulting file position, or a negative error code.

Static member FileSetAttribute(fileName, attributes, state)

Sets or clears attribute bits on all matching files.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.
attributesSalNumberThe file attribute bits to set or clear.
stateSalBooleanTrue to set the selected flags; false to clear them.

Returns: SalNumber. The number of updated files, or a negative error code.

Static member FileSetDateTime(fileName, dateTime)

Sets the last-write time of all matching files.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.
dateTimeSalDateTimeThe new last-write date/time.

Returns: SalNumber. The number of updated files, or a negative error code.

Static member FileTell(file)

Gets the current position of an open SAL file.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.

Returns: SalNumber. The current position, or a negative error code.

Static member FileWrite(file, buffer, size)

Writes a buffer to an open SAL file.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.
bufferSalStringThe buffer to read or write.
sizeSalNumberThe requested transfer size passed to the SAL file operation.

Returns: SalNumber. The amount written, or a negative error code.

Static member FileWriteBinary(file, buffer)

Writes the entire binary value to an open file.

ParameterTypeDescription
fileSalFileHandleThe open file handle.
bufferSalBinaryThe binary content to write.

Returns: SalNumber. VTERR_Ok on success; VTERR_InvalidParameter for a null handle; otherwise the negated file error.

Static member FileWriteString(file, line)

Writes a line to an open SAL file using the SAL file-string operation.

ParameterTypeDescription
fileSalFileHandleThe open SAL file handle.
lineSalStringThe line to read or write.

Returns: SalNumber. VTERR_Ok on success, or a negative error code.

Static member FontEnum(Type, Names, Types)

Enumerates available font family names and reports each as TrueType.

ParameterTypeDescription
TypeSalNumberReserved for compatibility; this argument is ignored.
NamesSalArray<SalString>Receives available font family names.
TypesSalArray<SalNumber>Receives FONTTYPE_TrueType for each font name.

Returns: SalNumber. The font count; the Web implementation returns zero for multidimensional output arrays.

Static member FontFree(fontHandle)

Releases a font handle returned by FontLoad.

ParameterTypeDescription
fontHandleSalNumberThe font handle created by FontLoad.

Returns: SalBoolean. True if the handle is released; otherwise, false.

Static member FontGet(fontHandle, faceName, pointSize, fontFlags)

Reads the family name, point size, and enhancement flags of a font handle.

ParameterTypeDescription
fontHandleSalNumberThe font handle created by FontLoad.
faceName by referenceSalStringReceives the font family name.
pointSize by referenceSalNumberReceives the size in points.
fontFlags by referenceSalNumberReceives the FONT_Enh* style flags.

Returns: SalBoolean. True if the font information is obtained; otherwise, false.

Static member FontLoad(faceName, pointSize, enhFlags)

Creates a font and registers a handle for later use by Visual Toolchest functions.

ParameterTypeDescription
faceNameSalStringThe font family name.
pointSizeSalNumberThe font size in points.
enhFlagsSalNumberThe FONT_Enh* style flags used to create the font.

Returns: SalNumber. The font handle, or SalNumber.Null if font creation yields no font.

Release the returned handle with FontFree.

Static member GetCommonDir(ctrl, index)

Reconstructs the directory path represented by an entry populated by PopulateCommonDir.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalString. The path ending in a separator; an empty string for an unsupported control, or SalString.Null for an invalid item.

Static member GetCopyright()

Reads the executing assembly's copyright attribute.

Returns: SalString. The copyright text.

Throws InvalidOperationException when the attribute is missing.

Static member GetKeyState(VirtKey)

Reads the Windows key state for a virtual key.

ParameterTypeDescription
VirtKeySalNumberThe virtual-key code to inspect.

Returns: SalNumber. The Windows key-state value containing the pressed and toggle-state bits.

Static member GetSystemMetrics(index)

Reads a native Windows system metric.

ParameterTypeDescription
indexSalNumberThe Windows system-metric index.

Returns: SalNumber. The value returned by the Windows GetSystemMetrics function for the selected metric.

Static member GetVersion()

Formats the Visual Toolchest compatibility version from the executing assembly version.

Returns: SalString. The version formatted as 9.major.minor-revision.build.

Static member GetWiFlags()

Deprecated memberDeprecated: This function is not implemented in CTD too, it always returns 0. It can be deleted. Accepts the obsolete WiFlags compatibility query.

Returns: SalNumber. Zero.

Logs that this operation is unsupported.

Static member GetWinVersion()

Gets the operating-system major version reported by the runtime.

Returns: SalNumber. The major version number.

Static member ListAddColor(ctrl, text, color)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
textSalString
colorSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListAddColorValue(ctrl, text, color, value)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
textSalString
colorSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListAddFont(ctrl, text, fontHandle)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
textSalString
fontHandleSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListAddFontValue(ctrl, text, fontHandle, value)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
textSalString
fontHandleSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListAddPicture(ctrl, text, picNormal, picSelected)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
textSalString
picNormalSalNumber
picSelectedSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListAddPictureValue(ctrl, text, picNormal, picSelected, value)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
textSalString
picNormalSalNumber
picSelectedSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListAddValue(ctrl, text, value)

Appends a list item containing text and an associated numeric value.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
textSalStringThe displayed item text.
valueSalNumberThe numeric value to assign or modify.

Returns: SalNumber. The inserted item index, or LB_Err for an unsupported control.

Static member ListArrayPopulate(ctrl, items)

Replaces the items of a list or combo box with the supplied strings.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
itemsSalArray<SalString>The item texts in order.

Returns: SalNumber. The number of supplied strings, or LB_Err for an unsupported control.

Static member ListArrayPopulateValue(ctrl, items, values)

Replaces a SAL list with parallel text and numeric-value arrays.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
itemsSalArray<SalString>The item texts in order.
valuesSalArray<SalNumber>The parallel numeric item values.

Returns: SalNumber. The number of supplied items, or LB_Err for an unsupported control or unequal lengths.

The arrays must have equal lengths and support zero-based indexing.

Static member ListClearSelection(ctrl)

Clears the current selection of a list or combo box.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalBoolean. True for a supported list control; otherwise, false.

Static member ListCollapse(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListDeleteChild(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListDeleteDescendents(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListDeleteSelected(ctrl)

Clears the current selection and removes items identified by the selected-index collection.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalNumber. The remaining item count; zero for an unsupported or empty control; VTERR_InvalidParameter for a null control.

The selected-index collection is captured before clearing SelectedIndex. Controls exposing a live collection can therefore have no indices left to delete.

Static member ListDemote(ctrl, index, picNormal, picSelect)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListDisableItem(ctrl, index, color)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
colorSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListDragDrop(ctrl, sourceIndex, targetCtrl, targetIndex, dropFlags)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
sourceIndexSalNumber
targetCtrlControl
targetIndexSalNumber
dropFlagsSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListEnableItem(ctrl, index, color)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
colorSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListEnumChildren(item, items)

ParameterTypeDescription
itemSalNumber
itemsSalArray<SalNumber>

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListEnumDescendents(item, items)

ParameterTypeDescription
itemSalNumber
itemsSalArray<SalNumber>

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListExpand(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListExpandDescendents(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns (the Boolean conversion of Sys.LB_Err).

Static member ListFindItemValue(item, value)

ParameterTypeDescription
itemSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns false.

Static member ListFindString(ctrl, startIndex, text)

Finds a matching list item after the starting index, wrapping to the beginning when necessary.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
startIndexSalNumberThe index after which to start searching; -1 begins with the first item.
textSalStringThe displayed item text.

Returns: SalNumber. The matching index, or -1 when no item matches; VTERR_InvalidParameter for a null control.

Static member ListFindValue(ctrl, startIndex, value)

Finds an item by its associated numeric value, wrapping to the beginning when necessary.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
startIndexSalNumberThe index after which to start searching; -1 begins with the first item.
valueSalNumberThe numeric value to assign or modify.

Returns: SalNumber. The matching index, or LB_Err when no match or supported list is available.

Static member ListFreeChild(item)

ParameterTypeDescription
itemSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListFreeDescendents(item)

ParameterTypeDescription
itemSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListGetColor(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetDropdownState(ctrl)

Tests whether a combo box dropdown is currently open.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalBoolean. True if the combo dropdown is open; otherwise, false.

Static member ListGetFlags(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetFocusIndex(ctrl)

Gets the caret index of a Windows list box or the current SAL list selection.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalNumber. The index, or VTERR_InvalidParameter for a null control.

Static member ListGetFont(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetIndexFromPoint(ctrl, X, Y)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
XSalNumber
YSalNumber

Returns: SalNumber.

Static member ListGetItemColor(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetItemData(item, text, value, itemFlags)

ParameterTypeDescription
itemSalNumber
text by referenceSalString
value by referenceSalNumber
itemFlags by referenceSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListGetItemFlags(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns false.

Static member ListGetItemFont(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetItemHandle(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetItemIndex(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetItemPicture(item, picNormal, picSelect)

ParameterTypeDescription
itemSalNumber
picNormal by referenceSalNumber
picSelect by referenceSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListGetItemText(item)

ParameterTypeDescription
itemSalNumber

Returns: SalString. If the list extension cannot be resolved, returns SalString.Null.

Static member ListGetItemValue(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns SalNumber.Null.

Static member ListGetLevel(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns SalNumber.Null.

Static member ListGetNextSibling(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns SalNumber.Null.

Static member ListGetParent(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns SalNumber.Null.

Static member ListGetPicture(ctrl, index, picNormal, picSelected)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
picNormal by referenceSalNumber
picSelected by referenceSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListGetPrevSibling(item)

ParameterTypeDescription
itemSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns SalNumber.Null.

Static member ListGetRoot(ctrl)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.

Returns: SalNumber. If the list extension cannot be resolved, returns SalNumber.Null.

Static member ListGetStyle(ctrl)

Reads the supported Visual Toolchest style flags from a list, combo box, or tree.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalNumber. The translated style flags including LBS_VisExtensions; zero for an unsupported or null control.

Static member ListGetText(ctrl, index)

Reads an item's display text from a list or combo box.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalString. The item text, or an empty string when no item is obtained.

Static member ListGetTextRectangle(ctrl, index, top, left, bottom, right)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
top by referenceSalNumber
left by referenceSalNumber
bottom by referenceSalNumber
right by referenceSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns 0.

Static member ListGetValue(ctrl, index)

Reads the numeric value associated with a SAL list item.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalNumber. The value; zero for a non-Visual-Toolchest item or unsupported non-null control; LB_Err for a missing item; VTERR_InvalidParameter for a null control.

Static member ListGetVisibleRange(ctrl, top, bottom)

Gets the first and last displayed indices of a list box or outline.

ParameterTypeDescription
ctrlControlThe list box or Visual Toolchest outline.
top by referenceSalNumberReceives the first visible index, or zero for an empty control.
bottom by referenceSalNumberReceives the last visible index, or the last available item-slot index for an empty control.

Returns: SalNumber. The inclusive visible range length; VTERR_InvalidParameter for a null control; -1 for an unsupported control.

For an empty control, reports the number of item slots that fit in its client area. Output arguments are unchanged for unsupported controls.

Static member ListInsertColor(ctrl, index, text, color)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
textSalString
colorSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListInsertColorValue(ctrl, index, text, color, value)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
textSalString
colorSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListInsertFont(ctrl, index, text, fontHandle)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
textSalString
fontHandleSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListInsertFontValue(ctrl, index, text, fontHandle, value)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
textSalString
fontHandleSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListInsertPicture(ctrl, index, text, picNormal, picSelected)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
textSalString
picNormalSalNumber
picSelectedSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListInsertPictureValue(ctrl, index, text, picNormal, picSelected, value)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
textSalString
picNormalSalNumber
picSelectedSalNumber
valueSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListInsertValue(ctrl, index, text, value)

Inserts a list item with text and an associated numeric value.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.
textSalStringThe displayed item text.
valueSalNumberThe numeric value to assign or modify.

Returns: SalNumber. The inserted index; LB_Err for an unsupported list; VTERR_InvalidParameter for a null control.

Static member ListIsMultiSelect(ctrl)

Tests whether the list permits multiple selections.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalBoolean. True for MultiSimple or MultiExtended selection mode; otherwise, false.

Static member ListLoadChild(ctrl, itemParent, picNormal, picSelect, text, value, itemFlags)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
itemParentSalNumber
picNormalSalNumber
picSelectSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns 0.

Static member ListLoadChildren(ctrl, itemParent, picNormal, picSelect, texts, values, itemFlags)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
itemParentSalNumber
picNormalSalNumber
picSelectSalNumber
textsSalArray<SalString>
valuesSalArray<SalNumber>
itemFlagsSalArray<SalNumber>

Returns: SalNumber. If the list extension cannot be resolved, returns 0.

Static member ListLoadOutline(ctrl, blob)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
blobSalString

Returns: SalNumber. If the list extension cannot be resolved, returns 0.

Static member ListLoadOutlineFile(ctrl, fileName, picParentNormal, picParentSelect, picChildNormal, picChildSelect)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
fileNameSalString
picParentNormalSalNumber
picParentSelectSalNumber
picChildNormalSalNumber
picChildSelectSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns 0.

Static member ListLoadSibling(ctrl, itemBefore, picNormal, picSelect, text, value, itemFlags)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
itemBeforeSalNumber
picNormalSalNumber
picSelectSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns 0.

Static member ListMoveDown(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns 0.

Static member ListMoveUp(ctrl, index)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns 0.

Static member ListPromote(ctrl, index, picNormal, picSelect)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns 0.

Static member ListSaveOutline(ctrl, blob)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
blob by referenceSalString

Returns: SalNumber. If the list extension cannot be resolved, returns 0.

Static member ListScroll(ctrl, index)

Requests scrolling to a list index or ensures an outline node is visible.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalNumber. One if the scroll or ensure-visible operation succeeds; zero if unsupported or unsuccessful; VTERR_InvalidParameter for a null control.

Static member ListSetColor(ctrl, index, color)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
colorSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetDropdownState(ctrl, state)

Opens or closes a combo box dropdown.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
stateSalBooleanTrue to set the selected flags; false to clear them.

Returns: SalBoolean. True if the combo state is assigned; otherwise, false.

Static member ListSetFlags(ctrl, index, itemFlags, state)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
itemFlagsSalNumber
stateSalBoolean

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListSetFocusIndex(ctrl, index)

Moves the list caret or selection to an item.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalNumber. The native caret-operation result for a multiselect list box; otherwise LB_Ok on successful selection or LB_Err.

Static member ListSetFont(ctrl, index, fontHandle)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
fontHandleSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns (the Boolean conversion of Sys.LB_Err).

Static member ListSetIndent(ctrl, indent)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indentSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns 0.

Static member ListSetItemColor(item, color)

ParameterTypeDescription
itemSalNumber
colorSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetItemData(ctrl, item, text, value, itemFlags)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
itemSalNumber
textSalString
valueSalNumber
itemFlagsSalNumber

Returns: SalNumber. If the list extension cannot be resolved, returns Sys.LB_Err.

Static member ListSetItemFlags(item, itemFlags, state)

ParameterTypeDescription
itemSalNumber
itemFlagsSalNumber
stateSalBoolean

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetItemFont(item, fontHandle)

ParameterTypeDescription
itemSalNumber
fontHandleSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetItemPicture(item, picNormal, picSelect)

ParameterTypeDescription
itemSalNumber
picNormalSalNumber
picSelectSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetItemText(item, text)

ParameterTypeDescription
itemSalNumber
textSalString

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetItemValue(item, value)

ParameterTypeDescription
itemSalNumber
valueSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Static member ListSetOutlineRedraw(ctrl, redraw)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
redrawSalBoolean

Returns: SalBoolean. If the list extension cannot be resolved, returns 0.

Static member ListSetPicture(ctrl, index, picNormal, picSelected)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
indexSalNumber
picNormalSalNumber
picSelectedSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns (the Boolean conversion of Sys.LB_Err).

Static member ListSetScrollWidth(ctrl, index)

Sets a list box's horizontal extent to the measured width of an item.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalNumber. Zero on success; LB_Err for an unsupported control or index; VTERR_InvalidParameter for a null control. Invalid item access can throw.

A negative index clears the extent.

Static member ListSetStyle(ctrl, style, lParam)

Applies Visual Toolchest list style flags to a control.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
styleSalNumberThe Visual Toolchest list style flags.
lParamSalNumberReserved for compatibility; this argument is ignored.

Returns: SalBoolean. The result of applying the list style.

Static member ListSetText(ctrl, index, text)

Changes the displayed text of a list or combo item.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.
textSalStringThe displayed item text.

Returns: SalNumber. Zero after assignment or for an unsupported non-null control; LB_Err for a missing SAL item; VTERR_InvalidParameter for a null control.

Static member ListSetValue(ctrl, index, value)

Changes an item's associated numeric value, wrapping a plain item when necessary.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.
valueSalNumberThe numeric value to assign or modify.

Returns: SalNumber. Zero after processing, including unsupported non-null controls; LB_Err for a missing item; VTERR_InvalidParameter for a null control.

Static member ListShowOutline(ctrl, level)

ParameterTypeDescription
ctrlControlThe control containing the Visual Toolchest list or outline.
levelSalNumber

Returns: SalBoolean. If the list extension cannot be resolved, returns false.

Checks a menu item.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item is found and updated; otherwise, false.

Removes an item from its parent menu.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item and its parent are found and the item is removed; otherwise, false.

Disables a menu item.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item is found and updated; otherwise, false.

Enables a menu item.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item is found and updated; otherwise, false.

Counts the immediate items in a menu.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.

Returns: SalNumber. The item count, or -1 if the menu cannot be resolved.

Gets the current main-menu handle of a form.

ParameterTypeDescription
ctrlControlThe form whose current main menu is requested.

Returns: SalNumber. The menu handle, or zero if the control is not a form or has no current menu.

Gets a menu item's handle when it contains a submenu.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalNumber. The popup handle, or zero if the item is absent or has no child items.

Deprecated memberDeprecated: Accepts a system-menu compatibility request.

ParameterTypeDescription
ctrlSalWindowHandleThe target window handle.

Returns: SalNumber. Zero.

This operation is unsupported and logs that limitation.

Reads a menu item's caption and displayed keyboard shortcut.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalString. The item text, or an empty string if the item cannot be found.

A visible shortcut is appended after a tab for a leaf item.

Inserts an item at a menu position or appends it.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based insertion position, including the item count, or -1 to append.
textSalStringThe menu-item caption.
flagsSalNumberThe menu-item creation flags.

Returns: SalNumber. The negative menu identifier, usable as an item selector in other menu functions; SalNumber.Null for an unresolved menu or invalid position.

Inserts a menu item using the font compatibility signature.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based insertion position less than the current item count, or -1 to append.
fontHandleSalNumberThe registered font handle; ignored by the WinForms implementation.
textSalStringThe menu-item caption.

Returns: SalNumber. The negative menu identifier, or SalNumber.Null for an unresolved menu or invalid position.

The font handle is ignored.

Inserts a menu item with a normal picture.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based insertion position less than the current item count, or -1 to append.
picNormalSalNumberThe normal-state picture handle.
picSelectedSalNumberThe selected-state picture handle; ignored by WinForms MenuInsertPicture.
textSalStringThe menu-item caption.

Returns: SalNumber. The negative menu identifier, or SalNumber.Null for an unresolved menu or invalid position.

The selected-picture handle is ignored.

Tests whether a menu item is checked.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item exists and is checked; otherwise, false.

Tests whether a menu item is enabled.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item exists and is enabled; otherwise, false.

Changes a SAL menu item's caption using the font compatibility signature.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.
fontHandleSalNumberThe registered font handle; ignored by the WinForms implementation.
textSalStringThe menu-item caption.

Returns: SalBoolean. True if the caption is updated; false if the item cannot be found.

The font handle is ignored. Throws InvalidOperationException if the item is not a SalMenuItem.

Changes a SAL menu item's caption and normal and selected pictures.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.
picNormalSalNumberThe normal-state picture handle.
picSelectedSalNumberThe selected-state picture handle.
textSalStringThe menu-item caption.

Returns: SalBoolean. True if the item is found and updated; false if it cannot be found.

Throws InvalidOperationException if the item is not a SalMenuItem.

Changes a menu item's caption and optional keyboard shortcut.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.
textSalStringThe menu-item caption.

Returns: SalBoolean. True if the item is found and updated; otherwise, false.

Text after the first tab is parsed as a shortcut. An empty caption clears the shortcut; an unrecognized shortcut is ignored.

Clears a menu item's check mark.

ParameterTypeDescription
ctrlControlThe control whose main or context menu is searched.
menuSalNumberThe menu handle within the control's main or context menu.
posSalNumberThe zero-based item position, or the negative identifier returned by a menu-insertion function.

Returns: SalBoolean. True if the item is found and updated; otherwise, false.

Static member MessageBox(sMsgText, sCaption, hPicIcon, hBtnHandles, nNumButtons)

Displays a message dialog using custom button handles and an optional default button.

ParameterTypeDescription
sMsgTextSalStringThe message text.
sCaptionSalStringThe recovery dialog caption.
hPicIconSalNumberThe picture handle or message-box icon constant.
hBtnHandlesSalArray<SalNumber>The custom button handles in display order.
nNumButtonsSalNumberThe number of button handles to use.

Returns: SalNumber. The return value associated with the chosen button.

The overload without a default-button index selects index zero.

Static member MessageBox(sMsgText, sCaption, hPicIcon, hBtnHandles, nNumButtons, nDefButtonIndex)

Displays a message dialog using custom button handles and an optional default button.

ParameterTypeDescription
sMsgTextSalStringThe message text.
sCaptionSalStringThe recovery dialog caption.
hPicIconSalNumberThe picture handle or message-box icon constant.
hBtnHandlesSalArray<SalNumber>The custom button handles in display order.
nNumButtonsSalNumberThe number of button handles to use.
nDefButtonIndexSalNumberThe zero-based default-button index.

Returns: SalNumber. The return value associated with the chosen button.

The overload without a default-button index selects index zero.

Static member MessageFreeButton(button)

Releases a custom message-box button handle.

ParameterTypeDescription
buttonSalNumberThe custom button handle to release.

Returns: SalBoolean. True if the registered handle is released; otherwise, false.

Static member MessageLoadButton(label, id)

Registers a custom message-box button with its label and return value.

ParameterTypeDescription
labelSalStringThe text displayed on the custom button.
idSalNumberThe value returned when this button is selected.

Returns: SalNumber. The registered button handle.

Release the returned handle with MessageFreeButton after use.

Static member MessageSetBkgdColor(color)

Sets the default background color for Visual Toolchest message boxes.

ParameterTypeDescription
colorSalNumberThe SAL background color value.

Returns: SalBoolean. True after assigning the translated SAL color.

Static member NumberBitClear(value, bitMask)

Clears selected bits in an unsigned 32-bit representation of a number.

ParameterTypeDescription
value by referenceSalNumberThe numeric value to assign or modify.
bitMaskSalNumberThe unsigned 32-bit mask selecting bits.

Returns: SalNumber. The updated value, also assigned to the reference parameter.

Static member NumberBitSet(value, bitMask)

Sets selected bits in an unsigned 32-bit representation of a number.

ParameterTypeDescription
value by referenceSalNumberThe numeric value to assign or modify.
bitMaskSalNumberThe unsigned 32-bit mask selecting bits.

Returns: SalNumber. The updated value, also assigned to the reference parameter.

Static member NumberChoose(expression, trueValue, falseValue)

Selects one of two numbers according to a Boolean expression.

ParameterTypeDescription
expressionSalBooleanThe condition that selects the result.
trueValueSalNumberThe value returned for a true condition.
falseValueSalNumberThe value returned for a false condition.

Returns: SalNumber. The true value if the expression is true; otherwise, the false value.

Static member NumberHighByte(num)

Extracts bits 8 through 15 from a number.

ParameterTypeDescription
numSalNumberThe number whose low word is examined.

Returns: SalNumber. The high byte of the low 16-bit word.

Static member NumberLowByte(num)

Extracts bits 0 through 7 from a number.

ParameterTypeDescription
numSalNumberThe number whose low word is examined.

Returns: SalNumber. The low byte.

Static member NumberMakeLong(lowWord, highWord)

Combines the low 16 bits of two numbers into an unsigned 32-bit value.

ParameterTypeDescription
lowWordSalNumberThe value supplying bits 0 through 15.
highWordSalNumberThe value supplying bits 16 through 31.

Returns: SalNumber. The high word shifted left by 16 bits and combined with the low word.

Static member PicFree(Pic)

Releases a registered picture and its image resources.

ParameterTypeDescription
PicSalNumberThe picture handle returned by PicLoad.

Returns: SalNumber. VTERR_Ok after release; VTERR_InvalidParameter for zero; VTERR_InvalidHandle for an unknown handle.

Static member PicLoad(flags, resource, imageName)

Loads a picture from a file, module resource, SAL resource, or binary SAL string.

ParameterTypeDescription
flagsSalNumberThe PIC_Load* source, size, and format flags.
resourceSalStringThe source file, resource name, or binary picture data selected by the flags.
imageNameSalStringThe named image within a module resource when applicable.

Returns: SalNumber. The registered picture handle, or zero if no image is loaded.

The flags choose the source; recognized filename extensions also supply source and format flags. Release successful handles with PicFree.

Static member PopulateCommonDir(ctrl, directory)

Replaces a list with the directory path components and immediate subdirectories.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
directorySalStringThe directory whose components or children are displayed.

Returns: SalNumber. The resulting list count, including any entries added before an error; zero for an unsupported control.

Selects the last component of the supplied directory.

Static member PopulateDirTree(ctrl, directory)

Replaces an outline with a directory root and its immediate child directories.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
directorySalStringThe directory whose components or children are displayed.

Returns: SalNumber. The number of loaded nodes, or zero on failure.

Child entries are marked expandable; deeper levels are not loaded by this call.

Static member PopulateDrives(ctrl)

Replaces a list with logical drives, drive icons, and available volume labels.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalNumber. The number of populated list items.

Selects the current drive when the populated list is nonempty.

Static member PopulateFontNames(ctrl, fontType)

Replaces a list with available font family names and a font icon.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
fontTypeSalNumberReserved for compatibility; this argument is ignored.

Returns: SalNumber. The number of populated items.

Static member ProfileDelete(fileName, section, entry)

Deletes an entry or an entire section from an INI file.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.
sectionSalStringThe INI section name.
entrySalStringThe entry name, or an empty value to remove the entire section.

Returns: SalBoolean. True if the profile operation succeeds; otherwise, false.

Static member ProfileEnumStrings(fileName, section, strings)

Enumerates entry names in an INI-file section.

ParameterTypeDescription
fileNameSalStringThe file path or pattern, as required by the operation.
sectionSalStringThe INI section name.
stringsSalArray<SalString>Receives the entry names.

Returns: SalNumber. The entry count; zero for an empty section name; VTERR_FileNotFound if the file cannot be located.

The file is located using the Windows search path. Values following the equals sign are omitted.

Static member SendMsgString(hWnd, message, wParam, lParam)

Synchronously sends a native window message with an ANSI string payload.

ParameterTypeDescription
hWndSalWindowHandleThe receiving window handle.
messageSalNumberThe native message identifier.
wParamSalNumberThe message-specific numeric parameter.
lParamSalStringThe message-specific string payload.

Returns: SalNumber. The message result converted to a 32-bit signed integer.

Uses SendMessageA. The receiving window interprets the message and both parameters.

Static member SetCommonDir(ctrl, index)

Repopulates a directory list using the path represented by the selected entry.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.
indexSalNumberThe array or list index to operate on.

Returns: SalString. The selected path if repopulation produces entries; otherwise, SalString.Null.

Static member StrChoose(expression, trueValue, falseValue)

Selects one of two strings according to a Boolean expression.

ParameterTypeDescription
expressionSalBooleanThe condition that selects the result.
trueValueSalStringThe string selected for a true condition.
falseValueSalStringThe string selected for a false condition.

Returns: SalString. The true value when the condition is true; otherwise, the false value.

Static member StrExpand(template, array)

Expands numeric, string, and index placeholders using an array.

ParameterTypeDescription
templateSalStringThe template containing Visual Toolchest percent placeholders.
arraySalArrayThe array to search or modify.

Returns: SalString. The expanded text; SalString.Null for an empty template or empty or multidimensional array; the original template for an unsupported element type.

%n formats numeric values as integers, %s inserts strings, %u inserts indices, and %% inserts a percent sign. Braced sections repeat for array elements; a comma after the percent sign separates repetitions.

Static member StrFind(table, key)

Looks up a key in a loaded string table.

ParameterTypeDescription
tableSalNumberThe string-table handle returned by StrLoadTable.
keySalStringThe key to find.

Returns: SalString. The stored text, a null SAL string when the key is absent, or an empty string for a nonpositive handle.

Static member StrFreeTable(table)

Clears a loaded string table and releases its runtime handle.

ParameterTypeDescription
tableSalNumberThe string-table handle returned by StrLoadTable.

Returns: SalBoolean. True for a positive handle after release; false for a nonpositive handle.

Static member StrLeftTrim(source)

Removes leading whitespace from a string.

ParameterTypeDescription
sourceSalStringThe input string.

Returns: SalString. The trimmed text, preserving an empty or null input.

Static member StrLoadTable(fileName)

Loads key/value string-table entries from a text file.

ParameterTypeDescription
fileNameSalStringThe string-table text file to read.

Returns: SalNumber. The registered string-table handle.

Duplicate keys replace earlier values. Release the resulting handle with StrFreeTable.

Static member StrPad(source, size)

Pads or truncates a string to the requested length.

ParameterTypeDescription
sourceSalStringThe input string.
sizeSalNumberThe desired character count.

Returns: SalString. The resized string; a null SAL string for a negative length; a null input remains null.

Padding uses spaces on the right.

Static member StrProper(source)

Applies Visual Toolchest proper-name capitalization.

ParameterTypeDescription
sourceSalStringThe input string.

Returns: SalString. The converted string, preserving empty or null input.

Capitalizes after punctuation and whitespace and recognizes Mc, Mac, and O' prefixes. Character conversion uses the current culture.

Static member StrRightTrim(source)

Removes trailing whitespace from a string.

ParameterTypeDescription
sourceSalStringThe input string.

Returns: SalString. The trimmed text, preserving an empty or null input.

Searches backward for text using case-insensitive comparison.

ParameterTypeDescription
sourceSalStringThe input string.
positionSalNumberThe last starting index to inspect; -1 starts at the last possible match position.
searchSalStringThe substring to locate.

Returns: SalNumber. The zero-based matching index, or -1 for no match or invalid input.

Static member StrSubstitute(source, search, replace)

Replaces every case-sensitive occurrence of a substring.

ParameterTypeDescription
sourceSalStringThe input string.
searchSalStringThe substring to locate.
replaceSalStringThe replacement text, or null to delete matches.

Returns: SalString. The substituted string.

A null replacement deletes matches. An empty search string leaves the source unchanged.

Static member StrTrim(Source)

Removes leading and trailing whitespace from a string.

ParameterTypeDescription
SourceSalStringThe input string.

Returns: SalString. The trimmed text, preserving an empty or null input.

Static member TblAllRows(table, flagsOn, flagsOff)

Tests whether any table row matches the requested flags.

ParameterTypeDescription
tableControlThe SAL table control.
flagsOnSalNumberThe row flags that must be set.
flagsOffSalNumberThe row flags that must be clear.

Returns: SalBoolean. The result of Sal.TblAnyRows.

Despite the compatibility name, this delegates to Sal.TblAnyRows.

Static member TblAutoSizeColumn(table, column)

Resizes a table column, or all columns when no valid column is supplied, with four pixels of padding.

ParameterTypeDescription
tableControlThe SAL table control.
columnControlThe target column, or an invalid/null column to use all columns where supported.

Returns: SalBoolean. True for a valid table; otherwise, false.

Static member TblClearColumnSelection(table)

Clears the selected state of every table column.

ParameterTypeDescription
tableControlThe SAL table control.

Returns: SalBoolean. True for a valid table; otherwise, false.

Static member TblFindDateTime(table, row, column, date)

Finds the first table row whose specified column, or any column, equals a date/time value.

ParameterTypeDescription
tableControlThe SAL table control.
rowSalNumberThe first row index included in the search.
columnControlThe target column, or an invalid/null column to use all columns where supported.
dateSalDateTimeThe date/time value to match.

Returns: SalNumber. The matching row, or -1 for no match, an invalid table, or a null search value.

Searching fetches rows and changes the table context.

Static member TblFindNumber(table, row, column, number)

Finds the first table row whose specified column, or any column, equals a number.

ParameterTypeDescription
tableControlThe SAL table control.
rowSalNumberThe first row index included in the search.
columnControlThe target column, or an invalid/null column to use all columns where supported.
numberSalNumberThe numeric value to match.

Returns: SalNumber. The matching row, or -1 for no match, an invalid table, or a null search value.

Searching fetches rows and changes the table context.

Static member TblFindString(table, row, column, pattern)

Finds the first table row containing the search text in the specified column or any column.

ParameterTypeDescription
tableControlThe SAL table control.
rowSalNumberThe first row index included in the search.
columnControlThe target column, or an invalid/null column to use all columns where supported.
patternSalStringThe text to find within a cell.

Returns: SalNumber. The matching row, or -1 for no match, an invalid table, or a null pattern.

Searching uses SalString.Scan, fetches rows, and changes the table context.

Static member TblGetCell(table, row, column)

Reads a cell's displayed text while preserving the table context row.

ParameterTypeDescription
tableControlThe SAL table control.
rowSalNumberThe row index to read or change.
columnControlThe target column, or an invalid/null column to use all columns where supported.

Returns: SalString. The cell text, or SalString.Null for an invalid table, column, or row.

Static member TblGetColumnTitle(column)

Reads the title of a SAL table column.

ParameterTypeDescription
columnControlThe target column, or an invalid/null column to use all columns where supported.

Returns: SalString. The title, or SalString.Null for an invalid column.

Static member TblSetRowColor(table, row, color)

Sets the text color of every cell in a table row while preserving the context row.

ParameterTypeDescription
tableControlThe SAL table control.
rowSalNumberThe row index to read or change.
colorSalNumberThe SAL text color value.

Returns: SalBoolean. True if the row is updated; otherwise, false.

Static member TblSetRowPicture(table, rowFlags, picture)

Associates a registered picture with row-header flags.

ParameterTypeDescription
tableControlThe SAL table control.
rowFlagsSalNumberThe row flags associated with the header image.
pictureSalNumberThe valid picture handle registered by PicLoad.

Returns: SalBoolean. True for a valid table after updating the row-header configuration; otherwise, false.

An invalid picture handle removes the existing association for these flags.

Static member WaitCursor(Flags)

Changes the wait cursor using nested on/off or temporary commands.

ParameterTypeDescription
FlagsSalNumberThe wait-cursor command; ignored by the Web implementation.

Returns: SalNumber. Zero.

Commands 1 and 0 increment and decrement a nesting count. Temporary and system-modal commands change the cursor without changing that count.

Static member WinClearAllEditFlags(parent)

Clears edit-control Modified flags except on controls marked WF_NoClearEditFlag.

ParameterTypeDescription
parentControlThe parent control whose descendant inputs are examined.

Returns: SalNumber. The number of processed controls, or -1 for an invalid parent.

Static member WinClearAllFields(parent)

Clears supported child inputs, lists, and tables except those marked WF_NoClear.

ParameterTypeDescription
parentControlThe parent control whose descendant inputs are examined.

Returns: SalNumber. The number of processed controls, or -1 for an invalid parent.

Static member WinEnumProps(hWnd, propNames, propValues)

Enumerates native window-property names and values into parallel arrays.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
propNamesSalArray<SalString>Receives the enumerated property names starting at index zero.
propValuesSalArray<SalNumber>Receives the corresponding numeric property values starting at index zero.

Returns: SalNumber. The number of properties enumerated.

Writes from index zero without clearing entries beyond the returned count.

Static member WinFreeAccelerator(accelerator)

Disposes a keyboard accelerator registered by WinLoadAccelerator.

ParameterTypeDescription
acceleratorSalNumberThe registered keyboard accelerator handle.

Returns: SalBoolean. True if the accelerator is found and disposed; otherwise, false.

Static member WinGetFlags(hWnd)

Reads the Visual Toolchest flags associated with a window.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.

Returns: SalNumber. The stored flags, or zero when none are available.

Static member WinGetHandle(ctrl, text, type)

Finds the first child of a form matching a SAL window type and exact text.

ParameterTypeDescription
ctrlControlThe target window or control.
textSalStringThe exact window text to match.
typeSalNumberThe SAL window type to match.

Returns: SalWindowHandle. The matching control handle, or a null handle if no match or form is available.

Static member WinGetProp(hWnd, propName)

Reads a named native Windows property.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
propNameSalStringThe property name.

Returns: SalNumber. The native property value, or zero if no value is available.

Static member WinGetStyle(hWnd)

Reads the native GWL_STYLE flags for a window.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.

Returns: SalNumber. The window style bits, or -1 for a null handle.

Static member WinGetText(ctrl)

Gets the text exposed by the SAL window abstraction.

ParameterTypeDescription
ctrlControlThe list, combo box, or Visual Toolchest outline control.

Returns: SalString. The control text.

Static member WinIsChild(parent, Child)

Tests whether one control contains another control.

ParameterTypeDescription
parentSalWindowHandleThe potential parent window.
ChildSalWindowHandleThe potential descendant window.

Returns: SalBoolean. True if the second control belongs to the first control's descendant hierarchy; otherwise, false.

Static member WinIsMaximized(hWnd)

Tests whether a form is maximized.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.

Returns: SalBoolean. True for a maximized form; otherwise, false.

Static member WinIsMinimized(hWnd)

Tests whether a form is minimized.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.

Returns: SalBoolean. True for a minimized form; otherwise, false.

Static member WinIsRequiredFieldNull(parent)

Finds the first empty input control marked WF_Required.

ParameterTypeDescription
parentControlThe parent control whose descendant inputs are examined.

Returns: SalWindowHandle. The first empty required control, or a null handle if none is found.

Checks data fields, multiline edits, lists, and combo boxes.

Static member WinIsRestored(hWnd)

Tests whether a valid window is neither minimized nor maximized.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.

Returns: SalBoolean. True if the window is valid and in neither state; otherwise, false.

Static member WinIsWindow(hWnd)

Tests whether the native handle identifies an existing window.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.

Returns: SalBoolean. The Windows IsWindow result.

Static member WinLoadAccelerator(target, message, keyState, keyCode, id)

Registers a key combination that sends a message and identifier to a target control.

ParameterTypeDescription
targetControlThe control that receives the accelerator message.
messageSalNumberThe message identifier to send.
keyStateSalNumberThe KDS_* shift, control, and alt modifier flags.
keyCodeSalNumberThe virtual-key code.
idSalNumberThe identifier delivered with the accelerator message.

Returns: SalNumber. The accelerator handle.

Release the returned handle with WinFreeAccelerator.

Static member WinMove(hWnd, left, top, width, height)

Moves and resizes a native window and requests repainting.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
leftSalNumberThe left coordinate in pixels.
topSalNumberThe top coordinate in pixels.
widthSalNumberThe width in pixels.
heightSalNumberThe height in pixels.

Returns: SalBoolean. The Windows MoveWindow success result.

Static member WinRemoveProp(hWnd, propName)

Removes a named native property from a window.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
propNameSalStringThe name of the property to remove.

Returns: SalBoolean. True when the removed property has a nonzero value; false for a zero value or an absent property.

Static member WinSetFlags(hWnd, winFlags, state)

Sets or clears Visual Toolchest window flags and applies display-only behavior.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
winFlagsSalNumberThe Visual Toolchest window flags to change.
stateSalBooleanTrue to set the selected bits; false to clear them.

Returns: SalBoolean. True after updating a valid control; false for a null or unresolved handle or a negative mask being enabled.

WF_DisplayOnly updates tab-stop and read-only or enabled properties according to the control type.

Static member WinSetMeter(ctrl, percent)

Updates the percentage displayed by a Visual Toolchest meter.

ParameterTypeDescription
ctrlControlThe meter control to update.
percentSalNumberThe percentage passed to the meter.

Returns: SalNumber. Zero.

Controls that are not VisMeter instances are ignored.

Static member WinSetProp(hWnd, propName, propValue)

Associates a numeric native property with a window.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
propNameSalStringThe property name.
propValueSalNumberThe numeric value to associate with the window.

Returns: SalBoolean. The Windows SetProp success result.

Static member WinSetStyle(hWnd, style, state)

Sets or clears native window style bits and refreshes the frame.

ParameterTypeDescription
hWndSalWindowHandleThe target window handle.
styleSalNumberThe window style bits to change.
stateSalBooleanTrue to set the selected bits; false to clear them.

Returns: SalBoolean. True after processing a non-null handle; false for a null handle.

Also maps WS_TABSTOP to TabStop. WS_DISABLED changes TabStop without graying the control through Enabled.

Static member WinSetTabOrder(ctrl, ctrlAfter)

Places a control after another control in tab-index order or removes its tab stop.

ParameterTypeDescription
ctrlControlThe target window or control.
ctrlAfterControlThe control to follow in tab order, or null to disable the target tab stop.

Returns: SalBoolean. True for a valid target control; otherwise, false.

A null reference control clears TabStop. Otherwise only TabIndex is changed; TabStop is not automatically reenabled.

Static member WinShow(ctrl, showCmd)

Shows, hides, minimizes, maximizes, or restores a control.

ParameterTypeDescription
ctrlControlThe target window or control.
showCmdSalNumberThe SHOW_* command.

Returns: SalBoolean. True for a valid control; otherwise, false.

Minimizing a non-form hides it; maximizing a child control fills its parent. Unknown commands make no change.