Defines bulk update mode.
Get
| VB | Boolean = object.BulkUpdate As Boolean |
Put
| VB | object.BulkUpdate = Boolean As Boolean |
object
Boolean
Defines bulk update mode.
| Boolean | Description |
|---|---|
| True | A mass-update is beginning. |
| False | A mass-update has ended. |
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.
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
End Sub
Private Sub CheckboxButton_Click()
' define a checkbox image
Dim tb As SftTabsTab
Dim img As SftPictureObject
Set tb = SftTabs1.Tab(SftTabs1.Tabs.Current)
Set img = tb.Image
SftTabs1.BulkUpdate = True
img.Clear
img.Appearance = sftImageCheckboxYes
tb.Align = alignSftTabsLeft
SftTabs1.BulkUpdate = False
End Sub
Private Sub SftTabs1_TabClicked(ByVal DblClick As Boolean, ByVal TabClicked As Integer, ByVal TabArea As SftTabsLib70.SftTabsTabAreaConstants)See Also SftTabs Object | Object Hierarchy