ButtonRows example for Visual Basic
'Please note the following:
'LEADRasterView1 refers to a LEADRasterView control
'Global declarations
Private WithEvents RasterAnn As LEADRasterAnnotation
Private RasterAnnToolbar As LEADRasterAnnToolBar
'In the Form_Load method:
Set RasterAnn = New LEADRasterAnnotation
Set RasterAnnToolbar = New LEADRasterAnnToolBar
RasterAnn.AnnParentRasterView = LEADRasterView1
Public Sub IncrementButtonRows (AnnToolBar As LEADRasterAnnToolBar)
If AnnToolBar.ToolBarhWnd = 0 Then
Exit Sub
End If
AnnToolBar.ButtonRows= AnnToolBar.ButtonRows + 1
End Sub