XSal
PPJ.Runtime.XSal.XSal
Namespace: PPJ.Runtime.XSal
Assembly: PPJ.Runtime.XSal.49 (4.9.0.0)
XSal functions.
Fields
Name | Type | Description |
---|---|---|
SAM_DrawCell | Callback message for cell drawing The table window receives this message each time a custom drawn cell needs to be repainted. wParam = cell selected flag (TRUE or FALSE) lParam = pointer to a structure with drawing information. Use it with XSalTblGetCustomInfo(). | |
SAM_HotSpotClick | The form, dialog or MDI receive this message when the user clicks the left mouse button on the hot spot. wParam = HotSpot ID lParam = Mouse position | |
SAM_HotSpotMouseMove | The form, dialog or MDI receive this message when the user moves the mouse on the hot spot. wParam = HotSpot ID if the mouse is entering the hot spot or NULL if the mouse is leaving the hot spot. lParam = Mouse position | |
SAM_SwapRows | Notification message from XSalTblSortRows. The table window receives this message each time the quick-sort routine swaps two rows. wParam = first row lParam = second row | |
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 tool bars. 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 tool tip when the tool tip is destroyed. | |
SAM_TooltipSetText | Sent to the control under the mouse to show the tool tip. |
Properties
ToolTip: Returns the single tool tips instance used by XSalTooltips.
Methods
Frees the bitmap handle.
Parameter | Type | Description |
---|---|---|
hBitmap |
Returns: SalBoolean.
HBITMAP XSalBitmapCreateDisabled( HBITMAP p_hBitmap, COLORREF p_cColor );
Returns: SalNumber.
Draws the image inside the control.
Parameter | Type | Description |
---|---|---|
ctrl | Target control on which to execute the call. | |
hImage | ||
x | ||
y | ||
width | ||
height |
Returns: SalBoolean.
Draws the image inside the control.
Parameter | Type | Description |
---|---|---|
ctrl | Target control on which to execute the call. | |
hImage | ||
x | ||
y | ||
width | ||
height | ||
transparent |
Returns: SalBoolean.
Draws the image inside the device context.
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 | ||
Param3 | ||
Param4 | ||
Param5 | ||
Param6 |
Returns: SalBoolean.
Returns the bitmap handle from the image file.
Parameter | Type | Description |
---|---|---|
fileName |
Returns: SalNumber.
HBITMAP XSalBitmapFromIcon( HICON p_hIcon, COLORREF p_cBackColor );
Returns: SalNumber.
Returns the bitmap handle from the resource object,
Parameter | Type | Description |
---|---|---|
resName |
Returns: SalNumber.
Returns the bitmap handle from the bytes string.
Parameter | Type | Description |
---|---|---|
bitmapBytes |
Returns: SalNumber.
HBITMAP XSalBitmapFromWindow( HWND p_hWnd, BOOL p_bClientOnly )
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 |
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 |
Returns: SalBoolean.
Returns the client area of a form with the accessories enabled.
Parameter | Type | Description |
---|---|---|
form |
Returns: SalWindowHandle.
Parameter | Type | Description |
---|---|---|
ctrl | ||
id | ||
x | ||
y | ||
width | ||
height |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
ctrl | ||
hImage |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
Param1 |
Returns: SalBoolean.
BOOL XSalGZipEof( gzFile p_File )
Parameter | Type | Description |
---|---|---|
Param1 |
Returns: SalBoolean.
BOOL XSalGZipFlush( gzFile p_File )
Parameter | Type | Description |
---|---|---|
Param1 |
Returns: SalBoolean.
CHAR XSalGZipGetStr( gzFile p_File )
Parameter | Type | Description |
---|---|---|
Param1 |
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 |
Returns: SalString.
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 | ||
Param3 |
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 | ||
Param3 |
Returns: SalBoolean.
BOOL XSalGZipPutChar( gzFile p_File, CHAR p_cChar )
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 |
Returns: SalBoolean.
INT XSalGZipPutStr( gzFile p_File, LPSTR p_lpBufferOut )
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
Param1 | ||
Param2 | ||
Param3 |
Returns: SalNumber.
BOOL XSalGZipRewind( gzFile p_File )
Parameter | Type | Description |
---|---|---|
Param1 |
Returns: SalBoolean.
LONG XSalGZipSeek( gzFile p_File, LONG p_lOffset, INT p_iWhence )
Returns: SalNumber.
LONG XSalGZipTell( gzFile p_File )
Parameter | Type | Description |
---|---|---|
Param1 |
Returns: SalNumber.
LONG XSalGZipWrite( gzFile p_File, LPVOID p_lpBufferOut, LONG p_lSize )
Returns: SalNumber.
Adds a line to the script and recompiles.
Returns: SalBoolean.
Creates and compiles the script.
Parameter | Type | Description |
---|---|---|
source |
Returns: SalNumber.
Frees the script.
Parameter | Type | Description |
---|---|---|
handle |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
handle | ||
errorsList |
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
handle | ||
localName | ||
varName |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
handle | ||
result |
Returns: SalBoolean.
Changes the execution context for the script object.
Returns: SalBoolean.
Enables/Disables debug mode. When the debug mode is on, the exceptions generated by the interpreter are unhandled.
Parameter | Type | Description |
---|---|---|
handle | ||
debugOn |
Returns: SalBoolean.
Returns: SalBoolean.
Creates a new hot spot are on the windows background. If the hot spot dimensions are 0,0,0,0 the specified hot spot ID is removed.
Parameter | Type | Description |
---|---|---|
ctrl | The control to add the hot spot to. | |
id | A unique id returned in the SAM_HotSpotClick event. | |
x | The X coordinate of the hot spot in pixels. | |
y | The X coordinate of the hot spot in pixels. | |
width | The width of the hot spot in pixels. | |
height | The height of the hot spot in pixels. |
Returns: SalBoolean.
Sets the image to show as the background of the specified window.
Parameter | Type | Description |
---|---|---|
ctrl | Target control on which to execute the call. | |
hImage | ||
flags |
Returns: SalBoolean.
Sets the image to show as the background of the specified window.
Parameter | Type | Description |
---|---|---|
ctrl | Target control on which to execute the call. | |
sFileName | ||
flags |
Returns: SalBoolean.
Returns the position of the splitter. If the splitter is proportional, the position is expressed as a percentage integer: 500 = 50%.
Parameter | Type | Description |
---|---|---|
split |
Returns: SalNumber.
Returns the child control associated to the splitter's frames.
Parameter | Type | Description |
---|---|---|
split | ||
frame |
Returns: SalWindowHandle.
Returns the styles of the splitter.
Parameter | Type | Description |
---|---|---|
split |
Returns: SplitterStyles.
Sets the position of the splitter. If the splitter is proportional, the position is expressed as a percentage integer: 500 = 50%.
Parameter | Type | Description |
---|---|---|
split | ||
pos |
Returns: SalBoolean.
Sets the size of the splitter.
Parameter | Type | Description |
---|---|---|
split | ||
size |
Returns: SalBoolean.
Associates the child control to the splitter's frames.
Parameter | Type | Description |
---|---|---|
split | ||
child | ||
frame |
Returns: SalBoolean.
Sets the minimum and maximum positions for the splitter.
Parameter | Type | Description |
---|---|---|
split | ||
min | ||
max |
Returns: SalBoolean.
Sets the style of the splitter.
Parameter | Type | Description |
---|---|---|
split | ||
style | ||
on |
Returns: SalBoolean.
Finds the first character in the string that appears in a given character set.
Returns: SalNumber.
Compares a substring in a string.
Parameter | Type | Description |
---|---|---|
source | ||
compare | ||
start | ||
size | ||
caseSensitive |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
inString | ||
level | ||
outString |
Returns: SalBoolean.
Counts the number of times a substring appears in a string.
Parameter | Type | Description |
---|---|---|
text | ||
search | ||
start | ||
length | ||
left |
Returns: SalNumber.
Truncates the string to fit the control's width and adds the ellipses characters at the end of the resulting string.
Parameter | Type | Description |
---|---|---|
ctrl | Target control on which to execute the call. | |
text | ||
append |
Returns: SalString.
Formats a string using a string mask.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
date | ||
format | ||
language |
Returns: SalString.
Parameter | Type | Description |
---|---|---|
date | ||
format | ||
days | ||
shortDays | ||
months | ||
shortMonths |
Returns: SalString.
Converts a hexadecimal text into a string.
Parameter | Type | Description |
---|---|---|
hex |
Returns: SalString.
Returns the character at the indicated position.
Returns: SalNumber.
Returns: SalString.
Returns the next token string in a list.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
text |
Returns: SalString.
Finds the first character in the string that does not appear in a given character set.
Returns: SalNumber.
Searches for a substring in the source string starting from the specified index.
Returns: SalNumber.
Searches for a substring in the source string starting from the specified index.
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
text | ||
index | ||
charSet |
Returns: SalNumber.
Converts a string to a hexadecimal text.
Parameter | Type | Description |
---|---|---|
str |
Returns: SalString.
Converts a string to a number, regardless of the decimal point.
Parameter | Type | Description |
---|---|---|
text |
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
inString | ||
outString |
Returns: SalBoolean.
Copies the matching rows to the clipboard.
Parameter | Type | Description |
---|---|---|
table | ||
flagsOn | ||
flagsOff | ||
copyFlags |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
table | ||
flagsOn | ||
flagsOff | ||
copyFlags | ||
csvText |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
backColor |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
userValue |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
hFont |
Returns: SalBoolean.
Returns the font associated with the specified table cell.
Parameter | Type | Description |
---|---|---|
column |
Returns: Font.
Parameter | Type | Description |
---|---|---|
column | ||
hImage | ||
position |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
position |
Returns: Image.
Parameter | Type | Description |
---|---|---|
column | ||
userValue |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
hFont |
Returns: SalBoolean.
Returns the font associated to the column header.
Parameter | Type | Description |
---|---|---|
column |
Returns: Font.
Parameter | Type | Description |
---|---|---|
column | ||
hImage | ||
position |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
backColor |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
userValue |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
column | ||
hFont |
Returns: SalBoolean.
Returns the font associated with the specified table column.
Parameter | Type | Description |
---|---|---|
column |
Returns: Font.
Parameter | Type | Description |
---|---|---|
column | ||
hImage | ||
flags |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
lParam | ||
HDC | ||
col | ||
row | ||
tag | ||
left | ||
top | ||
right | ||
bottom |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
color |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
userValue |
Returns: SalBoolean.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
hFont |
Returns: SalBoolean.
Returns the font used for the specified row.
Returns: Font.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
hImage | ||
flags |
Returns: SalBoolean.
Pastes the CSV text from the clipboard.
Parameter | Type | Description |
---|---|---|
table | ||
copyFlags |
Returns: SalBoolean.
Pastes the specified CSV string into the table window control.
Parameter | Type | Description |
---|---|---|
table | ||
flags | ||
csvText |
Returns: SalBoolean.
Sets the background color of an individual cell.
Returns: SalBoolean.
Makes the specified cell custom-drawn and assigns the user value to it.
Returns: SalBoolean.
Sets the font for a single cell.
Returns: SalBoolean.
Sets the font for a single cell.
Returns: SalBoolean.
Sets the font for a single cell.
Returns: SalBoolean.
Assigns an image to a table cell.
Parameter | Type | Description |
---|---|---|
column | ||
image | ||
flags |
Returns: SalBoolean.
Assigns an image to a table cell.
Parameter | Type | Description |
---|---|---|
column | ||
hImage | ||
flags |
Returns: SalBoolean.
Assigns an image to a table cell.
Parameter | Type | Description |
---|---|---|
column | ||
file | ||
flags |
Returns: SalBoolean.
Assigns an image to a table cell.
Parameter | Type | Description |
---|---|---|
column | ||
name | ||
flags |
Returns: SalBoolean.
Assigns an image to a table cell.
Parameter | Type | Description |
---|---|---|
column | ||
sImage | ||
flags |
Returns: SalBoolean.
Changes the clipping rectangle when custom drawing a cell. It must be used when processing SAM_DrawCell to make sure that lParam contains the correct value.
Returns: SalBoolean.
Defines the column header as custom drawn.
Returns: SalBoolean.
Assigns the specified font to the column header.
Returns: SalBoolean.
Assigns the specified font to the column header.
Returns: SalBoolean.
Creates the specified font and assigns it to the column header.
Returns: SalBoolean.
Assigns the image from the handle to the specified column header.
Parameter | Type | Description |
---|---|---|
column | ||
image | ||
flags |
Returns: SalBoolean.
Assigns the image from the handle to the specified column header.
Parameter | Type | Description |
---|---|---|
column | ||
hImage | ||
flags |
Returns: SalBoolean.
Assigns the image file to the specified column header.
Parameter | Type | Description |
---|---|---|
column | ||
imageFile | ||
flags |
Returns: SalBoolean.
Assigns the image from the specified resource object to the column header.
Parameter | Type | Description |
---|---|---|
column | ||
resName | ||
flags |
Returns: SalBoolean.
Assigns the image from the blob string to the specified column header.
Parameter | Type | Description |
---|---|---|
column | ||
imageBlob | ||
flags |
Returns: SalBoolean.
Sets the background color for a table column.
Returns: SalBoolean.
Enables custom drawing (SAM_DrawCell) for the specified column.
Returns: SalBoolean.
Sets the font for a table column.
Returns: SalBoolean.
Sets the font for a table column.
Returns: SalBoolean.
Sets the font for the table column. The font is created using the specified arguments.
Returns: SalBoolean.
Assigns an image to a table column.
Parameter | Type | Description |
---|---|---|
column | ||
image | ||
flags |
Returns: SalBoolean.
Assigns an image to the column.
Parameter | Type | Description |
---|---|---|
column | ||
hImage | ||
flags |
Returns: SalBoolean.
Assigns an image to the column.
Parameter | Type | Description |
---|---|---|
column | ||
file | ||
flags |
Returns: SalBoolean.
Assigns an image to the column.
Parameter | Type | Description |
---|---|---|
column | ||
name | ||
flags |
Returns: SalBoolean.
Assigns an image to the column.
Parameter | Type | Description |
---|---|---|
column | ||
sImage | ||
flags |
Returns: SalBoolean.
Changes the standard column and row delimiters for the copy/paste operations.
Returns: SalBoolean.
Sets the background color of a row.
Returns: SalBoolean.
Defines the specified row as custom drawn and assigns the user value.
Returns: SalBoolean.
Sets the font for the entire row.
Returns: SalBoolean.
Sets the font for the entire row.
Returns: SalBoolean.
Sets the font for the entire row.
Returns: SalBoolean.
Sets the background color of the row header.
Returns: SalBoolean.
Assigns an image to all the cells in the specified row,
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
image | ||
flags |
Returns: SalBoolean.
Assigns an image to all the cells in the specified row,
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
hImage | ||
flags |
Returns: SalBoolean.
Assigns an image to all the cells in the specified row.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
imageFile | ||
flags |
Returns: SalBoolean.
Assigns the image from the resource object to all the cells in the table row.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
resName | ||
flags |
Returns: SalBoolean.
Assigns an image to all the cells in the specified row.
Parameter | Type | Description |
---|---|---|
table | ||
row | ||
imageBlob | ||
flags |
Returns: SalBoolean.
Sort the table rows using the values in the specified column.
Parameter | Type | Description |
---|---|---|
table | ||
colID | ||
flags |
Returns: SalBoolean.
Creates the specified toolbox dialog.