Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.BulkUpdate Property

Defines bulk update mode.

Syntax

Get
VBBoolean = object.BulkUpdate As Boolean
Put
VBobject.BulkUpdate = Boolean As Boolean

object

A SftTabs object.

Boolean

Defines bulk update mode.

BooleanDescription
TrueA mass-update is beginning.
FalseA mass-update has ended.

Comments

The BulkUpdate property defines bulk update mode.

The BulkUpdate property should be used when many tabs are added to a control or other lengthy operations are performed. By setting the property to True, the control can skip certain internal processing. Once updates are completed, the property has to be set to False. When adding, inserting or deleting tabs, the control may have to recalculate tab locations. This processing can be skipped when the BulkUpdate property is set to True, considerably speeding up the process.

After updating the control, the BulkUpdate property must be set to False. If the property remains set to True, the control will no longer redraw itself properly. The property should be set to True once, before adding many tabs and later set to False once, after all tabs have been added. Repeatedly setting the property to True and False while adding tabs significantly decreases the control's performance.

This property is not available at design-time.

Example

Private Sub Form_Load()
    Dim I As Integer
    With SftTabs1.Direct
        .BulkUpdate = True
        .Scrolling.Style = scrollSftTabsAlwaysRight
        With .Tabs
            For I = 0 To 20
                .Add "Tab " & I
            Next
        End With
    .BulkUpdate = False
    End With
End Sub

See Also SftTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.