Vis

PPJ.Runtime.Vis.Vis

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Web.Vis.49 (4.9.0.0)

Contains all Vis.* static functions and constants.

public class Vis

Fields

Name
Type
Description

ACTION_Abort

ACTION_Retry

Error action codes

CAL_AlternateButtons

*** Styles

CAL_EnableButtons

CAL_EnableKeyboard

CAL_EtchedLook

CAL_MultiSelect

CAL_SelectExtra

CAL_SelectSpecial

CAL_ShowExtra

CAL_ShowFocus

CAL_ShowGrid

CAL_ShowSpecial

CALN_DateChanged

CALN_DateFinished

CALN_ErrSpace

*** Notification messages

CALN_Scroll

CAPTION_ErrorHandler

COLOR_CAL_BackExtra

*** Color Roles

COLOR_CAL_BackLabel

COLOR_CAL_ForeDays

COLOR_CAL_ForeExtra

COLOR_CAL_ForeMonth

COLOR_PAL_BackColor

*** Color roles

COLOR_PAL_BackMenu

DAY_Friday

DAY_Monday

DAY_Saturday

DAY_Sunday

DAY_Thursday

DAY_Tuesday

DAY_Unset

*** Special Rule WeekDays

DAY_Wednesday

DBF_IncrementalTime

Debug flags

DBF_MessageBox

DBF_RealTime

DESKTOP_MyComputer

DESKTOP_NetworkNeighborhood

DESKTOP_Root

*** Desktop constants

DOS_BreakFlag

DOS_ErrorMode

DOS_VerifyFlag

DOS Flags

DRIVE_CDROM

DRIVE_Fixed

DRIVE_Floppy

Drive type flags

DRIVE_Network

DRIVE_RAM

DROP_Child

Drop Flags

DROP_Sibling

DT_Handle

Data Types

EM_SetReadOnly

Edit control messages

FA_Volume

File attribute flags

FILETYPE_Document

FILETYPE_Other

FILETYPE_Program

File types

FILETYPE_System

FONTTYPE_Device

Font Types

FONTTYPE_Raster

FONTTYPE_TrueType

hPicNull

General constants

ITEM_CanCollapse

ITEM_CanDemote

ITEM_CanExpand

ITEM_CanMoveDown

ITEM_CanMoveUp

ITEM_CanPromote

ITEM_IsDeleted

ITEM_IsDisabled

List Box Item Flags

ITEM_IsExpanded

ITEM_IsFocus

ITEM_IsFrame

ITEM_IsHidden

ITEM_IsParent

ITEM_IsSelected

KDS_Alt

KDS_AltCtrl

KDS_AltShift

KDS_Ctrl

KDS_None

Key Down States

KDS_Shift

KDS_ShiftAltCtrl

KDS_ShiftCtrl

KS_Down

Key state flags

KS_LockOn

LBS_DisableNoScroll

LBS_DragSelect

LBS_Editable

LBS_Explorer

LBS_ExtendedCombo

LBS_FmtLowercase

LBS_FmtMixedcase

LBS_FmtUppercase

LBS_KillFocusFrameSelect

LBS_KillFocusNoSelect

LBS_NoAutoResize

LBS_SetWidthEachInsert

LBS_ShowHorzScrollBar

LBS_ShowNoEditSelect

LBS_ShowNoEditText

LBS_ShowNoSelect

LBS_ShowNoTree

LBS_ShowPicCenter

LBS_ShowSelectBkgd

LBS_ShowSelectColor

LBS_ShowSelectText

LBS_ShowSelectTextPicture

LBS_VisExtensions

List Box Extended styles

LVA_AlignLeft

LVA_AlignTop

LVA_Default

*** Arrange Codes (see cListView.Arrange())

LVA_SnapToGrid

LVCF_Fmt

*** Column Masks (see cListView.SetColumn())

LVCF_Text

LVCF_Width

LVCFMT_Center

LVCFMT_JustifyMask

LVCFMT_Left

*** Column Alignments (see cListView.AssignColumns())

LVCFMT_Right

LVFI_NearestXY

LVFI_Partial

LVFI_String

*** FindItem Flags (see cListView.FindItem())

LVFI_Wrap

LVHT_Above

LVHT_Below

LVHT_Nowhere

*** HitTest Flags (see cListView.HitTest())

LVHT_OnItem

LVHT_OnItemIcon

LVHT_OnItemLabel

LVHT_OnItemStateIcon

LVHT_ToLeft

LVHT_ToRight

LVIF_Image

LVIF_Param

LVIF_State

LVIF_Text

*** Item Masks (see cListView.SetItem())

LVIR_Bounds

*** ItemRect Codes (see cListView.GetItemRect())

LVIR_Icon

LVIR_Label

LVIR_SelectBounds

LVIS_Cut

LVIS_DropHilited

LVIS_Focused

*** Item States (see cListView.SetItemState())

LVIS_Selected

LVIS_StateImageMask

LVN_BeginDrag

LVN_BeginRDrag

LVN_ColumnClick

LVN_DeleteAllItems

LVN_DeleteItem

LVN_First

*** Notification Messages (sent to SAM_CustControlCmd handler)

LVN_InsertItem

LVN_ItemChanged

LVN_ItemChanging

LVNI_Above

LVNI_All

*** NextItem Flags (see cListView.GetNextItem())

LVNI_Below

LVNI_Cut

LVNI_DropHilited

LVNI_Focused

LVNI_Selected

LVNI_ToLeft

LVNI_ToRight

LVS_AlignLeft

LVS_AlignMask

LVS_AlignTop

LVS_AutoArrange

LVS_EditLabels

LVS_Icon

*** Styles (see cListView.SetStyle())

LVS_List

LVS_NoColumnHeader

LVS_NoLabelWrap

LVS_NoScroll

LVS_NoSortHeader

LVS_Report

LVS_ShowSelAlways

LVS_SingleSel

LVS_SmallIcon

LVS_TypeMask

LVS_TypeStyleMask

LVSORT_Ascending

*** Sort Order Flags (see cListView.SetSortOrder())

LVSORT_Descending

MBF_IconAsterisk

MessageBox constants

MBF_IconError

MBF_IconExclamation

MBF_IconHand

MBF_IconInformation

MBF_IconQuestion

MBF_IconStop

MBF_IconWarning

MF_Check

MF_Disable

Menu flags

MF_Separator

NM_Click

NM_DoubleClick

NM_First

Generic Notification Messages

NM_KillFocus

NM_OutOfMemory

NM_Return

NM_RightClick

NM_RightDoubleClick

NM_SetFocus

ORIENT_SPLIT_Horizontal

ORIENT_SPLIT_Unset

*** Orientation values

ORIENT_SPLIT_Vertical

PAL_EnableMRUColors

*** Styles

PAL_NoHideSelects

PALETTE_Main

PALETTE_MRU

PALN_Changed

PALN_ErrSpace

*** Notification messages

PALN_Finished

PALN_Menu

PIC_LoadFile

PIC_LoadLargeIcon

PIC_LoadResource

PIC_LoadSmallIcon

PIC_LoadSWinRes

PIC_LoadSWinStr

Picture flags (see VisPicLoad())

PicDesktop

PicDriveCD

PicDriveFixed

PicDriveFloppy

PicDriveNetwork

PicDriveRemovable

PicFolderClosed

PicFolderOpen

PicMyComputer

PicNetworkNeighborhood

PicTTFont

REF_AutoHScroll

REF_AutoVScroll

REF_AutoWordSelection

Option Flags (duplicates of ECO_ constants from Microsoft's RICHEDIT.H)

REF_CFE_AutoColor

Character Format Flags (duplicates of CFE_ constants from Microsoft's RICHEDIT.H)

REF_CFE_Bold

REF_CFE_Italic

REF_CFE_Protected

REF_CFE_Strikeout

REF_CFE_Underline

REF_FT_MatchCase

Find Text Flags

REF_FT_WholeWord

REF_NoHideSel

REF_PFA_Center

REF_PFA_Left

Paragraph Format Alignment Flags (duplicates of PFA_ constants from Microsoft's RICHEDIT.H)

REF_PFA_Right

REF_PFN_Bullet

Paragraph Format Numbering Flags (duplicates of PFN_ constants from Microsoft's RICHEDIT.H)

REF_ReadOnly

REF_SaveSelection

REF_SEL_Empty

Selection Flags (duplicates of SEL_ constants from Microsoft's RICHEDIT.H)

REF_SEL_MultiChar

REF_SEL_MultiObject

REF_SEL_Object

REF_SEL_Text

REF_Vertical

REGION_Main

*** Misc. Constants

REGION_Menu

REGION_MRU

REN_Change

REN_ErrSpace

Message Types

REN_HScroll

REN_MaxText

REN_Protected

REN_RequestResize

REN_SelChange

REN_Update

REN_VScroll

ROW_UserFlag1

Row flags

ROW_UserFlag2

ROW_UserFlag3

ROW_UserFlag4

ROW_UserFlag5

SEEK_Begin

Seek origins

SEEK_Current

SEEK_End

SEQ_First

SEQ_Fourth

SEQ_Last

SEQ_Second

SEQ_Third

SEQ_Unset

*** Special Day Sequences

SHOW_AllLevels

Show All Levels

SHOW_Hidden

Show Window Flags

SHOW_Maximized

SHOW_Minimized

SHOW_Normal

SM_DBCSEnabled

SM_Debug

SM_MenuDropAlignment

SM_MousePresent

SM_PenWindows

SM_SwapButton

SM_XBorder

SM_XCursor

SM_XDlgFrame

SM_XDoubleClick

SM_XFrame

SM_XFullScreen

SM_XHScroll

SM_XHThumb

SM_XIcon

SM_XIconSpacing

SM_XMin

SM_XMinTrack

SM_XScreen

System metrics constants

SM_XSize

SM_XVScroll

SM_YBorder

SM_YCaption

SM_YCursor

SM_YDlgFrame

SM_YDoubleClick

SM_YFrame

SM_YFullScreen

SM_YHScroll

SM_YIcon

SM_YIconSpacing

SM_YKanjiWindow

SM_YMenu

SM_YMin

SM_YMinTrack

SM_YScreen

SM_YSize

SM_YVScroll

SM_YVThumb

SORT_Ascending

Sort Flags

SORT_Descending

SPECIAL_MonthlyDOM

SPECIAL_MonthlyDOW

SPECIAL_OneTime

SPECIAL_Unset

*** Special Rule Types

SPECIAL_Weekly

SPECIAL_Yearly

SPECIAL_YearlyDOW

VK_0

VK_1

VK_2

VK_3

VK_4

VK_5

VK_6

VK_7

VK_8

VK_9

VK_A

VK_Add

VK_Alt

VK_B

VK_Backspace

VK_C

VK_Cancel

VK_CapsLock

VK_Clear

VK_Control

VK_D

VK_Decimal

VK_Delete

VK_Divide

VK_Down

VK_E

VK_End

VK_Enter

VK_Escape

VK_Execute

VK_F

VK_F1

VK_F10

VK_F11

VK_F12

VK_F2

VK_F3

VK_F4

VK_F5

VK_F6

VK_F7

VK_F8

VK_F9

VK_G

VK_H

VK_Help

VK_Home

VK_I

VK_Insert

VK_J

VK_K

VK_L

VK_Left

VK_LeftButton

Virtual keycodes

VK_M

VK_MiddleButton

VK_Multiply

VK_N

VK_NumLock

VK_O

VK_P

VK_PageDown

VK_PageUp

VK_Pause

VK_PrintScreen

VK_Q

VK_R

VK_Right

VK_RightButton

VK_S

VK_ScrollLock

VK_Select

VK_Separator

VK_Shift

VK_Space

VK_Subtract

VK_T

VK_Tab

VK_U

VK_Up

VK_V

VK_W

VK_X

VK_Y

VK_Z

VT_DLLName

Picture names (these pictures are in the VT DLL)

VT_EmbeddedResource

VT_SWP_NoZOrder

Show Window Flags

VTERR_AccessDenied

VTERR_BadNetName

VTERR_BadNetPath

VTERR_DiskFull

VTERR_DriveNotReady

VTERR_EndOfFile

VTERR_FileNotFound

VTERR_InvalidData

VTERR_InvalidDrive

VTERR_InvalidHandle

VTERR_InvalidParameter

VTERR_LockViolation

VTERR_NetNameDeleted

VTERR_NetworkAccessDenied

VTERR_NetworkBusy

VTERR_NetworkUnreachable

VTERR_NetWriteFault

VTERR_NoMemory

VTERR_NoMoreFiles

VTERR_Ok

Error return values - these are remaps of values found in SDK's WINERROR.H

VTERR_PathNotFound

VTERR_ReadFault

VTERR_SharingViolation

VTERR_TooManyFiles

VTERR_WriteFault

VTERR_WriteProtected

VTM_Accelerator

VTM_Base

Messages

VTM_Char

VTM_Click

VTM_ControlCreate

VTM_Create

Remaps of WM_* messages

VTM_CreateComplete

VTM_Destroy

VTM_Enable

VTM_EraseBkgnd

VTM_KeyDown

VTM_KeyUp

VTM_LeftClick

VTM_LeftDoubleClick

VTM_LVColumnClick

! ***Message returning Column header clicked

VTM_MenuSelect

VTM_MiddleClick

VTM_MiddleDoubleClick

VTM_OutlineCornerClick

VTM_Populate

VTM_RightClick

VTM_RightDoubleClick

VTM_Size

VTM_SpinGetValue

VTM_SpinScrollDown

VTM_SpinScrollUp

VTM_SpinSetIncrement

VTM_SpinSetMax

VTM_SpinSetMin

Messages

VTM_SpinSetValue

VTPIC_BookClosed

VTPIC_BookOpen

VTPIC_BookShelf2

VTPIC_BookShelf3

VTPIC_CheckBlack

VTPIC_CheckBoxOff

VTPIC_CheckBoxOn

VTPIC_CheckWhite

VTPIC_Desktop

VTPIC_DiamondBlackClosed

VTPIC_DiamondBlackOpen

VTPIC_DiamondWhiteClosed

VTPIC_DiamondWhiteOpen

VTPIC_DriveCDROM

VTPIC_DriveCDROM2

VTPIC_DriveFixed

VTPIC_DriveFloppy

VTPIC_DriveNetwork

VTPIC_DriveNetworkX

VTPIC_DriveRAM

VTPIC_Empty

VTPIC_FileAllOther

VTPIC_FileDocuments

VTPIC_FilePrograms

VTPIC_FileSystem

VTPIC_Folder

VTPIC_Folder2

VTPIC_FolderCur

VTPIC_FolderCurMinus

VTPIC_FolderCurPlus

VTPIC_FolderMinus

VTPIC_FolderOpen

VTPIC_FolderOpen2

VTPIC_FolderPlus

VTPIC_FontPrinter

VTPIC_FontTrueType

VTPIC_MinusDark

VTPIC_MinusLight

VTPIC_MinusWhite

VTPIC_MyComputer

VTPIC_NetworkNeighborhood

VTPIC_PlusDark

VTPIC_PlusLight

VTPIC_PlusWhite

VTPIC_PrevDirectory

VTPIC_RadioOff

VTPIC_RadioOn

WAIT_SysModalOff

WAIT_SysModalOn

WAIT_TempOff

WAIT_TempOn

Wait cursor flags

WF_80x87

WF_CPU286

WF_CPU386

WF_CPU486

WF_DisplayOnly

WF_EnableWhenNotNull

WF_Enhanced

WF_FitPath

WF_NoClear

WF_NoClearEditFlag

WF_Paging

WF_PMode

Windows flags

WF_Required

Window Flags

WF_Standard

WF_WLO

Methods

ArrayAppend(hArySource, hAryTarget, nDataType)

Appends one array to the end of another array.

Parameter
Type
Description

hArySource

hAryTarget

nDataType

Returns: SalNumber.

ArrayCopy(hArySource, hAryTarget, nDataType)

Copies the source array to the target array.

Parameter
Type
Description

hArySource

hAryTarget

nDataType

Returns: SalNumber.

ArrayDeleteItem(hArray, nIndex, nDataType)

Deletes an item from an array.

Parameter
Type
Description

hArray

nIndex

nDataType

Returns: SalNumber.

ArrayFillDateTime(dtArray, dtValue, nCount)

Fills a Date/Time array with the specified date/time value.

Parameter
Type
Description

Returns: SalBoolean.

ArrayFillNumber(nArray, nValue, nCount)

Fills a Date/Time array with the specified numeric value.

Parameter
Type
Description

Returns: SalBoolean.

ArrayFillString(sArray, sValue, nCount)

Fills a Date/Time array with the specified string value.

Parameter
Type
Description

Returns: SalBoolean.

ArrayFindDateTime(hArray, dtSearchFor)

Locates a date/time value within an array.

Parameter
Type
Description

Returns: SalNumber.

ArrayFindNumber(hArray, nSearchFor)

Locates a numeric value within an array.

Parameter
Type
Description

Returns: SalNumber.

ArrayFindNumber(hArray, bSearchFor)

Locates a numeric value within an array.

Parameter
Type
Description

Returns: SalNumber.

ArrayFindString(hArray, sSearchFor)

Locates a string value within an array.

Parameter
Type
Description

Returns: SalNumber.

ArrayInsertItem(hArray, nIndex, nDataType)

nNumItems VisArrayInsertItem( hArray, nIndex, nDataType )

Parameter
Type
Description

hArray

nIndex

nDataType

Returns: SalNumber.

ArraySort(hArray, nSortOrder, nDataType)

nNumItems VisArraySort( hArray, nSortOrder, nDataType )

Parameter
Type
Description

hArray

nSortOrder

nDataType

Returns: SalNumber.

DosBuildFullName(sModuleName, sFileName)

Composes a full path by combining the current directory and the specified file name.

Parameter
Type
Description

sModuleName

sFileName

Returns: SalString.

DosEnumDirInfo(sDirSpec, sDirs, dtDateTimes, nAttributes)

Returns information about the directories selected using the specified wild card.

Parameter
Type
Description

Returns: SalNumber.

DosEnumDirs(sDirSpec, sDirs)

Enumerates all the directories using the specified wild card.

Parameter
Type
Description

Returns: SalNumber.

DosEnumDrives(sDrives)

Enumerates all the logical drives.

Parameter
Type
Description

Returns: SalNumber.

DosEnumFileInfo(sFileSpec, nAttribute, sFiles, nSizes, dtDateTimes, nAttributes)

Returns information for the files selected using the specified wild card.

Parameter
Type
Description

Returns: SalNumber.

DosEnumFiles(sFileSpec, nAttributes, sFiles)

Enumerates all the files using the specified wildcard.

Parameter
Type
Description

sFileSpec

nAttributes

Returns: SalNumber.

DosEnumNetConnections(sDevices, sNetNames)

Enumerates all the network connections.

Parameter
Type
Description

Returns: SalNumber.

DosEnumPath(sDirs)

Enumerates all the paths in the PATH environment variable.

Parameter
Type
Description

Returns: SalNumber.

DosExist(sFileSpec)

Checks if the specified directory exists.

Parameter
Type
Description

sFileSpec

Returns: SalBoolean.

DosGetCurDir(sDrive)

Returns the current directory.

Parameter
Type
Description

sDrive

Returns: SalString.

DosGetDriveSize(sDrive, nTotalSpace, nFreeSpace)

Parameter
Type
Description

sDrive

nTotalSpace

nFreeSpace

Returns: SalNumber.

DosGetDriveType(sDrive)

Returns the type of the specified drive.

Parameter
Type
Description

sDrive

Returns: SalNumber.

DosGetEnvString(sKeyName)

sEnvString VisDosGetEnvString (sKeyName)

Parameter
Type
Description

sKeyName

Returns: SalString.

DosGetFlags()

Deprecated: nFlags VisDosGetFlags ()

Returns: SalNumber.

DosGetNetName(sDevice)

Retrieves the name of the network resource associated with a local device.

Parameter
Type
Description

sDevice

Returns: SalString.

DosGetVersion()

bVersionNumber VisDosGetVersion( )

Returns: SalNumber.

DosGetVolumeLabel(sDrive)

Returns the volume label of the specified drive.

Parameter
Type
Description

sDrive

Returns: SalString.

DosIsParent(sDirSpec)

bOk VisDosIsParent (sDirSpec)

Parameter
Type
Description

sDirSpec

Returns: SalBoolean.

DosMakeAllDir(sDir)

nErrCode VisDosMakeAllDir( sDir )

Parameter
Type
Description

Returns: SalNumber.

DosMakePath(sDrive, sDir, sBase, sExt)

sFileSpec VisDosMakePath (sDrive, sDir, sBase, sExt)

Parameter
Type
Description

Returns: SalString.

DosNetConnect(sDevice, sNetName, sPassword)

Makes a connection to a network resource.

Parameter
Type
Description

sDevice

sNetName

sPassword

Returns: SalNumber.

DosNetDisconnect(sDevice, bForce)

nErrCode VisDosNetDisconnect( sDevice, bForce )

Parameter
Type
Description

sDevice

Returns: SalNumber.

DosSetFlags(nFlags, bState)

Deprecated: Not supported.

Parameter
Type
Description

Returns: SalNumber.

DosSetVolumeLabel(sDrive, sLabel)

Sets the label of a file system volume.

Parameter
Type
Description

sDrive

sLabel

Returns: SalNumber.

DosSplitPath(sFileSpec, sDrive, sDir, sBase, sExt)

Parameter
Type
Description

Returns: SalNumber.

ErrorRecovery(sCaption)

Displays an error message and allows user to retry the operation or halt the application.

Parameter
Type
Description

sCaption

Returns: SalNumber.

FileAppend(sSourceFile, sTargetFile)

File functions nErrCode VisFileAppend( sSourceFile, sTargetFile )

Parameter
Type
Description

sSourceFile

sTargetFile

Returns: SalNumber.

FileClose(hFile)

nErrCode VisFileClose( hFile )

Parameter
Type
Description

Returns: SalNumber.

FileCopy(sSourceFile, sTargetFile)

nErrCode VisFileCopy( sSourceFile, sTargetFile )

Parameter
Type
Description

sSourceFile

sTargetFile

Returns: SalNumber.

FileCreateTemp(sPrefix)

sTempName VisDosGetTempFileName( sPrefix )

Parameter
Type
Description

sPrefix

Returns: SalString.

FileDelete(sFileName)

nNumDeleted VisFileDelete( sFileName )

Parameter
Type
Description

sFileName

Returns: SalNumber.

FileExpand(sSourceFile, sTargetFile)

Deprecated: Copies a compressed source file to a destination file.

Parameter
Type
Description

sSourceFile

sTargetFile

Returns: SalNumber.

FileFind(sFileName)

SalString VisFileFind (sFileName)

Parameter
Type
Description

sFileName

Returns: SalString.

FileGetAttribute(sFileName)

nAttribute VisFileGetAttribute( sFileName )

Parameter
Type
Description

sFileName

Returns: SalNumber.

FileGetSize(sFileName)

nFileSize VisFileGetSize( sFileName )

Parameter
Type
Description

sFileName

Returns: SalNumber.

FileGetType(sFileName)

nFileType VisFileGetType( sFileName )

Parameter
Type
Description

sFileName

Returns: SalNumber.

FileOpen(hFile, sFileName, nFlags)

Parameter
Type
Description

Returns: SalNumber.

FileRead(hFile, sBuffer, nSize)

Parameter
Type
Description

Returns: SalNumber.

FileReadString(hFile, sLine)

Parameter
Type
Description

Returns: SalNumber.

FileRename(sSourceFile, sTargetFile)

Renames one or more files. Wild card characters are supported in both the source and target file names. If the source and target directories are different but the file names are the same, the files are moved to the target directory specified.

Parameter
Type
Description

sSourceFile

sTargetFile

Returns: SalNumber.

FileSeek(hFile, nOffset, nOrigin)

nErrCode VisFileSeek( hFile, nOffset, nOrigin )

Parameter
Type
Description

Returns: SalNumber.

FileSetAttribute(sFileName, nAttributes, bState)

nErrCode VisFileSetAttribute( sFileName, nAttributes, bState )

Parameter
Type
Description

sFileName

nAttributes

Returns: SalNumber.

FileSetDateTime(sFileName, dtDateTime)

nErrCode VisFileSetDateTime( sFileName, dtDateTime )

Parameter
Type
Description

sFileName

dtDateTime

Returns: SalNumber.

FileTell(hFile)

nOffset VisFileTell( hFile )

Parameter
Type
Description

Returns: SalNumber.

FileWrite(hFile, sBuffer, nSize)

nErrCode VisFileWrite( hFile, sBuffer, nSize )

Parameter
Type
Description

Returns: SalNumber.

FileWriteString(hFile, sLine)

nErrCode VisFileWriteString( hFile, sLine )

Parameter
Type
Description

Returns: SalNumber.

FontEnum(nType, sNames, nTypes)

Enumerates all the installed fonts.

Parameter
Type
Description

Returns: SalNumber.

FontFree(hFont)

Release the font handle.

Parameter
Type
Description

Returns: SalBoolean.

FontGet(hFont, sFaceName, nPointSize, nFontFlags)

Parameter
Type
Description

sFaceName

nPointSize

nFontFlags

Returns: SalBoolean.

FontLoad(sFaceName, nPointSize, nEnhFlags)

Loads the specified font.

Parameter
Type
Description

sFaceName

nPointSize

nEnhFlags

Returns: SalNumber.

GetCommonDir(ctrl, nIndex)

Retrieves the current directory of a common dialog listbox or combobox.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalString.

GetCopyright()

Retrieves a copyright string.

Returns: SalString.

GetKeyState(virtKey)

Retrieves the state of a specified key.

Parameter
Type
Description

virtKey

Virtual key code to check.

Returns: SalNumber. The return value specifies the status of the specified virtual key, as follows: If the high-order bit is 1, the key is down; otherwise, it is up. If the low-order bit is 1, the key is toggled.A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0.

GetVersion()

sVersion VisGetVersion( )

Returns: SalString.

GetWinVersion()

nVersion VisGetWinVersion( )

Returns: SalNumber.

ListAddColor(ctrl, sText, nColor)

Adds an item to the list and displays it in the specified color.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nColor

Returns: SalNumber.

ListAddColorValue(ctrl, sText, nColor, nValue)

Adds an item to the list, displays it in the specified color and associates the specified value with the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nColor

nValue

Returns: SalNumber.

ListAddFont(ctrl, sText, hFont)

Adds an item to the list control and displays it in the specified font.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListAddFontValue(ctrl, sText, hFont, nValue)

Adds an item to the list control, displays it in the specified font and associates the specified value to the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nValue

Returns: SalNumber.

ListAddPicture(ctrl, sText, hPicNormal, hPicSelected)

Adds an item to the list control and specified an image for the normal and selected state.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

hPicNormal

hPicSelected

Returns: SalNumber.

ListAddPictureValue(ctrl, sText, hPicNormal, hPicSelected, nValue)

Adds an item to the list control and specified an image for the normal and selected state, and a value to associate with the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

hPicNormal

hPicSelected

nValue

Returns: SalNumber.

ListAddValue(ctrl, sText, nValue)

Adds an item to a sorted list box or combo box and associates the specified value with the item.

Parameter
Type
Description

Returns: SalNumber.

ListArrayPopulate(ctrl, sTexts)

Populates a list box from a string array.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListArrayPopulateValue(ctrl, sTexts, nValues)

Populates a list box from a string and a value array.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListClearSelection(ctrl)

Unselects all selected items in a list box or combo box.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

ListCollapse(ctrl, nIndex)

Collapses all descendant items.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalBoolean.

ListDeleteChild(ctrl, nIndex)

Deletes the child item from the tree control.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListDeleteDescendents(ctrl, nIndex)

Deletes all descendants (children, grandchildren, and so on) of the specified child.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListDeleteSelected(ctrl)

Deletes all selected items from a list box or combo box.

Parameter
Type
Description

Returns: SalNumber.

ListDemote(ctrl, nIndex, hPicNormal, hPicSelect)

Moves an item and all descendants of the item right in the outline.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

hPicNormal

hPicSelect

Returns: SalBoolean.

ListDisableItem(ctrl, nIndex, nColor)

Parameter
Type
Description

Returns: SalNumber.

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

Implements drag and drop

Parameter
Type
Description

ctrl

Target control on which to execute the call.

sourceIndex

targetCtrl

targetIndex

dropFlags

Returns: SalBoolean.

ListEnableItem(ctrl, nIndex, nColor)

Enables the specified item and sets the specified color.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nColor

Returns: SalNumber.

ListEnumChildren(item, items)

Enumerates child item handles for a specified item.

Parameter
Type
Description

Returns: SalNumber.

ListEnumDescendents(item, items)

Enumerates descendant (children, grandchildren, and so on) item handles for a specified item.

Parameter
Type
Description

Returns: SalNumber.

ListExpand(ctrl, index)

Expands an outline one level at the index specified.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListExpandDescendents(ctrl, index)

Displays all descendants of an item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

ListFindItemValue(item, value)

Parameter
Type
Description

Returns: SalNumber.

ListFindString(ctrl, nStartIndex, sText)

Finds the first string that matches the specified text in a list box or combo box. The search is not case sensitive but requires an exact match of all characters.

Parameter
Type
Description

nStartIndex

Returns: SalNumber.

ListFindValue(ctrl, nStartIndex, nValue)

Finds the first value that matches the specified value in a list box or combo box.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nStartIndex

nValue

Returns: SalNumber.

ListFreeChild(item)

Frees memory for the item specified and for all its descendants.

Parameter
Type
Description

Returns: SalBoolean.

ListFreeDescendents(item)

Frees memory for all descendants of the item specified.

Parameter
Type
Description

Returns: SalBoolean.

ListGetColor(ctrl, nIndex)

Returns the current color of the list item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListGetDropdownState(ctrl)

Determines whether the list box portion of a combo box is visible.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

ListGetFlags(ctrl, nIndex)

Returns the ITEM_* flags for the specified list item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListGetFocusIndex(ctrl)

Gets the index of the item which has the focus rectangle or the last item to receive the focus frame in a multiple-selection list box.

Parameter
Type
Description

Returns: SalNumber.

ListGetFont(ctrl, nIndex)

Returns the current font of the list control item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListGetItemColor(item)

Retrieves the color associated with an outline item.

Parameter
Type
Description

Returns: SalNumber.

ListGetItemData(item, sText, nValue, nItemFlags)

Parameter
Type
Description

Returns: SalBoolean.

ListGetItemFlags(item)

Gets item flags

Parameter
Type
Description

Returns: SalNumber.

ListGetItemFont(item)

Retrieves the font associated with an outline item.

Parameter
Type
Description

Returns: SalNumber.

ListGetItemHandle(ctrl, index)

Retrieves the item handle based on an index specified.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListGetItemIndex(item)

Returns the index of the specified outline item.

Parameter
Type
Description

Returns: SalNumber.

ListGetItemPicture(item, hPicNormal, hPicSelect)

Parameter
Type
Description

hPicNormal

hPicSelect

Returns: SalBoolean.

ListGetItemText(item)

Returns the text for the outline item.

Parameter
Type
Description

Returns: SalString.

ListGetItemValue(item)

Returns the value saved with the outline item.

Parameter
Type
Description

Returns: SalNumber.

ListGetLevel(item)

Returns the level number for an outline item.

Parameter
Type
Description

Returns: SalNumber.

ListGetNextSibling(item)

Retrieves the item handle for the next sibling of the specified item.

Parameter
Type
Description

Returns: SalNumber.

ListGetParent(item)

Retrieves the item handle for the parent of the specified item.

Parameter
Type
Description

Returns: SalNumber.

ListGetPicture(ctrl, nIndex, hPicNormal, hPicSelected)

Parameter
Type
Description

nIndex

hPicNormal

hPicSelected

Returns: SalNumber.

ListGetPrevSibling(item)

Retrieves the item handle for the previous sibling of the specified item.

Parameter
Type
Description

Returns: SalNumber.

ListGetRoot(ctrl)

Returns the handle for the root node.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListGetStyle(ctrl)

Returns the LBS_* style for the specified control.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListGetText(ctrl, nIndex)

Returns the text of the list item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalString.

ListGetValue(ctrl, nIndex)

Returns the value associated to the list item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListInsertColor(ctrl, nIndex, sText, nColor)

Inserts an item to the list control at the specified position and displays it in the specified color.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nColor

Returns: SalNumber.

ListInsertColorValue(ctrl, nIndex, sText, nColor, nValue)

Inserts an item to the list control at the specified position, displays it in the specified color and associates the specified value to the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nColor

nValue

Returns: SalNumber.

ListInsertFont(ctrl, nIndex, sText, hFont)

Adds an item to a list control at the specified index and displays it in the specified font.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListInsertFontValue(ctrl, nIndex, sText, hFont, nValue)

Adds an item to the list control, displays it in the specified font, and associates the specified value with the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nValue

Returns: SalNumber.

ListInsertPicture(ctrl, nIndex, sText, hPicNormal, hPicSelected)

Inserts an item at the specified position and specifies an image for the normal and selected state.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

hPicNormal

hPicSelected

Returns: SalNumber.

ListInsertPictureValue(ctrl, nIndex, sText, hPicNormal, hPicSelected, nValue)

Inserts an item at the specified position and specifies an image for the normal and selected state, and associates a value to the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

hPicNormal

hPicSelected

nValue

Returns: SalNumber.

ListInsertValue(ctrl, nIndex, sText, nValue)

Inserts an item into an unsorted list box or combo box and associates the specified value with the item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nValue

Returns: SalNumber.

ListIsMultiSelect(ctrl)

Returns true if the listbox is multiselect.

Parameter
Type
Description

Returns: SalBoolean.

ListLoadChild(ctrl, hItemParent, hPicNormal, hPicSelect, sText, nValue, nItemFlags)

Inserts an item as the last child of the specified parent.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

hItemParent

hPicNormal

hPicSelect

nValue

nItemFlags

Returns: SalNumber.

ListLoadChildren(ctrl, hItemParent, hPicNormal, hPicSelected, sTexts, nValues, nItemFlags)

hItem VisListLoadChildren( hWnd, hItemParent, hPicNormal, hPicSelect, sText[], nValue[], nItemFlags[*] )

Parameter
Type
Description

Returns: SalNumber.

ListLoadOutline(ctrl, sBlob)

hItem VisListLoadOutline( hWnd, sBlob )

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ListLoadOutlineFile(ctrl, sFileName, hPicParentNormal, hPicParentSelect, hPicChildNormal, hPicChildSelect)

hItem VisListLoadOutlineFile( hWnd, sFileName, hPicParentNormal, hPicParentSelect, hPicChildNormal, hPicChildSelect )

Parameter
Type
Description

ctrl

Target control on which to execute the call.

sFileName

hPicParentNormal

hPicParentSelect

hPicChildNormal

hPicChildSelect

Returns: SalNumber.

ListLoadSibling(ctrl, hItemBefore, hPicNormal, hPicSelect, sText, nValue, nItemFlags)

hItem VisListLoadSibling( hWnd, hItemBefore, hPicNormal, hPicSelect, sText, nValue, nItemFlags )

Parameter
Type
Description

ctrl

Target control on which to execute the call.

hItemBefore

hPicNormal

hPicSelect

nValue

nItemFlags

Returns: SalNumber.

ListMoveDown(ctrl, nIndex)

bOk VisListMoveDown( hWnd, nIndex )

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalBoolean.

ListMoveUp(ctrl, nIndex)

bOk VisListMoveUp( hWnd, nIndex )

Parameter
Type
Description

Returns: SalBoolean.

ListPromote(ctrl, nIndex, hPicNormal, hPicSelect)

bOk VisListPromote( hWnd, nIndex, hpicNormal, hpicSelect )

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

hPicNormal

hPicSelect

Returns: SalBoolean.

ListSaveOutline(ctrl, sBlob)

Parameter
Type
Description

Returns: SalNumber.

ListScroll(ctrl, nIndex)

Scrolls an item into view.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListSetColor(ctrl, nIndex, nColor)

Sets the color of a list item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nColor

Returns: SalBoolean.

ListSetDropdownState(ctrl, bState)

Shows or hides the list box portion of a combo box.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

ListSetFlags(ctrl, nIndex, nItemFlags, bState)

Sets the ITEM_* flags for the specified list item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nItemFlags

Returns: SalNumber.

ListSetFocusIndex(ctrl, nIndex)

Sets the focus rectangle to the item at the specified index in a multiple-selection list box. If the item is not visible, it is scrolled into view.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListSetFont(ctrl, nIndex, hFont)

Sets the font of the list control item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalBoolean.

ListSetItemColor(item, nColor)

Sets the color of the outline item.

Parameter
Type
Description

Returns: SalBoolean.

ListSetItemData(ctrl, item, sText, nValue, nItemFlags)

Updates the specified item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nValue

nItemFlags

Returns: SalNumber.

ListSetItemFlags(item, nItemFlags, bState)

bOk VisListSetItemFlags( item, nItemFlags, bState )

Parameter
Type
Description

nItemFlags

Returns: SalBoolean.

ListSetItemFont(item, hFont)

Sets the font of the outline item.

Parameter
Type
Description

Returns: SalBoolean.

ListSetItemPicture(item, hPicNormal, hPicSelect)

Sets the picture of a list item

Parameter
Type
Description

hPicNormal

hPicSelect

Returns: SalBoolean.

ListSetItemText(item, sText)

Sets the text of the outline item.

Parameter
Type
Description

Returns: SalBoolean.

ListSetItemValue(item, nValue)

Sets the value associated to the outline item.

Parameter
Type
Description

Returns: SalBoolean.

ListSetOutlineRedraw(ctrl, bRedraw)

bOk VisListSetOutlineRedraw

Parameter
Type
Description

Returns: SalBoolean.

ListSetPicture(ctrl, nIndex, hPicNormal, hPicSelected)

Changes the normal and selected images for the specified item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

hPicNormal

hPicSelected

Returns: SalBoolean.

ListSetScrollWidth(ctrl, nIndex)

Sets the width by which a list box can be scrolled horizontally.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListSetStyle(ctrl, nStyle, lParam)

Sets the LBS_* style of the specified control.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nStyle

lParam

Returns: SalBoolean.

ListSetText(ctrl, nIndex, sText)

Changes the text of the list item at the specified index.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalNumber.

ListSetValue(ctrl, nIndex, nValue)

Changes the value of the list item at the specified index.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

nValue

Returns: SalNumber.

ListShowOutline(ctrl, nLevel)

Expands list items up to the specified level.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nLevel

Returns: SalBoolean.

Checks the menu.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Removes the menu at the requested position.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Disables the menu.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Enables the menu.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Returns the number of items in the specified menu.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

Returns the handle of the main menu of the specified form.

Parameter
Type
Description

Returns: SalNumber.

Retrieves the menu handle of a pop-up menu.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

Deprecated: Not supported.

Parameter
Type
Description

Returns: SalNumber.

Retrieves the text of a menu item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalString.

Inserts a menu item into a menu.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nFlags

Returns: SalNumber.

Inserts a menu item into a menu and displays it in the specified font.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

Inserts a menu item into a menu and displays the specified picture with it.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

hPicNormal

hPicSelected

Returns: SalNumber.

Returns true if the menu is checked.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Returns true if the menu is enabled.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Changes the font of a menu item created using the PPJ.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Displays a picture in a menu item created using the PPJ runtime.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

hPicNormal

hPicSelected

Returns: SalBoolean.

Changes the text of a menu item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

Unchecks a menu item.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBoolean.

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

Displays a message box with user defined buttons.

Parameter
Type
Description

sMsgText

Text to display in the MessageBox/

sCaption

Title of the MessageBox.

hPicIcon

Handle of the icon to display in the MessageBox.

hBtnHandles

List of MessageBox buttons created using MessageLoadButton.

nNumButtons

Number of MessageBox buttons in hBtnHandles .

Returns: SalNumber.

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

Displays a message box with user defined buttons.

Parameter
Type
Description

sMsgText

Text to display in the MessageBox/

sCaption

Title of the MessageBox.

hPicIcon

Handle of the icon to display in the MessageBox.

hBtnHandles

List of MessageBox buttons created using MessageLoadButton.

nNumButtons

Number of MessageBox buttons in hBtnHandles .

nDefButtonIndex

Index of the default button in hBtnHandles .

Returns: SalNumber.

MessageFreeButton(hBtn)

Frees the previously created MessageBox button.

Parameter
Type
Description

hBtn

Handle of the MessageBox button to free.

Returns: SalBoolean.

MessageLoadButton(sLabel, nReturn)

Creates a button to be used in the MessageBox.

Parameter
Type
Description

sLabel

Text of the MessageBox button.

nReturn

ID of the MessageBox button returned by MessageBox.

Returns: SalNumber.

NumberBitClear(nValue, nBitMask)

Parameter
Type
Description

nBitMask

Returns: SalNumber.

NumberBitSet(nValue, nBitMask)

Parameter
Type
Description

nBitMask

Returns: SalNumber.

NumberChoose(bExpression, nTrue, nFalse)

nReturn VisNumberChoose( bExpression, nTrue, nFalse )

Parameter
Type
Description

bExpression

nFalse

Returns: SalNumber.

NumberHighByte(nNumber)

nHighByte VisNumberHighByte( nNumber )

Parameter
Type
Description

nNumber

Returns: SalNumber.

NumberLowByte(nNumber)

nLowByte VisNumberLowByte( nNumber )

Parameter
Type
Description

nNumber

Returns: SalNumber.

NumberMakeLong(nLowWord, nHighWord)

nLong VisNumberMakeLong( nLowWord, nHighWord )

Parameter
Type
Description

nLowWord

nHighWord

Returns: SalNumber.

PicFree(hPic)

Removes a picture and frees it's memory.

Parameter
Type
Description

Returns: SalNumber.

PicLoad(flags, resource, imageName)

Loads a picture into memory from a resource DLL/EXE, image file (.BMP or .ICO), SalResource or string.

Parameter
Type
Description

resource

imageName

Returns: SalNumber.

PopulateCommonDir(ctrl, sDirectory)

Adds all directories to a listbox or combobox.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

sDirectory

Returns: SalNumber.

PopulateDirTree(ctrl, sDirectory)

Populates the tree control with the specified directories.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

sDirectory

Returns: SalNumber.

PopulateDrives(ctrl)

Adds all available drives to a listbox or combobox.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

PopulateFontNames(ctrl, nType)

Populates the control with the names of all the fonts.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalNumber.

ProfileDelete(sFileName, sSection, sEntry)

Deletes an entire section or a specific key from the specified ini file.

Parameter
Type
Description

sFileName

sSection

sEntry

Returns: SalBoolean.

ProfileEnumStrings(sFileName, sSection, sStrings)

Retrieves all the keys for the specified section of an initialization file.

Parameter
Type
Description

sFileName

sSection

Returns: SalNumber.

SetCommonDir(ctrl, nIndex)

Changes the current directory of a common dialog listbox or combobox.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

nIndex

Returns: SalString.

StrChoose(bExpression, sTrue, sFalse)

sReturn VisStrChoose( bExpression, sTrue, sFalse )

Parameter
Type
Description

bExpression

sFalse

Returns: SalString.

StrExpand(sTemplate, hArray)

sReturn VisStrExpand( sTemplate, hArray )

Parameter
Type
Description

sTemplate

hArray

Returns: SalString.

StrFind(hTable, sKey)

VisStrFind looks up a Key in the string table identified by Handle and returns the value

Parameter
Type
Description

hTable

A handle to the string table (returned by VisStrLoadTable()

sKey

The key to look up in the string table

Returns: SalString. Returns the value or an empty string if key was not found

StrFreeTable(hTable)

bOk VisStrFreeTable( hTable )

Parameter
Type
Description

hTable

Returns: SalBoolean.

StrLeftTrim(sSource)

sReturn VisStrLeftTrim( sSource )

Parameter
Type
Description

sSource

Returns: SalString.

StrLoadTable(sFilename)

VisStrLoadTable loads the lines from a text file and returns a handle to it.

Parameter
Type
Description

sFilename

The name of the text file to be loaded

Returns: SalNumber. Returns a handle to the string table for later use with VisStrFind and VisStrFreeTable

Once a table is loaded, VisStrFindTable() can be used to access the values via key. The text file must contain lines following the syntax {Key}Value. Example:


{Error.User}User unknown
{Error.Password}Incorrect password
{Version}Version 1.4.7

StrPad(sSource, nSize)

sReturn VisStrPad( sSource, nSize )

Parameter
Type
Description

sSource

Returns: SalString.

StrProper(sSource)

sReturn VisStrProper( sSource )

Parameter
Type
Description

sSource

Returns: SalString.

StrRightTrim(sSource)

sReturn VisStrRightTrim( sSource )

Parameter
Type
Description

sSource

Returns: SalString.

StrScanReverse(sSource, nPos, sSearch)

nPos VisStrScanReverse( sSource, nPos, sSearch )

Parameter
Type
Description

sSource

sSearch

Returns: SalNumber.

StrSubstitute(sSource, sSearch, sReplace)

sReturn VisStrSubstitute( sSource, sSearch, sReplace )

Parameter
Type
Description

sSource

sSearch

sReplace

Returns: SalString.

StrTrim(sSource)

sReturn VisStrTrim( sSource )

Parameter
Type
Description

sSource

Returns: SalString.

TblAllRows(table, nFlagsOn, nFlagsOff)

Determines whether any rows in the specified table window match certain flags.

Parameter
Type
Description

table

nFlagsOn

nFlagsOff

Returns: SalBoolean.

TblAutoSizeColumn(table, column)

Performs a best fit on the display contents of a specific column.

Parameter
Type
Description

table

column

Returns: SalBoolean.

TblClearColumnSelection(table)

Parameter
Type
Description

table

Returns: SalBoolean.

TblFindDateTime(table, row, column, date)

Finds a DateTime in the table control.

Parameter
Type
Description

Returns: SalNumber.

TblFindNumber(table, row, column, number)

Finds a number in the table control.

Parameter
Type
Description

Returns: SalNumber.

TblFindString(table, row, column, pattern)

Finds a string in the table control.

Parameter
Type
Description

Returns: SalNumber.

TblGetCell(table, nRow, column)

Retrieves the contents of a cell in a table window.

Parameter
Type
Description

Returns: SalString.

TblGetColumnTitle(column)

Retrieves the contents of a column heading.

Parameter
Type
Description

column

Returns: SalString.

TblSetRowColor(table, nRow, nColor)

Sets the text color for an entire row of a table window.

Parameter
Type
Description

Returns: SalBoolean.

TblSetRowPicture(table, rowFlags, handle)

Sets the picture for a bit flag of a table window.

Parameter
Type
Description

table

The table window control to assign the custom image to.

rowFlags

Row flags that enable the specified image.

handle

The image handle to assign to the combination of row flags.

Returns: SalBoolean.

TblSetRowPicture(table, rowFlags, image)

Sets the picture for a bit flag of a table window.

Parameter
Type
Description

table

The table window control to assign the custom image to.

rowFlags

Row flags that enable the specified image.

image

The image to assign to the combination of row flags.

Returns: SalBoolean.

TblSetRowPicture(table, rowFlags, imageSource)

Sets the picture for a bit flag of a table window.

Parameter
Type
Description

table

The table window control to assign the custom image to.

rowFlags

Row flags that enable the specified image.

imageSource

The image source to assign to the combination of row flags.

Returns: SalBoolean.

WaitCursor(nFlags)

Turns hourglass cursor on or off.

Parameter
Type
Description

nFlags

Returns: SalNumber.

WinClearAllEditFlags(parent)

Clears the field edit flags for each data field or multi-line text field of a parent window.

Parameter
Type
Description

parent

Returns: SalNumber.

WinClearAllFields(parent)

nNumCleared VisWinClearAllFields( hWndParent )

Parameter
Type
Description

parent

Returns: SalNumber.

WinFreeAccelerator(hAccel)

Removes the accelerator.

Parameter
Type
Description

hAccel

Returns: SalBoolean.

WinGetFlags(hWnd)

Gets windows flags

Parameter
Type
Description

Returns: SalNumber.

WinGetHandle(ctrl, sText, nType)

Obtains the control of the requested type and text.

Parameter
Type
Description

Returns: SalWindowHandle.

WinGetProp(hWnd, propName)

Gets a windows property by name

Parameter
Type
Description

Returns: SalNumber.

WinGetStyle(hWnd)

Retrieves the Windows style bits for a specified window.

Parameter
Type
Description

Returns: SalNumber.

WinGetText(ctrl)

Obtains the text of a window.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalString.

WinIsChild(hWndParent, hWndChild)

Tests whether a specified window is a child or direct descendant of a parent window.

Parameter
Type
Description

Returns: SalBoolean.

WinIsMaximized(hWnd)

Determines whether a window is maximized.

Parameter
Type
Description

Returns: SalBoolean.

WinIsMinimized(hWnd)

Determines whether the specified window is minimized (iconic).

Parameter
Type
Description

Returns: SalBoolean.

WinIsRequiredFieldNull(parent)

Returns the first required field that is empty.

Parameter
Type
Description

parent

Returns: SalWindowHandle.

WinIsRestored(hWnd)

Determines whether the specified window is in the normal state.

Parameter
Type
Description

Returns: SalBoolean.

WinIsWindow(hWnd)

Determines whether the specified window handle identifies an existing window.

Parameter
Type
Description

Returns: SalBoolean.

WinLoadAccelerator(target, nMessage, nKeyState, nKey, nID)

Sets an accelerator keystroke for a window.

Parameter
Type
Description

target

nMessage

nKeyState

Returns: SalNumber.

WinMove(hWnd, nLeft, nTop, nWidht, nHeight)

Moves and resizes a window, based on pixel coordinates.

Parameter
Type
Description

Returns: SalBoolean.

WinSetFlags(hWnd, winFlags, state)

Set windows flags

Parameter
Type
Description

Returns: SalBoolean.

WinSetProp(hWnd, propName, propValue)

Set windows property

Parameter
Type
Description

Returns: SalBoolean.

WinSetStyle(hWnd, style, state)

Adds/Removes a window style to a window.

Parameter
Type
Description

Returns: SalBoolean.

WinSetTabOrder(ctrl, ctrlAfter)

Changes the tab order of a control.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

ctrlAfter

Returns: SalBoolean.

WinShow(ctrl, nShowCmd)

bOk VisWinShow( hWnd, nShowCmd )

Parameter
Type
Description

nShowCmd

Returns: SalBoolean.

Last updated