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
Returns the SftBoxColumns object.
Get
| VB.NET | refColumnsObj = object.Columns As SftBoxColumns |
| VB | Set refColumnsObj = object.Columns As SftBoxColumns |
| C#.NET | SftBoxColumns refColumnsObj = object.Columns; |
| VC++ | ISftBoxColumns* refColumnsObj = object->Columns; ISftBoxColumns* refColumnsObj = object->GetColumns(); |
| C | HRESULT object->get_Columns(ISftBoxColumns** refColumnsObj); |
object
refColumnsObj
Returns a reference to the control's SftBoxColumns object.
The Columns property returns the SftBoxColumns object.
The properties and behavior of all columns can be updated using the returned SftBoxColumns object.
A SftBoxColumn object for a specific column can be retrieved using the Column property.
Private Sub UpdateFontNames()
' add all font names
fontNames.BulkUpdate = True
fontNames.Items.Clear()
fontNames.Items.AddFontNames(-1, SftBoxFontConstants.fontSftBoxAll, True, 0)
fontNames.Items.Selection = 0
PerformSort(fontNames, SftBoxSortConstants.sortSftBoxAscending)
fontNames.BulkUpdate = False
fontNames.Columns.MakeOptimal(0)
fontNames.Items.RecalcHorizontalExtent(0)
End Sub
Private Sub UpdateFontStyles()
' add all styles for the current font name
If fontNames.Items.Selection >= 0 Then
Dim OldText As String = fontStyles.Edit.Text
Private Sub UpdateFontNames()
' add all font names
FontNames.BulkUpdate = True
FontNames.Items.Clear
FontNames.Items.AddFontNames -1, fontSftBoxAll, True, 0
FontNames.Items.Selection = 0
PerformSort FontNames
FontNames.BulkUpdate = False
FontNames.Columns.MakeOptimal 0
FontNames.Items.RecalcHorizontalExtent 0
End Sub
Private Sub FontNames_SelectionChange()
UpdateStyles
End Sub
{
// add all font names
fontNames.BulkUpdate = true;
fontNames.Items.Clear();
fontNames.Items.AddFontNames(-1, SftBoxFontConstants.fontSftBoxAll, true, 0);
fontNames.Items.Selection = 0;
PerformSort(fontNames, SftBoxSortConstants.sortSftBoxAscending);
fontNames.BulkUpdate = false;
fontNames.Columns.MakeOptimal(0);
fontNames.Items.RecalcHorizontalExtent(0);
}
private void UpdateFontStyles()
{
// add all styles for the current font name
if (fontNames.Items.Selection >= 0) {
ISftBoxPtr vFontNames = m_FontNames.GetControlUnknown();
vFontNames->BulkUpdate = VARIANT_TRUE;
vFontNames->Items->Clear();
vFontNames->Items->AddFontNames(-1, fontSftBoxAll, VARIANT_TRUE, 0);
vFontNames->Items->Selection = 0;
PerformSort(vFontNames, sortSftBoxAscending);
vFontNames->BulkUpdate = VARIANT_FALSE;
vFontNames->Columns->MakeOptimal(0);
vFontNames->Items->RecalcHorizontalExtent(0);
m_CondHeaders.SetCheck(1);
}
void CFontDlgDlg::UpdateFontStyles()
{See Also SftBox Object | Object Hierarchy
