Skip to main content

XSal

Namespace: PPJ.Runtime.XSal

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

Provides XSal compatibility operations for tables, splitters, toolboxes, strings, scripts, and archive data.

public class XSal

Example:

SalString token = XSal.StrGetFirstToken("red,green,blue", ",");
while (!token.IsNull)
{
System.Console.WriteLine(token);
token = XSal.StrGetNextToken();
}

Fields

NameTypeDescriptionValue
SAM_DrawCellInt32Identifies the custom-cell drawing message; wParam indicates selection and lParam carries drawing information for TblGetCustomInfo.
SAM_HotSpotClickInt32Identifies a hot-spot click; wParam contains the hot-spot identifier and lParam the packed mouse position.
SAM_HotSpotMouseMoveInt32Identifies a hot-spot pointer transition; wParam carries the entering identifier or zero on leaving, and lParam the packed mouse position.
SAM_SwapRowsInt32Identifies a row swap during XSal sorting; wParam and lParam identify the swapped rows.
SAM_ToolboxSetPositionInt32Requests toolbox and child layout for the orientation in wParam: horizontal, vertical, or floating.
SAM_ToolboxUpdateMenuInt32Compatibility message identifier for updating a toolbox menu.
SAM_TooltipCloseInt32Identifies the XSal tooltip-close notification.
SAM_TooltipSetTextInt32Requests tooltip text from the control currently under the pointer.

Properties

Static member ToolTip

ToolTip: Gets the shared native tooltip component used by XSal.

Methods

Static member BitmapClose(hBitmap)

Deletes a native bitmap or other GDI object handle.

ParameterTypeDescription
hBitmapSalNumberThe native GDI handle to release.

Returns: SalBoolean. False for a zero handle; otherwise the DeleteObject result.

Static member BitmapCreateDisabled(Param1, Param2)

Provides an unsupported compatibility entry point for creating a disabled bitmap.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is not implemented.

Static member BitmapDraw(ctrl, hImage, x, y, width, height)

Draws a bitmap directly onto a control without color-key transparency.

ParameterTypeDescription
ctrlControlThe target control.
hImageSalNumberThe native bitmap handle.
xSalNumberThe left drawing coordinate in pixels.
ySalNumberThe top drawing coordinate in pixels.
widthSalNumberThe target width in pixels.
heightSalNumberThe target height in pixels.

Returns: SalBoolean. False for a zero bitmap handle or a disposing/disposed control; otherwise true after drawing.

When both dimensions are zero, the bitmap's natural size is used.

Static member BitmapDraw(ctrl, hImage, x, y, width, height, transparent)

Draws a bitmap directly onto a control with optional color-key transparency.

ParameterTypeDescription
ctrlControlThe target control.
hImageSalNumberThe native bitmap handle.
xSalNumberThe left drawing coordinate in pixels.
ySalNumberThe top drawing coordinate in pixels.
widthSalNumberThe target width in pixels.
heightSalNumberThe target height in pixels.
transparentSalBooleanTrue to use the top-left pixel color as transparent.

Returns: SalBoolean. False for a zero bitmap handle or a disposing/disposed control; otherwise true after drawing.

When both dimensions are zero, the bitmap's natural size is used. The drawing is immediate rather than retained for future repaints.

Static member BitmapDrawDC(Param1, Param2, Param3, Param4, Param5, Param6)

Provides an unsupported compatibility entry point for drawing a bitmap into a device context.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.
Param3SalNumberReserved for compatibility; ignored.
Param4SalNumberReserved for compatibility; ignored.
Param5SalNumberReserved for compatibility; ignored.
Param6SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member BitmapFromFile(fileName)

Creates a native bitmap handle from an image file.

ParameterTypeDescription
fileNameSalStringThe image-file path.

Returns: SalNumber. The native bitmap handle, or zero when loading fails.

Release a successful handle with BitmapClose.

Static member BitmapFromIcon(Param1, Param2)

Provides an unsupported compatibility entry point for creating a bitmap from an icon.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is not implemented.

Static member BitmapFromResource(resName)

Creates a native bitmap handle from an embedded bitmap resource.

ParameterTypeDescription
resNameSalStringThe embedded resource name.

Returns: SalNumber. The native bitmap handle, or zero when loading fails.

Release a successful handle with BitmapClose.

Static member BitmapFromString(bitmapBytes)

Creates a native bitmap handle from bitmap bytes in a SAL binary string.

ParameterTypeDescription
bitmapBytesSalStringThe binary bitmap data.

Returns: SalNumber. The native bitmap handle, or zero when loading fails.

Release a successful handle with BitmapClose.

Static member BitmapFromWindow(Param1, Param2)

Provides an unsupported compatibility entry point for capturing a window bitmap.

ParameterTypeDescription
Param1SalWindowHandleReserved for compatibility; ignored.
Param2SalBooleanReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is not implemented.

Static member BitmapToString(Param1, Param2)

Provides an unsupported compatibility entry point for serializing a bitmap.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalStringReserved for compatibility; left unchanged.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member GetClientWindow(form)

Gets the SAL client-area control associated with a form.

ParameterTypeDescription
formControlThe form or control to inspect.

Returns: SalWindowHandle. The client-area handle returned by SalWindow.GetClientArea.

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

Provides an unsupported compatibility entry point for querying a window hot spot.

ParameterTypeDescription
ctrlControlReserved for compatibility; ignored.
idSalNumberReserved for compatibility; ignored.
x by referenceSalNumberReserved for compatibility; left unchanged.
y by referenceSalNumberReserved for compatibility; left unchanged.
width by referenceSalNumberReserved for compatibility; left unchanged.
height by referenceSalNumberReserved for compatibility; left unchanged.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member GetWindowImage(ctrl, hImage)

Provides an unsupported compatibility entry point for retrieving a window-image handle.

ParameterTypeDescription
ctrlControlReserved for compatibility; ignored.
hImage by referenceSalNumberReserved for compatibility; left unchanged.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member GZipClose(Param1)

Provides an unsupported compatibility entry point for closing a gzip stream.

ParameterTypeDescription
Param1 by referenceSalNumberReserved for compatibility; not modified.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipEof(Param1)

Provides an unsupported compatibility entry point for testing gzip end-of-file.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipFlush(Param1)

Provides an unsupported compatibility entry point for flushing a gzip stream.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipGetChar(Param1)

Provides an unsupported compatibility entry point for reading a gzip character.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipGetError(Param1, Param2)

Provides an unsupported compatibility entry point for querying a gzip error.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalNumberReserved for compatibility; not modified.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member GZipGetStr(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for reading a gzip string.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalStringReserved for compatibility; not modified.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipOpen(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for opening a gzip stream.

ParameterTypeDescription
Param1 by referenceSalNumberReserved for compatibility; not modified.
Param2SalStringReserved for compatibility; ignored.
Param3SalStringReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipPutChar(Param1, Param2)

Provides an unsupported compatibility entry point for writing a gzip character.

ParameterTypeDescription
Param1SalFileHandleReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipPutStr(Param1, Param2)

Provides an unsupported compatibility entry point for writing a gzip string.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalStringReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipRead(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for reading gzip data.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2 by referenceSalStringReserved for compatibility; not modified.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipRewind(Param1)

Provides an unsupported compatibility entry point for rewinding a gzip stream.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member GZipSeek(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for seeking within a gzip stream.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalNumberReserved for compatibility; ignored.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipTell(Param1)

Provides an unsupported compatibility entry point for querying a gzip position.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member GZipWrite(Param1, Param2, Param3)

Provides an unsupported compatibility entry point for writing gzip data.

ParameterTypeDescription
Param1SalNumberReserved for compatibility; ignored.
Param2SalStringReserved for compatibility; ignored.
Param3SalNumberReserved for compatibility; ignored.

Returns: SalNumber. Always zero.

Logs that the operation is unavailable and performs no operation.

Static member ScriptAddLine(handle, line)

Appends a script line and recompiles the program.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
lineSalStringThe line to append.

Returns: SalBoolean. The compilation result, or false for a null handle.

Static member ScriptCreate(source)

Creates and compiles a script and allocates its handle.

ParameterTypeDescription
sourceSalStringThe script source; a complete brace-delimited block enables C# syntax.

Returns: SalNumber. The allocated script handle. Compilation errors are recorded and can be queried separately.

Static member ScriptFree(handle)

Releases the script’s context and allocated handle.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.

Returns: SalBoolean. True if a script was released; false for a null handle.

Static member ScriptGetErrors(handle, errorsList)

Retrieves a script’s recorded error text.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
errorsList by referenceSalStringReceives error text when an error exists; otherwise unchanged.

Returns: SalNumber. The error-text length, or zero when no script or error exists.

Static member ScriptGetLocalName(handle, localName, varName)

Deprecated memberDeprecated: Not supported. Provides an unsupported compatibility entry point for resolving a script-local variable name.

ParameterTypeDescription
handleSalNumberReserved for compatibility; ignored.
localNameSalStringReserved for compatibility; ignored.
varName by referenceSalStringReserved for compatibility; not modified.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

Static member ScriptRun(handle, result)

Executes a compiled script and retrieves its textual result.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
result by referenceSalStringReceives the result text when a script exists.

Returns: SalBoolean. True if the script has no recorded errors after execution; false for a null handle or recorded error.

Static member ScriptSetContext(handle, context)

Assigns the object used for script member lookup during execution.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
contextObjectThe execution context object.

Returns: SalBoolean. True if the context was assigned; false for a null handle.

Static member ScriptSetDebugMode(handle, debugOn)

Controls whether parser and interpreter exceptions propagate from a script.

ParameterTypeDescription
handleSalNumberA live script handle, or zero.
debugOnSalBooleanTrue to rethrow errors instead of recording them.

Returns: SalBoolean. True if the setting was applied; false for a null handle.

Static member ScriptSetTimeout(handle, timeout)

Deprecated memberDeprecated: Not supported. Provides an unsupported compatibility entry point for setting a script execution timeout.

ParameterTypeDescription
handleSalNumberReserved for compatibility; ignored.
timeoutSalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is unavailable and performs no operation.

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

Registers a clickable rectangular hot spot, or removes one when either dimension is zero.

ParameterTypeDescription
ctrlControlThe owning control.
idSalNumberThe nonzero hot-spot identifier reported in SAL messages.
xSalNumberThe horizontal position in pixels.
ySalNumberThe vertical position in pixels.
widthSalNumberThe width in pixels; zero requests removal.
heightSalNumberThe height in pixels; zero requests removal.

Returns: SalBoolean. False for a null control or zero identifier; otherwise true.

Registering an existing identifier leaves its original rectangle unchanged.

Static member SetWindowImage(ctrl, hImage, flags)

Provides an unsupported compatibility entry point for assigning a window image by native handle.

ParameterTypeDescription
ctrlControlReserved for compatibility; ignored.
hImageSalNumberReserved for compatibility; ignored.
flagsBackgroundImageFlagsReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member SetWindowImageFile(ctrl, sFileName, flags)

Loads a file image and assigns it as the control's background.

ParameterTypeDescription
ctrlControlThe target control; its SAL client area is used when present.
sFileNameSalStringThe image-file path.
flagsBackgroundImageFlagsThe background layout and optional transparency. Transparency uses the top-left pixel color.

Returns: SalBoolean. True after assignment; false when loading or applying the image throws an exception.

Static member SplitGetBarPosition(split)

Gets an XSal splitter’s current or deferred position.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.

Returns: SalNumber. The position in pixels or thousandths according to its style, or zero for an invalid splitter.

Static member SplitGetFrameChild(split, frame)

Gets a control hosted in an XSal splitter panel.

ParameterTypeDescription
splitSalWindowHandleThe XSal splitter handle.
frameSalNumberZero for the first panel, one for the second.

Returns: SalWindowHandle. The child handle, or a null handle for an invalid splitter, frame, or empty panel.

Static member SplitGetStyle(split)

Gets the splitter’s orientation, absolute-position, and resizing flags.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.

Returns: SplitterStyles. The supported style mask, excluding Invisible, or zero for an invalid splitter.

Static member SplitSetBarPosition(split, pos)

Sets an XSal splitter’s position.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
posSalNumberThe position in pixels for absolute mode or thousandths for proportional mode.

Returns: SalBoolean. True if assigned or deferred; false for an invalid splitter.

Static member SplitSetBarSize(split, size)

Sets an XSal splitter bar’s width.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
sizeSalNumberThe width in pixels.

Returns: SalBoolean. True on assignment; false if the handle is not an XSal splitter.

Static member SplitSetFrameChild(split, child, frame)

Assigns a control to one of an XSal splitter’s panels.

ParameterTypeDescription
splitSalWindowHandleThe XSal splitter handle.
childSalWindowHandleThe child-control handle, or a null handle to clear the panel.
frameSalNumberZero for the first panel, one for the second.

Returns: SalBoolean. True if assigned; false for an invalid splitter or frame number.

Static member SplitSetMinMax(split, min, max)

Sets minimum sizes for the first and second splitter panels.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
minSalNumberThe first panel’s minimum size in pixels.
maxSalNumberThe second panel’s minimum size in pixels.

Returns: SalBoolean. True on assignment; false for an invalid splitter.

Static member SplitSetStyle(split, style, on)

Applies supported XSal splitter style flags.

ParameterTypeDescription
splitSalWindowHandleThe splitter handle.
styleSplitterStylesThe flags to change.
onSalBooleanTrue to enable the selected flags; false to disable them.

Returns: SalBoolean. True on assignment; false for an invalid splitter.

Static member StrAny(text, chars)

Finds the first character belonging to a specified character set.

ParameterTypeDescription
textSalStringThe text to scan.
charsSalStringThe characters to match.

Returns: SalNumber. The zero-based index, or -1 if no character matches.

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

Compares a source segment with the beginning of another string using the current culture.

ParameterTypeDescription
sourceSalStringThe source text.
compareSalStringThe comparison text.
startSalNumberThe starting source index.
sizeSalNumberThe maximum number of characters to compare.
caseSensitiveSalBooleanTrue to distinguish case; false to ignore case.

Returns: SalBoolean. True if the compared segments are equal; false on mismatch or an out-of-range argument.

Static member StrCompress(inString, level, outString)

Compresses binary string data with an XZ prefix.

ParameterTypeDescription
inStringSalStringThe input binary string.
levelSalNumberThe compression level passed unchanged to the compression implementation.
outString by referenceSalStringReceives the prefixed compressed buffer, or SalString.Null when no bytes are returned.

Returns: SalBoolean. False for null input or a caught compression error; otherwise true.

The implementation calculates a clamped local level but passes the original argument to the compressor.

Static member StrCount(text, search, start, length, left)

Counts nonoverlapping, case-insensitive substring matches within a selected text segment.

ParameterTypeDescription
textSalStringThe text to search.
searchSalStringThe nonempty substring to count.
startSalNumberThe segment’s starting index for a forward search or ending index for a leftward search.
lengthSalNumberThe segment length.
leftSalBooleanTrue to select a segment ending at start; false to select one starting there.

Returns: SalNumber. The number of matches, or zero for empty input or an unusable segment.

Static member StrFit(ctrl, text, append)

Removes trailing characters until text and a suffix fit the control width.

ParameterTypeDescription
ctrlControlThe control supplying width, font, and graphics context.
textSalStringThe text to shorten.
appendSalStringThe suffix always appended to a measured nonempty result.

Returns: SalString. The shortened text plus suffix, or the original text for a null control or empty input.

The suffix is appended even when the original text already fits. An oversized suffix can cause shortening past the empty string and throw.

Static member StrFormat(text, mask)

Builds text using underscore placeholders and percent remainder markers.

ParameterTypeDescription
textSalStringThe source characters.
maskSalStringAn underscore consumes one source character; percent appends all remaining source text; other characters are copied literally.

Returns: SalString. The constructed text followed by the unused mask suffix.

The percent marker itself remains in the appended mask suffix in this implementation.

Static member StrFormatDateTime(date, format, language)

Provides an unsupported compatibility entry point for formatting a date with a language.

ParameterTypeDescription
dateSalDateTimeReserved for compatibility; ignored.
formatSalStringReserved for compatibility; ignored.
languageSalStringReserved for compatibility; ignored.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

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

Provides an unsupported compatibility entry point for formatting a date with custom names.

ParameterTypeDescription
dateSalDateTimeReserved for compatibility; ignored.
formatSalStringReserved for compatibility; ignored.
daysSalStringReserved for compatibility; ignored.
shortDaysSalStringReserved for compatibility; ignored.
monthsSalStringReserved for compatibility; ignored.
shortMonthsSalStringReserved for compatibility; ignored.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member StrFromHex(hex)

Decodes pairs of uppercase hexadecimal digits into a SAL binary string.

ParameterTypeDescription
hexSalStringThe hexadecimal text, optionally prefixed with lowercase 0x.

Returns: SalString. The decoded bytes, or SalString.Null for input shorter than two characters.

An unmatched final digit is ignored. Digits are not validated, and lowercase hexadecimal letters are not normalized.

Static member StrGetCharAt(text, index)

Gets the numeric value of a character at a zero-based index.

ParameterTypeDescription
textSalStringThe source text.
indexSalNumberThe character index.

Returns: SalNumber. The character value, or zero for empty text or an invalid index.

Static member StrGetFirstToken(list, separators)

Replaces the shared token sequence and returns its first nonempty token.

ParameterTypeDescription
listSalStringThe text to split.
separatorsSalStringThe delimiter characters.

Returns: SalString. The first token, or SalString.Null if none exists.

Static member StrGetNextToken()

Advances the shared token sequence created by StrGetFirstToken.

Returns: SalString. The next token, or SalString.Null when no sequence or tokens remain.

Static member StrMetaphone(text)

Provides an unsupported compatibility entry point for computing a Metaphone code.

ParameterTypeDescription
textSalStringReserved for compatibility; ignored.

Returns: SalString. Always SalString.Null.

Logs that the operation is unavailable and performs no operation.

Static member StrNAny(text, chars)

Finds the first character outside a specified character set.

ParameterTypeDescription
textSalStringThe text to scan.
charsSalStringThe allowed characters.

Returns: SalNumber. The zero-based index, or -1 when every character belongs to the set.

Static member StrScan(text, search, index)

Searches forward using ordinal case-insensitive comparison.

ParameterTypeDescription
textSalStringThe text to search.
searchSalStringThe nonempty substring to find.
indexSalNumberThe starting index, clamped to the text length; negative values fail.

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

Static member StrScanR(text, search, index)

Searches backward using ordinal case-insensitive comparison.

ParameterTypeDescription
textSalStringThe text to search.
searchSalStringThe nonempty substring to find.
indexSalNumberThe starting index; a negative value searches from the end, and larger values are clamped to the text length.

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

Static member StrSetCharAt(text, index, charSet)

Replaces a character at a zero-based index.

ParameterTypeDescription
text by referenceSalStringThe text to modify.
indexSalNumberThe character index.
charSetSalNumberThe numeric character value to insert.

Returns: SalNumber. The previous character value, or zero for empty text or an invalid index.

Static member StrToHex(str)

Encodes the string’s binary buffer as uppercase hexadecimal prefixed with 0x.

ParameterTypeDescription
strSalStringThe string whose bytes are encoded.

Returns: SalString. The hexadecimal text, or SalString.Null for empty input.

Static member StrToNumber(text)

Parses a number after adapting the first period or comma to the current decimal separator when needed.

ParameterTypeDescription
textSalStringThe numeric text.

Returns: SalNumber. The parsed SAL number, or SalNumber.Null for empty or unparseable input.

Static member StrUncompress(inString, outString)

Decompresses bytes after the three-byte XSal compression prefix.

ParameterTypeDescription
inStringSalStringThe binary string beginning with XZ.
outString by referenceSalStringReceives decompressed data, or SalString.Null for an empty output.

Returns: SalBoolean. False for invalid input or a caught decompression error; otherwise, true.

A trailing zero terminator from compatible CTD strings may be removed when the result is converted to ordinary text.

Static member TblCopyRows(table, flagsOn, flagsOff, copyFlags)

Copies matching rows as delimited text to the clipboard.

ParameterTypeDescription
tableControlThe table control or table form.
flagsOnSalNumberRow flags for which at least one must be set, or zero to omit this test.
flagsOffSalNumberRow flags that must all be clear.
copyFlagsTableWindowClipboardFlagsOptions to skip hidden columns or include column titles.

Returns: SalBoolean. True when nonempty text was generated and the copy call was issued; false otherwise.

The original context row is restored. Cell delimiters are not escaped.

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

Copies matching rows into delimited text.

ParameterTypeDescription
tableControlThe table control or table form.
flagsOnSalNumberRow flags for which at least one must be set, or zero to omit this test.
flagsOffSalNumberRow flags that must all be clear.
copyFlagsTableWindowClipboardFlagsOptions to skip hidden columns or include column titles.
csvText by referenceSalStringReceives nonempty generated text; unchanged when no text is produced.

Returns: SalBoolean. True when text was generated; otherwise false.

The original context row is restored. Values are not quoted or escaped, and rows end with the configured row delimiter.

Static member TblGetCellBackColor(column, backColor)

Retrieves the background-color override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
backColor by referenceSalNumberReceives the explicitly assigned Win32 color.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetCellCustom(column, userValue)

Retrieves the custom-drawing value for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
userValue by referenceSalNumberReceives the stored custom-drawing value when a compatible entry exists.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblGetCellFont(column, hFont)

Retrieves the font override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hFont by referenceSalNumberReceives a newly allocated native font handle; release it with DeleteObject when finished.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetCellFont(column)

Retrieves the font override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Font. The explicitly assigned font, or null when the target or override is absent.

Static member TblGetCellImage(column, hImage, position)

Retrieves the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hImage by referenceSalNumberReceives a newly allocated bitmap handle when the stored image is a bitmap; otherwise remains unchanged.
position by referenceTableWindowImageFlagsReceives the stored alignment; the Transparent flag is not reconstructed.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetCellImage(column, position)

Retrieves the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
position by referenceTableWindowImageFlagsReceives the stored alignment; the Transparent flag is not reconstructed.

Returns: Image. The stored cell image, or null when the target or image mapping is absent.

Static member TblGetColHeaderCustom(column, userValue)

Retrieves the custom-drawing value for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
userValue by referenceSalNumberReceives the stored custom-drawing value when a compatible entry exists.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblGetColHeaderFont(column, hFont)

Retrieves the font override for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hFont by referenceSalNumberReceives a newly allocated native font handle; release it with DeleteObject when finished.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetColHeaderFont(column)

Retrieves the font override for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Font. The explicitly assigned font, or null when the target or override is absent.

Static member TblGetColHeaderImage(column, hImage, position)

Provides an unsupported compatibility entry point for retrieving a column-header image.

ParameterTypeDescription
columnControlReserved for compatibility; ignored.
hImage by referenceSalNumberReserved for compatibility; left unchanged.
position by referenceTableWindowImageFlagsReserved for compatibility; left unchanged.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member TblGetColumnBackColor(column, backColor)

Retrieves the background-color override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
backColor by referenceSalNumberReceives the explicitly assigned Win32 color.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetColumnCustom(column, userValue)

Retrieves the custom-drawing value for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
userValue by referenceSalNumberReceives the stored custom-drawing value when a compatible entry exists.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblGetColumnFont(column, hFont)

Retrieves the font override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hFont by referenceSalNumberReceives a newly allocated native font handle; release it with DeleteObject when finished.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetColumnFont(column)

Retrieves the font override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.

Returns: Font. The explicitly assigned font, or null when the target or override is absent.

Static member TblGetColumnImage(column, hImage, flags)

Provides an unsupported compatibility entry point for retrieving a column-image handle.

ParameterTypeDescription
columnControlReserved for compatibility; ignored.
hImage by referenceSalNumberReserved for compatibility; left unchanged.
flags by referenceTableWindowImageFlagsReserved for compatibility; left unchanged.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member TblGetCustomInfo(lParam, HDC, col, row, tag, left, top, right, bottom)

Extracts drawing data from a live SAM_DrawCell callback handle.

ParameterTypeDescription
lParamSalNumberThe callback drawing-information handle.
HDC by referenceSalNumberReceives the drawing device context.
col by referenceSalNumberReceives the column identifier.
row by referenceSalNumberReceives the SAL row index.
tag by referenceSalNumberReceives the custom user value.
left by referenceSalNumberReceives the left drawing boundary.
top by referenceSalNumberReceives the top drawing boundary.
right by referenceSalNumberReceives the right drawing boundary.
bottom by referenceSalNumberReceives the bottom drawing boundary.

Returns: SalBoolean. True when drawing information is available; otherwise false.

Use the handle only during the callback that supplied it.

Static member TblGetRowBackColor(table, row, color)

Retrieves the background-color override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
color by referenceSalNumberReceives the explicitly assigned Win32 color.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetRowCustom(table, row, userValue)

Retrieves the custom-drawing value for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
userValue by referenceSalNumberReceives the stored custom-drawing value when a compatible entry exists.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblGetRowFont(table, row, hFont)

Retrieves the font override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
hFont by referenceSalNumberReceives a newly allocated native font handle; release it with DeleteObject when finished.

Returns: SalBoolean. True when the target contains the requested explicit setting; otherwise false with output values unchanged.

Static member TblGetRowFont(table, row)

Retrieves the font override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.

Returns: Font. The explicitly assigned font, or null when the target or override is absent.

Static member TblGetRowImage(table, row, hImage, flags)

Provides an unsupported compatibility entry point for retrieving a row-image handle.

ParameterTypeDescription
tableControlReserved for compatibility; ignored.
rowSalNumberReserved for compatibility; ignored.
hImage by referenceSalNumberReserved for compatibility; left unchanged.
flags by referenceTableWindowImageFlagsReserved for compatibility; left unchanged.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member TblPasteRows(table, copyFlags)

Appends rows parsed from clipboard text using the shared delimiters.

ParameterTypeDescription
tableControlThe table control or table form.
copyFlagsTableWindowClipboardFlagsOptions to skip hidden columns or treat the first input row as titles.

Returns: SalBoolean. False when clipboard text or the table is unavailable; otherwise true, including after caught row-import errors.

Rows added before an error remain. Empty trailing records are processed, and the original context row is restored.

Static member TblPasteRowsFromString(table, flags, csvText)

Appends rows parsed from delimited text.

ParameterTypeDescription
tableControlThe table control or table form.
flagsTableWindowClipboardFlagsOptions to skip hidden columns or treat the first input row as titles.
csvTextSalStringThe delimited row data.

Returns: SalBoolean. False for an invalid table; otherwise true, including after caught import errors.

The current implementation indexes input fields by grid-column position plus the fixed-column count. It can therefore skip leading input fields. The context row is restored, but partial imports are retained.

Static member TblSetCellBackColor(column, backColor)

Assigns the background-color override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
backColorSalNumberThe SAL color, or COLOR_Default or SalNumber.Null to clear the override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellCustom(column, userValue)

Assigns the custom-drawing value for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
userValueSalNumberThe custom-drawing tag. SalNumber.Null requests removal of an existing CUSTOMINFO entry.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblSetCellFont(column, font)

Assigns the font override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontFontThe font to assign; null removes or resets the font override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellFont(column, hFont)

Assigns the font override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hFontSalNumberThe native font handle, or zero to assign a null font.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellFontName(column, fontName, fontSize, fontEnh)

Assigns the font override for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontEnhSalNumberThe SAL font-enhancement flags.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellImage(column, image, flags)

Assigns the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageImageA Bitmap to display, or null to clear the image. Other Image types are not applied.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellImage(column, hImage, flags)

Assigns the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hImageSalNumberThe native bitmap handle, or zero to clear the image.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellImageFile(column, file, flags)

Assigns the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fileSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. Image-loading errors are traced and return false.

Static member TblSetCellImageResource(column, name, flags)

Assigns the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
nameSalStringThe embedded image resource name.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetCellImageString(column, sImage, flags)

Assigns the image and alignment for the cell in the table context row.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
sImageSalStringThe bitmap binary data stored in a SAL string.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetClipRect(lParam, left, top, right, bottom)

Provides an unsupported compatibility entry point for changing a custom-drawing clip rectangle.

ParameterTypeDescription
lParamSalNumberReserved for compatibility; ignored.
leftSalNumberReserved for compatibility; ignored.
topSalNumberReserved for compatibility; ignored.
rightSalNumberReserved for compatibility; ignored.
bottomSalNumberReserved for compatibility; ignored.

Returns: SalBoolean. Always false.

Logs that the operation is not implemented.

Static member TblSetColHeaderCustom(column, userValue)

Assigns the custom-drawing value for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
userValueSalNumberThe custom-drawing tag. SalNumber.Null requests removal of an existing CUSTOMINFO entry.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblSetColHeaderFont(column, font)

Assigns the font override for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontFontThe font to assign; null removes or resets the font override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColHeaderFont(column, hFont)

Assigns the font override for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hFontSalNumberThe native font handle, or zero to assign a null font.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColHeaderFontName(column, fontName, fontSize, fontEnh)

Assigns the font override for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontEnhSalNumberThe SAL font-enhancement flags.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColHeaderImage(column, image, flags)

Assigns the image and alignment for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageImageA Bitmap to display, or null to clear the image. Other Image types are not applied.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColHeaderImage(column, hImage, flags)

Assigns the image and alignment for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hImageSalNumberThe native bitmap handle, or zero to clear the image.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColHeaderImageFile(column, imageFile, flags)

Assigns the image and alignment for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageFileSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. Image-loading errors are traced and return false.

Static member TblSetColHeaderImageResource(column, resName, flags)

Assigns the image and alignment for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
resNameSalStringThe embedded image resource name.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. A missing or non-bitmap resource returns false.

Static member TblSetColHeaderImageString(column, imageBlob, flags)

Assigns the image and alignment for the column header.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageBlobSalStringThe bitmap binary data stored in a SAL string.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnBackColor(column, backColor)

Assigns the background-color override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
backColorSalNumberThe SAL color, or COLOR_Default or SalNumber.Null to clear the override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnCustom(column, userValue)

Assigns the custom-drawing value for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
userValueSalNumberThe custom-drawing tag. SalNumber.Null requests removal of an existing CUSTOMINFO entry.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblSetColumnFont(column, font)

Assigns the font override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontFontThe font to assign; null removes or resets the font override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnFont(column, hFont)

Assigns the font override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hFontSalNumberThe native font handle, or zero to assign a null font.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnFontName(column, fontName, fontSize, fontEnh)

Assigns the font override for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontEnhSalNumberThe SAL font-enhancement flags.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnImage(column, image, flags)

Assigns the image and alignment for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
imageImageA Bitmap to display, or null to clear the image. Other Image types are not applied.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnImage(column, hImage, flags)

Assigns the image and alignment for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
hImageSalNumberThe native bitmap handle, or zero to clear the image.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetColumnImageFile(column, file, flags)

Assigns the image and alignment for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
fileSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. Image-loading errors are traced and return false.

Static member TblSetColumnImageResource(column, name, flags)

Assigns the image and alignment for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
nameSalStringThe embedded image resource name.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. A missing or non-bitmap resource returns false.

Static member TblSetColumnImageString(column, sImage, flags)

Assigns the image and alignment for the column.

ParameterTypeDescription
columnControlAn attached SalTableColumn.
sImageSalStringThe bitmap binary data stored in a SAL string.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetDelimiters(colDelimiter, rowDelimiter)

Changes the shared delimiters used by table text copy and paste operations.

ParameterTypeDescription
colDelimiterSalStringThe separator between cell values.
rowDelimiterSalStringThe separator between table rows.

Returns: SalBoolean. True after assigning the delimiters.

Static member TblSetRowBackColor(table, row, color)

Assigns the background-color override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
colorSalNumberThe SAL color, or COLOR_Default or SalNumber.Null to clear the override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowCustom(table, row, userValue)

Assigns the custom-drawing value for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
userValueSalNumberThe custom-drawing tag. SalNumber.Null requests removal of an existing CUSTOMINFO entry.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

The setter stores a USERVALUE entry, whereas the getter and removal path test for CUSTOMINFO. Consequently, a value installed by this setter is not returned or removed by those paths.

Static member TblSetRowFont(table, row, font)

Assigns the font override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
fontFontThe font to assign; null removes or resets the font override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowFont(table, row, hFont)

Assigns the font override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
hFontSalNumberThe native font handle, or zero to assign a null font.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowFontName(table, row, fontName, fontSize, fontEnh)

Assigns the font override for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
fontNameSalStringThe font family name.
fontSizeSalNumberThe font size in points.
fontEnhSalNumberThe SAL font-enhancement flags.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowHeaderBackColor(table, row, color)

Assigns the background-color override for the specified row header.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
colorSalNumberThe SAL color, or COLOR_Default or SalNumber.Null to clear the override.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowImage(table, row, image, flags)

Assigns the image and alignment for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
imageImageA Bitmap to display, or null to clear the image. Other Image types are not applied.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowImage(table, row, hImage, flags)

Assigns the image and alignment for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
hImageSalNumberThe native bitmap handle, or zero to clear the image.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSetRowImageFile(table, row, imageFile, flags)

Assigns the image and alignment for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
imageFileSalStringThe image-file path.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. Image-loading errors are traced and return false.

Static member TblSetRowImageResource(table, row, resName, flags)

Assigns the image and alignment for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
resNameSalStringThe embedded image resource name.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved. A missing or non-bitmap resource returns false.

Static member TblSetRowImageString(table, row, imageBlob, flags)

Assigns the image and alignment for the specified row.

ParameterTypeDescription
tableControlThe table control or table form.
rowSalNumberThe SAL row index, including split-row indices when applicable.
imageBlobSalStringThe bitmap binary data stored in a SAL string.
flagsTableWindowImageFlagsThe image alignment and optional Transparent flag. FillAll stretches; transparency uses the bitmap's top-left pixel and modifies the bitmap.

Returns: SalBoolean. True when the target style or row is available; false when the target cannot be resolved.

Static member TblSortRows(table, colID, flags)

Sorts the table's scrollable rows by a column, sending SAM_SwapRows for row exchanges.

ParameterTypeDescription
tableControlThe table control or table form.
colIDSalNumberThe column identifier.
flagsTableWindowSortThe sort direction, data interpretation, and case-comparison flags.

Returns: SalBoolean. False for an invalid table or column; otherwise true.

The active editor is canceled. Numeric and date columns automatically enable the corresponding comparison mode.

Static member ToolboxCreate(parent, name, position, flags)

Creates a registered toolbox template and configures its owner, docking, behavior, and child layout.

ParameterTypeDescription
parentControlThe owning form.
nameSalStringThe registered SAL toolbox template name.
positionToolboxPositionsThe initial docked or floating position.
flagsToolboxFlagsThe initial behavior and visibility flags.

Returns: SalWindowHandle. The toolbox handle, or a null handle when parent is not a form or the template cannot be created.

Throws:

Static member ToolboxDestroy(parent, name)

Disposes a named toolbox associated with a form.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

Returns: SalBoolean. True if the toolbox was found and processed; otherwise, false.

Static member ToolboxGetButtonHandle()

Provides the compatibility accessor for a toolbox button handle.

Returns: SalWindowHandle. Always the null window handle.

Static member ToolboxGetFlags(parent, name)

Gets the configuration flags of a named toolbox.

ParameterTypeDescription
parentControlThe parent form.
nameSalStringThe toolbox name.

Returns: ToolboxFlags. The toolbox flags, or ToolboxFlags.None if not found.

Static member ToolboxGetPosition(parent, name)

Gets a named toolbox's docked or floating position.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.

Returns: ToolboxPositions. The stored position, or None when the toolbox is absent.

Static member ToolboxHide(parent, name)

Clears the visibility flag of a named toolbox.

ParameterTypeDescription
parentControlThe parent form.
nameSalStringThe toolbox name.

Returns: SalBoolean. True when the toolbox exists; otherwise false.

Static member ToolboxHideAll(parent)

Clears the visibility flag of every toolbox registered for a form.

ParameterTypeDescription
parentControlThe parent form.

Returns: SalBoolean. True when a toolbox collection is available; otherwise false.

Static member ToolboxIsVisible(parent, name)

Tests the visibility flag of a named toolbox.

ParameterTypeDescription
parentControlThe parent form.
nameSalStringThe toolbox name.

Returns: SalBoolean. True when the toolbox exists and its Visible flag is set.

Static member ToolboxSetButtonStyle(button, style)

Applies XSal toolbar appearance flags to a native button control.

ParameterTypeDescription
buttonSalWindowHandleThe handle of a ButtonBase control.
styleToolbuttonStylesThe button appearance flags.

Returns: SalBoolean. True when the handle resolves to a button; otherwise false.

Static member ToolboxSetMetrics(value, type)

Sets a shared toolbar dimension or toolbox layout offset.

ParameterTypeDescription
valueSalNumberThe value in pixels.
typeToolbarMetricsThe metric to change; unknown values are ignored.

Returns: SalBoolean. True.

Static member ToolboxSetPosition(parent, name, position)

Changes a named toolbox's docked or floating position and rearranges its children.

ParameterTypeDescription
parentControlThe containing form.
nameSalStringThe case-sensitive toolbox name.
positionToolboxPositionsThe desired docking edge or Floating position.

Returns: SalBoolean. True when the toolbox exists and the position assignment completes; otherwise false.

Static member ToolboxShow(parent, name)

Sets the visibility flag of a named toolbox.

ParameterTypeDescription
parentControlThe parent form.
nameSalStringThe toolbox name.

Returns: SalBoolean. True when the toolbox exists; otherwise false.

Static member ToolboxShowAll(parent)

Sets the visibility flag of every toolbox registered for a form.

ParameterTypeDescription
parentControlThe parent form.

Returns: SalBoolean. True when a toolbox collection is available; otherwise false.

Static member ToolboxUpdate(parent, name)

Recalculates the layout of a named toolbox.

ParameterTypeDescription
parentControlThe parent form.
nameSalStringThe toolbox name.

Returns: SalBoolean. True when the toolbox exists; otherwise false.

Static member TooltipInit()

Ensures the shared tooltip manager, timers, and mouse-message filter are initialized.

Returns: SalNumber. Always zero.

Repeated calls do not reset configured tooltip values.

Static member TooltipSetColors(textColor, backColor)

Sets the shared tooltip text and background colors.

ParameterTypeDescription
textColorSalNumberThe SAL foreground color.
backColorSalNumberThe SAL background color.

Returns: SalNumber. Always zero.

Static member TooltipSetDelay(showDelay, popDelay)

Changes the shared tooltip initial-show and automatic-hide delays.

ParameterTypeDescription
showDelaySalNumberThe initial delay in milliseconds.
popDelaySalNumberThe automatic-hide delay in milliseconds.

Returns: SalNumber. Always zero.

Static member TooltipSetText(tooltip)

Updates or shows tooltip text for the current tooltip target.

ParameterTypeDescription
tooltipSalStringThe text to display, or empty text to hide the tip.

Returns: SalBoolean. Always true.

Static member TooltipShow(ctrl, tooltip)

Shows or schedules tooltip text for a control, or hides the current tip for empty text or an invalid control.

ParameterTypeDescription
ctrlControlThe tooltip target.
tooltipSalStringThe tooltip text.

Returns: SalWindowHandle. Always SalWindowHandle.Null.

Static member UdvArrayDelete(array, index)

Removes the element at the specified array index.

ParameterTypeDescription
arraySalArrayThe SAL array to modify.
indexSalNumberThe element index.

Returns: SalBoolean. True if the operation completes; false for an IndexOutOfRangeException.

Static member UdvArrayInsert(array, index)

Inserts an empty element at the specified array index.

ParameterTypeDescription
arraySalArrayThe SAL array to modify.
indexSalNumberThe element index.

Returns: SalBoolean. True if the operation completes; false for an IndexOutOfRangeException.

Static member UdvArrayMove(array, sourceIndex, targetIndex)

Inserts a copy of an array element at the target position and removes the original.

ParameterTypeDescription
arraySalArrayThe array to modify.
sourceIndexSalNumberThe source element index.
targetIndexSalNumberThe insertion index before the original element is removed.

Returns: SalBoolean. True on success or when the indices are equal; false for an IndexOutOfRangeException.

Static member UdvArraySort(array, fieldName, dataType, sortOrder)

Sorts a one-dimensional object array by a public field or property.

ParameterTypeDescription
arraySalArrayThe array to sort.
fieldNameSalStringThe public field or property name on the element type.
dataTypeSalNumberReserved for compatibility; ignored.
sortOrderSalNumberThe sort order consumed by the member comparer.

Returns: SalBoolean. True when sorting completes or the array has fewer than two elements; false for a multidimensional array, empty member name, or missing member.

Static member UdvArraySwap(array, index1, index2)

Exchanges two array elements.

ParameterTypeDescription
arraySalArrayThe SAL array to modify.
index1SalNumberThe first element index.
index2SalNumberThe second element index.

Returns: SalBoolean. True if the exchange completes; false for an IndexOutOfRangeException.

Static member UdvClone(source, target)

Clones a functional-class object by binary serialization and deserialization.

ParameterTypeDescription
sourceSalFunctionalClassThe serializable object to copy.
target by referenceSalFunctionalClassReceives the deserialized copy.

Returns: SalBoolean. True if both operations succeed; false for a null source.

Static member UdvFromString(obj, source)

Deserializes a functional-class object from a BinaryFormatter binary string.

ParameterTypeDescription
obj by referenceSalFunctionalClassReceives the deserialized object.
sourceSalStringThe serialized binary data.

Returns: SalBoolean. False for null or empty binary data; true after deserialization.

The input must be trusted serialized application data. Deserialization and cast errors propagate.

Static member UdvToString(obj, target)

Serializes a functional-class object into a SAL binary string using BinaryFormatter.

ParameterTypeDescription
objSalFunctionalClassThe serializable object.
target by referenceSalStringReceives the serialized stream buffer.

Returns: SalBoolean. False for a null object; true after serialization.

Serialization exceptions propagate to the caller.

Static member ZipCloseArchive(zipFile)

Closes a ZIP archive and frees its allocated handle.

ParameterTypeDescription
zipFile by referenceSalNumberThe live archive handle; its numeric value is not reset after release.

Returns: SalBoolean. False for a nonpositive handle or a caught archive error; otherwise true.

A positive handle is freed in the finally block even when archive closure fails. Do not reuse it afterward.

Static member ZipCloseFile(zipFile)

Closes the current archive entry.

ParameterTypeDescription
zipFileSalNumberThe archive handle whose entry is open.

Returns: SalBoolean. True if closure succeeds; false for a caught archive error.

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

Creates a writable entry in an output ZIP archive.

ParameterTypeDescription
zipFileSalNumberThe open output-archive handle.
fileNameSalStringThe entry path within the archive.
dateSalDateTimeThe entry timestamp.
commentSalStringThe entry comment.
compressionLevelSalNumberThe compression level passed to the ZIP implementation.

Returns: SalBoolean. True if an entry is created; false for a zero handle or a caught error.

Static member ZipFindFile(zipFile, fileName)

Selects an archive entry by name.

ParameterTypeDescription
zipFileSalNumberThe open input-archive handle.
fileNameSalStringThe archive entry name to find.

Returns: SalBoolean. True if the entry is found; false for a zero handle, no match, or a caught archive error.

Static member ZipFindFirstFile(zipFile)

Selects the first entry and resets archive enumeration.

ParameterTypeDescription
zipFileSalNumberThe open input-archive handle.

Returns: SalBoolean. True if an entry exists; false for a zero handle, no matching entry, or a caught archive error.

Static member ZipFindNextFile(zipFile)

Advances to the next archive entry.

ParameterTypeDescription
zipFileSalNumberThe open input-archive handle.

Returns: SalBoolean. True if an entry exists; false for a zero handle, no matching entry, or a caught archive error.

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

Retrieves metadata for the currently selected ZIP entry.

ParameterTypeDescription
zipFileSalNumberThe input-archive handle.
fileName by referenceSalStringReceives the entry name.
comment by referenceSalStringReceives the entry comment.
date by referenceSalDateTimeReceives the entry timestamp.
compressedSize by referenceSalNumberReceives the compressed size in bytes.
uncompressedSize by referenceSalNumberReceives the uncompressed size in bytes.

Returns: SalBoolean. True if metadata is retrieved; false for a zero handle, no selected entry, or a caught error.

Static member ZipOpenArchive(zipFile, fileName, mode)

Opens an existing ZIP archive for reading or creates a new archive for writing.

ParameterTypeDescription
zipFile by referenceSalNumberReceives an allocated archive handle on success.
fileNameSalStringThe archive path.
modeSalNumberOF_Read to open or OF_Write to create and overwrite the file.

Returns: SalBoolean. True if the archive handle is allocated; false for another mode or a caught archive error.

Requires the dynamically loaded SharpZipLib archive support. Close the archive handle when finished.

Static member ZipOpenFile(zipFile)

Opens the currently selected archive entry for reading.

ParameterTypeDescription
zipFileSalNumberThe input-archive handle with an entry selected.

Returns: SalBoolean. True if an entry stream is opened; otherwise, false.

Static member ZipRead(zipFile, buffer, count)

Reads bytes from the current ZIP entry into a newly allocated buffer.

ParameterTypeDescription
zipFileSalNumberThe input archive handle.
buffer by referenceSalStringReceives a binary string of the requested count when bytes are read, including zero padding after a short read; receives empty text at end of input. A nonpositive count leaves it unchanged.
countSalNumberThe maximum byte count to read.

Returns: SalNumber. The actual byte count, or zero for a nonpositive count or a caught error.

Static member ZipWrite(zipFile, buffer, length)

Writes bytes to the current output ZIP entry.

ParameterTypeDescription
zipFileSalNumberThe open output-archive handle.
bufferSalStringThe SAL string whose binary buffer is written.
lengthSalNumberThe number of bytes to write from the beginning of the buffer.

Returns: SalBoolean. True if writing succeeds; false for a zero archive handle or a caught write error.

Static member ZipWrite(zipFile, buffer, length)

Writes bytes to the current output ZIP entry.

ParameterTypeDescription
zipFileSalNumberThe open output-archive handle.
bufferByte[]The source byte array.
lengthSalNumberThe number of bytes to write from the beginning of the buffer.

Returns: SalBoolean. True if writing succeeds; false for a zero archive handle or a caught write error.