SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Used to define in which area of the control the cell or item is used.
Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public enum UsageLocationEnum;
Public Enum UsageLocationEnum
| Name | Description |
|---|---|
| items | The cell or item is used in the item area. |
| header | The cell or item is used in the header area. |
| footer | The cell or item is used in the footer area. |
Used to define in which area of the control the cell or item is used.
sftTree1.Headers[0, column].SortStatus = fAscending ? SortStatusEnum.Ascending : SortStatusEnum.Descending;
m_sortedColumn = column;
return fAscending;
}
private void SortData(ItemClickEventArgs e)
{
// sort the column last clicked
if (e.Usage != UsageLocationEnum.header) // we are not interested if the click wasn't in the header
return;
if (e.Area != ItemClickAreaEnum.Cell)
return;
bool fAscending = SetSorted(e.Cell.ColumnIndex);
switch (e.Cell.ColumnIndex) {
sftTree1.Headers(0, column).SortStatus = SortStatusEnum.Descending
End If
m_sortedColumn = column
Return fAscending
End Function
Private Sub SortData(ByVal e As ItemClickEventArgs)
' sort the column last clicked
If e.Usage <> UsageLocationEnum.header Then ' we are not interested if the click wasn't in the header
Return
End If
If e.Area <> ItemClickAreaEnum.Cell Then
Return
End If
Dim fAscending As Boolean = SetSorted(e.Cell.ColumnIndex)See Also | Classes | SftTree/NET 2.0
