XSal

PPJ.Runtime.XSal.XSal

Namespace: PPJ.Runtime.XSal

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

XSal functions.

public class XSal

Fields

Name
Type
Description

SAM_HotSpotClick

The form, dialog or MDI receive this message when the user clicks the left mouse button on the hotspot. wParam = HotSpot ID lParam = Mouse position

SAM_HotSpotMouseMove

The form, dialog or MDI receive this message when the user moves the mouse on the hotspot. wParam = HotSpot ID if the mouse is entering the hotspot or NULL if the mouse is leaving the hotspot. lParam = Mouse position

SAM_ToolboxSetPosition

The toolbox receives this message when it's orientation and position are being changed. This allows the program to change some visual aspect of the toolbox. wParam = The new orientation flag lParam = not used

SAM_ToolboxUpdateMenu

Send to the form that owns the toolbars. The app can modify the popup menu before it's displayed by processing this event. The menu object can be accessed using the form's ContextMenu property or VT menu functions using wParam for the menu handle. wParam = Handle for the menu lParam = not used.

SAM_TooltipClose

Sent to the control with the tooltip when the tooltip is destroyed.

SAM_TooltipSetText

Sent to the control under the mouse to show the tooltip.

Methods

GetClientWindow(form)

Returns the client area of a form with the accessories enabled.

Parameter
Type
Description

Returns: SalWindowHandlearrow-up-right.

GetWindowHotSpot(ctrl, id, x, y, width, height)

Returns: SalBooleanarrow-up-right.

GZipClose(Param1)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

GZipEof(Param1)

BOOL XSalGZipEof( gzFile p_File )

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

GZipFlush(Param1)

BOOL XSalGZipFlush( gzFile p_File )

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

GZipGetChar(Param1)

CHAR XSalGZipGetStr( gzFile p_File )

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

GZipGetError(Param1, Param2)

Parameter
Type
Description

Returns: SalStringarrow-up-right.

GZipGetStr(Param1, Param2, Param3)

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

GZipOpen(Param1, Param2, Param3)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

GZipPutChar(Param1, Param2)

BOOL XSalGZipPutChar( gzFile p_File, CHAR p_cChar )

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

GZipPutStr(Param1, Param2)

INT XSalGZipPutStr( gzFile p_File, LPSTR p_lpBufferOut )

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

GZipRead(Param1, Param2, Param3)

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

GZipRewind(Param1)

BOOL XSalGZipRewind( gzFile p_File )

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

GZipSeek(Param1, Param2, Param3)

LONG XSalGZipSeek( gzFile p_File, LONG p_lOffset, INT p_iWhence )

Returns: SalNumberarrow-up-right.

GZipTell(Param1)

LONG XSalGZipTell( gzFile p_File )

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

GZipWrite(Param1, Param2, Param3)

LONG XSalGZipWrite( gzFile p_File, LPVOID p_lpBufferOut, LONG p_lSize )

Returns: SalNumberarrow-up-right.

ScriptAddLine(handle, line)

Adds a line to the script and recompiles.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ScriptCreate(source)

Creates and compiles the script.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

ScriptFree(handle)

Frees the script.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ScriptGetErrors(handle, errorsList)

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

ScriptGetLocalName(handle, localName, varName)

Deprecated: Not supported.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ScriptRun(handle, result)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ScriptSetContext(handle, context)

Changes the execution context for the script object.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ScriptSetDebugMode(handle, debugOn)

Enables/Disables debug mode. When the debug mode is on, the exceptions generated by the interpreter are unhandled.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ScriptSetTimeout(handle, timeout)

Deprecated: Not supported. Not supported.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

SetWindowHotSpot(ctrl, id, x, y, width, height)

Creates a new hotspot are on the windows background. If the hotspot dimensions are 0,0,0,0 the specified hotspot ID is removed.

Returns: SalBooleanarrow-up-right.

SetWindowImageFile(ctrl, fileName, flags)

Sets the image to show as the background of the specified window.

Parameter
Type
Description

ctrl

Target control on which to execute the call.

Returns: SalBooleanarrow-up-right.

SplitGetBarPosition(split)

Returns the position of the splitter. If the splitter is proportional, the position is expressed as a percentage integer: 500 = 50%.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

SplitGetFrameChild(split, frame)

Returns the child control associated to the splitter's frames.

Returns: SalWindowHandlearrow-up-right.

SplitGetStyle(split)

Returns the styles of the splitter.

Parameter
Type
Description

Returns: SplitterStyles.

SplitSetBarPosition(split, pos)

Sets the position of the splitter. If the splitter is proportional, the position is expressed as a percentage integer: 500 = 50%.

Returns: SalBooleanarrow-up-right.

SplitSetBarSize(split, size)

Sets the size of the splitter.

Returns: SalBooleanarrow-up-right.

SplitSetFrameChild(split, child, frame)

Associates the child control to the splitter's frames.

Returns: SalBooleanarrow-up-right.

SplitSetMinMax(split, min, max)

Sets the minimum and maximum positions for the splitter.

Returns: SalBooleanarrow-up-right.

SplitSetStyle(split, Style, on)

Sets the style of the splitter.

Returns: SalBooleanarrow-up-right.

StrAny(text, chars)

Finds the first character in the string that appears in a given character set.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

StrCompare(source, compare, start, size, caseSensitive)

Compares a substring in a string.

Returns: SalBooleanarrow-up-right.

StrCompress(sIn, nLevel, sOut)

Returns: SalBooleanarrow-up-right.

StrCount(sText, sSearch, nStart, nLength, bLeft)

Counts the number of times a substring appears in a string.

Returns: SalNumberarrow-up-right.

StrFormat(text, mask)

Formats a string using a string mask.

Parameter
Type
Description

Returns: SalStringarrow-up-right.

StrFormatDateTime(date, format, language)

Returns: SalStringarrow-up-right.

StrFormatDateTimeX(date, format, days, shortDays, months, shortMonths)

Returns: SalStringarrow-up-right.

StrFromHex(hex)

Converts an hexadecimal text into a string.

Parameter
Type
Description

Returns: SalStringarrow-up-right.

StrGetCharAt(text, index)

Returns the character at the indicated position.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

StrGetFirstToken(list, separators)

Parameter
Type
Description

Returns: SalStringarrow-up-right.

StrGetNextToken()

Returns the next token string in a list.

Returns: SalStringarrow-up-right.

StrMetaphone(text)

Parameter
Type
Description

Returns: SalStringarrow-up-right.

StrNAny(text, chars)

Finds the first character in the string that does not appear in a given character set.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

StrScan(sText, search, nIndex)

Searches for a substring in the source string starting from the specified index.

Returns: SalNumberarrow-up-right.

StrScanR(sText, search, nIndex)

Searches for a substring in the source string starting from the specified index.

Returns: SalNumberarrow-up-right.

StrSetCharAt(text, index, character)

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

StrToHex(text)

Converts a string to an hexadecimal text.

Parameter
Type
Description

Returns: SalStringarrow-up-right.

StrToNumber(text)

Converts a string to a number, regardless of the decimal point.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

StrUncompress(sIn, sOut)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblCopyRows(table, flagsOn, flagsOff, copyFlags)

Copies the matching rows to the clipboard.

Returns: SalBooleanarrow-up-right.

TblCopyRowsToString(table, flagsOn, flagsOff, copyFlags, csvText)

Returns: SalBooleanarrow-up-right.

TblGetCellBackColor(column, color)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblGetCellBackColor(column)

Returns the background color set for a single cell.

Parameter
Type
Description

Returns: Colorarrow-up-right.

TblGetCellFont(column)

Returns the font associated with the specified table cell.

Parameter
Type
Description

Returns: Fontarrow-up-right.

TblGetCellImage(column, position)

Parameter
Type
Description

Returns: Imagearrow-up-right.

TblGetColHeaderFont(column)

Returns the font associated to the column header.

Parameter
Type
Description

Returns: Fontarrow-up-right.

TblGetColHeaderImage(column, image, position)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblGetColumnBackColor(column, color)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblGetColumnBackColor(column)

Returns the background color set for a table column.

Parameter
Type
Description

Returns: Colorarrow-up-right.

TblGetColumnFont(column)

Returns the font associated with the specified table column.

Parameter
Type
Description

Returns: Fontarrow-up-right.

TblGetRowBackColor(table, row, color)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblGetRowBackColor(table, row)

Returns the background color of the specified row.

Parameter
Type
Description

Returns: Colorarrow-up-right.

TblGetRowFont(table, nRow)

Returns the font used for the specified row.

Parameter
Type
Description

Returns: Fontarrow-up-right.

TblGetRowHeaderBackColor(table, row, color)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblGetRowHeaderBackColor(table, row)

Returns the background color of the specified row.

Parameter
Type
Description

Returns: Colorarrow-up-right.

TblPasteRows(table, copyFlags)

Pastes the CSV text from the clipboard.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblPasteRowsFromString(table, flags, csvText)

Pastes the specified CSV string into the table window control.

Returns: SalBooleanarrow-up-right.

TblSetCellBackColor(column, color)

Sets the background color of an individual cell.

Parameter
Type
Description

column

Target control on which to execute the call.

Returns: SalBooleanarrow-up-right.

TblSetCellBackColor(column, color)

Sets the background color of an individual cell.

Parameter
Type
Description

column

Target control on which to execute the call.

Returns: SalBooleanarrow-up-right.

TblSetCellFont(column, font)

Sets the font for a single cell.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetCellImage(column, image, flags)

Assigns an image to a table cell.

Returns: SalBooleanarrow-up-right.

TblSetCellImageFile(column, fileName, flags)

Assigns an image to a table cell.

Returns: SalBooleanarrow-up-right.

TblSetCellImageResource(column, name, flags)

Assigns an image to a table cell.

Returns: SalBooleanarrow-up-right.

TblSetCellImageString(column, imageBlob, flags)

Assigns an image to a table cell.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetColHeaderFont(column, font)

Assigns the specified font to the column header.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetColHeaderFontName(column, fontName, fontSize, fontStyle)

Creates the specified font and assigns it to the column header.

Returns: SalBooleanarrow-up-right.

TblSetColHeaderImage(column, image, flags)

Assigns the image from the handle to the specified column header.

Returns: SalBooleanarrow-up-right.

TblSetColHeaderImage(column, hImage, flags)

Assigns the image from the handle to the specified column header.

Returns: SalBooleanarrow-up-right.

TblSetColHeaderImageFile(column, fileName, flags)

Assigns the image file to the specified column header.

Returns: SalBooleanarrow-up-right.

TblSetColHeaderImageResource(column, resName, flags)

Assigns the image from the specified resource object to the column header.

Returns: SalBooleanarrow-up-right.

TblSetColHeaderImageString(column, imageBlob, flags)

Assigns the image from the blob string to the specified column header.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetColumnBackColor(column, color)

Sets the background color for a table column.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetColumnBackColor(column, color)

Sets the background color for a table column.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetColumnFont(column, font)

Sets the font for a table column.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetColumnFontName(column, fontName, fontSize, fontStyle)

Sets the font for the table column. The font is created using the specified arguments.

Returns: SalBooleanarrow-up-right.

TblSetColumnImage(column, image, flags)

Assigns an image to a table column.

Returns: SalBooleanarrow-up-right.

TblSetColumnImageFile(column, fileName, flags)

Assigns an image to the column.

Returns: SalBooleanarrow-up-right.

TblSetColumnImageResource(column, name, flags)

Assigns an image to the column.

Returns: SalBooleanarrow-up-right.

TblSetColumnImageString(column, sImage, flags)

Assigns an image to the column.

Returns: SalBooleanarrow-up-right.

TblSetDelimiters(colDelimiter, rowDelimiter)

Changes the standard column and row delimiters for the copy/paste operations.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

TblSetRowBackColor(table, row, color)

Sets the background color of a row.

Returns: SalBooleanarrow-up-right.

TblSetRowBackColor(table, row, color)

Sets the background color of a row.

Returns: SalBooleanarrow-up-right.

TblSetRowFont(table, row, font)

Sets the font for the entire row.

Returns: SalBooleanarrow-up-right.

TblSetRowFontName(table, row, fontName, fontSize, fontStyle)

Sets the font for the entire row.

Returns: SalBooleanarrow-up-right.

TblSetRowHeaderBackColor(table, row, color)

Sets the background color of the row header.

Returns: SalBooleanarrow-up-right.

TblSetRowHeaderBackColor(table, row, color)

Sets the background color of the row header.

Returns: SalBooleanarrow-up-right.

TblSetRowImage(table, row, image, flags)

Assigns an image to all the cells in the specified row,

Returns: SalBooleanarrow-up-right.

TblSetRowImageFile(table, row, fileName, flags)

Assigns an image to all the cells in the specified row.

Returns: SalBooleanarrow-up-right.

TblSetRowImageResource(table, row, resName, flags)

Assigns the image from the resource object to all the cells in the table row.

Returns: SalBooleanarrow-up-right.

TblSetRowImageString(table, row, imageBlob, flags)

Assigns an image to all the cells in the specified row.

Returns: SalBooleanarrow-up-right.

ToolboxCreate(parent, name, position, flags)

Creates the specified toolbox dialog.

Returns: SalWindowHandlearrow-up-right.

ToolboxDestroy(parent, name)

Closes the specified toolbox.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxGetPosition(parent, name)

Returns the position of the specified toolbox.

Parameter
Type
Description

Returns: ToolboxPositions.

ToolboxHide(parent, name)

Hides the specified toolbox.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxHideAll(parent)

Hides all the toolboxes.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxIsVisible(parent, name)

Tests the visibility of the specified toolbox.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxSetMetrics(value, type)

Sets metric values for the toolbars.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxSetMetrics(type)

Returns metric values for the toolbars.

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

ToolboxSetPosition(parent, name, position)

Changes the position of the specified toolbox.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxShow(parent, name)

Shows the specified toolbox.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ToolboxShowAll(parent)

Shows all the toolboxes.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvArrayDelete(Array, index)

Removes an element from the array.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvArrayInsert(Array, index)

Inserts a new element in the array.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvArrayMove(Array, sourceIndex, targetIndex)

Moves the element to the target index in the array.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvArraySort(Array, fieldName, dataType, sortOrder)

Sorts the objects in the array using the value in the variable specified in sFieldName.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvArraySwap(Array, index1, index2)

Swaps two object items in an array.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvClone(source, target)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvFromString(obj, source)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

UdvToString(obj, target)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipCloseArchive(zipFile)

Parameter
Type
Description

zipFile

Returns: SalBooleanarrow-up-right.

ZipCloseFile(zipFile)

Closes the currently open zip entry. It doesn't close the Zip archive, to close the archive you have to use XSalZipCloseArchive.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipCreateFile(zipFile, fileName, date, comment, compressionLevel)

Creates a file in the Zip archive and sets the newly created file as the currently open file.

Returns: SalBooleanarrow-up-right.

ZipFindFile(zipFile, fileName)

Returms the zip entry that matches the specified name.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipFindFirstFile(zipFile)

Positions the current zip entry to the first file in the archive.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipFindNextFile(zipFile)

Positions the current zip entry to the next file in the archive.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipGetFileInfo(zipFile, fileName, comment, date, compressedSize, uncompressedSize)

Parameter
Type
Description

fileName

comment

compressedSize

uncompressedSize

Returns: SalBooleanarrow-up-right.

ZipOpenArchive(zipFile, fileName, mode)

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipOpenFile(zipFile)

Opens the current zip entry for reading in the Zip archive. It must be used after XSalZipFindFile or XSalZipFindFirstFile, or XSalZipFindNextFile.

Parameter
Type
Description

Returns: SalBooleanarrow-up-right.

ZipRead(zipFile, content, count)

Parameter
Type
Description

Returns: SalNumberarrow-up-right.

ZipWrite(zipFile, buffer, length)

Writes the buffer to the currently open zip entry in the zip file.

Returns: SalBooleanarrow-up-right.

ZipWrite(zipFile, buffer, length)

Writes the buffer to the currently open zip entry in the zip file.

Returns: SalBooleanarrow-up-right.

Last updated