SalTreeControl
PPJ.Runtime.Windows.SalTreeControl
Last updated
PPJ.Runtime.Windows.SalTreeControl
Last updated
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Runtime.49 (4.9.0.0)
TreeView implementation.
Constructs a SalTreeControl object.
: Returns/Sets the label associated with this control.
: Returns the collection of named properties.
Brings a window to the top of all overlapping windows.
Centers a window. If the window is a top-level window, it centers it on the desktop. If the window is a child window, it centers it on top of its parent.
Clears the value from a data field, multi line field, or table window column.
Clears a window's cursor.
type
Collapse a tree item. If the tree item handle is 0, then the top level tree items of the tree control are collapsed.
hItem
Handle to the tree item.
Removes a tree item from a tree control. All child items of the tree item are also removed.
hItem
Handle to the tree item.
Moves a tree item so it becomes the child of its previous sibling. This function will fail if the tree item has no previous sibling.
hItem
Handle to the tree item.
Destroys a form window, a top-level table window, or a modeless dialog box created with SalCreateWindow.
Disables keyboard and mouse input to a window. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.
Disables keyboard and mouse input to a window and grays out its associated label. A label is the label control that immediately precedes the window in the outline. The label control must have a mnemonic. If the window contains text (for example, a push button), the text is grayed. If the window is a data field, it cannot receive the focus.
Allows the user to edit the value of the tree item's label. SAM_Validate is sent to the tree control when the edit control loses focus with wParam indicating the handle to the tree item.
hItem
Handle to the tree item.
Enables the tree item when bEnable is true, disables the tree item when bEnable is false.
hItem
Handle to the tree item.
bEnable
Set to TRUE to enable the item. Set to FALSE to disable the item.
Enables keyboard and mouse input to a window.
Enables keyboard and mouse input to a window and enables its associated label as well. A label is the label control that immediately precedes the window in the outline.
Expand a tree item. If the tree item handle is 0, then the top level tree items of the tree control are expanded.
hItem
Handle to the tree item.
This function finds a child window of a given name in the specified window.
windowName
Finds a tree item by its Object Data. Returns 0 if not found. Searches the child items of the tree item handle argument(hItem). If the handle is 0, searches the top level tree items.
hItem
Handle to the tree item.
nData
Data of the item to find.
Finds a tree item by its object title. Returns 0 if not found. Searches the child items of the tree item handle argument. If the handle is 0, searches the top level tree items.
hItem
Handle to the tree item.
sTitle
Title of the item to find.
Dispatches the specified message (Window Actions) directly to the control's WindowActions event handlers, without going through Windows message loop.
msg
mywParam
mylParam
Computes the number of pixels in the number of form units. Form units are a unit of measurement used by functions which move and position objects. Form units are computed using physical units (pixels) in conjunction with the window's font size.
formUnits
The number of form units.
vertical
If the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.
Return the name of a window's class as a string.
Returns an object's type.
Returns a data field's or table window column's data type.
Returns the handle of the first child window of the specified type. You can use this function to get the handles of MDI child windows.
typeMask
One or more window types combined (using the OR (|) operator) to create a mask of child window types.
Gets the first child tree item of the passed tree item handle. Returns 0 if not found. If the handle is 0, returns the first child of the tree control.
hItem
Handle to the tree item.
name
size
enhancement
Gets the number of child items. If the handle argument is 0, then number of first level child items is returned.
hItem
Handle to the tree item.
Returns the numeric value assigned to the tree item.
hItem
Handle to the tree item.
Returns the handle of hItem's parent, or 0 if hItem is a top level child of the tree control.
hItem
Handle to the tree item.
Returns the string title of the item.
hItem
Handle to the tree item.
Returns the current tooltip for the tree item.
hItem
Handle to the tree item.
Retrieves the window handle of the label (label control) that is associated with the hWndTarget parameter. There must be a mnemonic in that label, and it must immediately precede hWndTarget in the outline, or this function will fail.
sText
nMaxLength
Retrieves the text of the label associated to a control. Important: The label control does not require a mnemonic for the functions listed above to operate.
nMaxLength
x
y
text
Gets the name of an object.
Returns the handle of the next child window that matches a specified type.
typeMask
One or more window types combined (using the OR (|) operator) to create a mask of child window types.
Gets the next sibling tree item of the passed tree item handle. Returns 0 if there are no more sibling tree items.
hItem
Handle to the tree item.
Returns the handle of an object's parent window.
Gets the previous sibling tree item of the passed tree item handle. Returns 0 if there are no more sibling items.
hItem
Handle to the tree item.
name
value
Gets the value of a named property.
name
Returns the handle to the selected tree item, or 0 if no item is selected.
width
height
text
maxLen
Retrieves the text of a window.
maxLen
Gets a window's color.
colorIndex
Returns a window's current state.
Hides a window.
Hides a window and its associated label.
Inserts a tree item into the tree control. The new item will be a child of hItem . If hItem is 0, the tree item is added as a top level child of the tree control. If nIndex is greater than or equal to the number of child items, or if nIndex is less than zero, the new item is appended.
hItem
Handle of the tree item which will be the parent of the new item.
nIndex
Index to insert (starting at zero).
sTitle
Title of the new item.
Causes a window to be repainted.
Determines whether a window is an instance of the specified class.
typeClass
Determines whether a window is enabled for mouse and keyboard input.
Returns the setting of the Field Edit Flag for a data field, multi line field, combo box, table window's context row cell, or picture.
Determines whether a window is currently visible.
Returns true if the tree item has a checkbox displayed.
hItem
Handle to the tree item.
Returns true if the item checkbox is checked. Returns false if the checkbox is not displayed.
hItem
Handle to the tree item.
Returns whether the item is expanded.
hItem
Handle to the tree item.
Returns whether the item is selected.
hItem
Handle to the tree item.
Returns true if the tree shows checkboxes next to the items.
Destroys an object's system timer.
idEvent
Moves a tree item downward. This functions fails if the tree item is the last child of its parent.
hItem
Handle to the tree item.
Moves a tree node and all its sub-nodes to a new location in the tree control.
hItem
Handle to the tree item.
hParentItem
Handle to the new parent tree item.
nPosition
Position in the new parents list of children to place the new child (0-n).
Moves a tree item upward . This functions fails if the tree item is the first child of its parent.
hItem
Handle to the tree item.
Moves a window a given number of form units on the X and Y axes relative to its current position.
xOffset
yOffset
Computes the number of form units based on the number of pixels. Form units are a unit of measurement used by functions that move and position objects. Form units are computed using physical units (pixels) in conjunction with a window's font sizes.
numPixels
vertical
If the form units are on the X axis, set this parameter to FALSE. If the form units are on the Y axis, set this parameter to TRUE.
Posts the specified message to a window by adding nMsg to hWndReceiver's message queue.
msg
mywParam
mylParam
Moves a tree item so it becomes the sibling of its parent. This functions fails if the tree item has no grandparent.
hItem
Handle to the tree item.
Clears a tree control with the option to retain or destroy design-time nodes.
bRemove
TRUE = Remove all nodes. FALSE = Remove nodes created dynamically; the tree goes back to the initial state.
Sends the specified message to a window. SalSendMsg does not return until the processing for the message is complete.
msg
mywParam
mylParam
Sends a message to all child items of a form window, dialog box, table window, or MDI window.
msg
mywParam
mylParam
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.
sMenuName
nFlags
Defines a named popup menu that displays automatically when a window receives SAM_ContextMenu.
menuType
flags
Sets a window's cursor.
resource
type
Sets a window's cursor.
resourceId
type
Sets a window's cursor from a string variable.
blob
type
Sets an application-defined cursor for the specified window. Use this function to set the cursor from an image stored in a file.
file
type
Sets the focus to a specified window.
Sets a window's font, font size, and font enhancements.
name
size
enhancement
Sets or clears the checkbox. If the checkbox is not displayed, this function has no effect.
hItem
Handle to the tree item.
bChecked
TRUE to set the box as checked, FALSE to clear the checkbox.
Sets the numeric value of the tree item.
hItem
Handle to the tree item.
nValue
Value to set.
Sets whether the tree item's label can be edited. If bEditable is true, the label can be edited.
hItem
Handle to the tree item.
bEditable
Whether to enable or disable editing.
Sets the font enhancement for a tree item.
hItem
Handle to the tree item.
nFontEnh
Sets the image of a tree item. If the bSelected parameter is true, the selected image is set; otherwise the non-selected image is set.
hItem
Handle to the tree item.
bSelected
If TRUE, use selected image. If FALSE, use non-selected image.
sImageFile
Filename of the image.
Sets the image of a tree item. If the bSelected parameter is true, the selected image is set; otherwise the non-selected image is set.
hItem
Handle to the tree item.
bSelected
If TRUE, use selected image. If FALSE, use non-selected image.
nFormat
bPicture
The image data to be assigned to the tree node.
Sets the image of a tree item. If the bSelected parameter is true, the selected image is set; otherwise the non-selected image is set.
hItem
Handle to the tree item.
bSelected
If TRUE, use selected image. If FALSE, use non-selected image.
tResource
Resource object.
Sets the title of the item.
hItem
Handle to the tree item.
sText
Text to set as the title for this tree item.
Sets the text color of the tree item.
hItem
Handle to the tree item.
nColor
Color to set.
Sets the tooltip for the tree item.
hItem
Handle to the tree item.
sTooltip
Tooltip text.
Sets the text of the associated label control.
sText
Moves a window to a new position (x, y) on the X and Y axes.
x
y
Sets or clears the field edit flag for an editable data field, combo box, multi line text field, table window column, or picture.
bSet
Sets the value of a named property.
name
value
length
Selects a tree item.
hItem
Handle to the tree item.
Resizes a window.
width
height
Sets the text of a window.
text
Creates a system timer for a given object. When a timer event occurs, sends SAM_Timer messages to the object in specified intervals. Timers are a limited global resource. Your application must check the value returned by SalTimerSet to verify that the timer was created.
idEvent
elapseMilliSec
Sets a window's color.
colorIndex
color
Shows or hides the checkbox for a tree item.
hItem
Handle to the tree item.
bShow
TRUE to show the checkbox, FALSE to hide it.
Shows or hides the checkboxes for the tree control.
bShow
TRUE to show the checkboxes, FALSE to hide it.
Makes a window visible.
Makes a window and its associated label visible. A label is the label control that immediately precedes the window in the outline.
Creates pop-up menus at runtime.
menuName
flags
x
y
Creates pop-up menus at runtime.
menuType
flags
x
y
Forces the update of a window.
Starts the Windows help system.
file
command
numData
strData
Processes messages for this control.
All SAL controls implement this interface.
All Sal windows (Child windows, Forms, Dialogs and MDIs) implement this interface.
: Shows the root node.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the item was deleted successfully.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: .
Returns: .
Returns: .
Returns: . TRUE if edit has been activated.
Returns: . previous state of the item before this function was called. TRUE if it was enabled, FALSE if it was disabled.
Returns: .
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: .
Returns: . Handle of the tree item whose Data matches the nData parameter.
Returns: . Handle of the item whose title matches the sTitle parameter.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . Handle of the tree item.
Returns: .
Returns: . Number of items.
Returns: . Numeric value assigned to the tree item.
Returns: . Handle of hItem's parent.
Returns: . String title of the item.
Returns: . Current tooltip for the tree item.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . Handle of the next tree item.
Returns: .
Returns: . Handle of the previous tree item.
Returns: .
Returns: .
Returns: . Handle to the selected tree item, or 0 if no item is selected.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . Handle of the newly created item.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . TRUE if the item has a checkbox displayed, FALSE if not.
Returns: . TRUE if the checkbox is checked. If the checkbox is not checked, or is not displayed, bIsChecked is FALSE.
Returns: . TRUE if the item is expanded, FALSE if not.
Returns: . TRUE if the item is selected, FALSE if not.
Returns: . TRUE if the items have a checkbox displayed, FALSE if not.
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: .
Returns: .
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it does not succeed.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . Value that was previously assigned to the tree item.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Font mask. Combine the following: , , , , .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
The format of the picture contents: , ,
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: . TRUE if the function succeeds and FALSE if it fails.
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Returns: .
Message Actions
Window Actions