AnnSetUser Example for Visual Basic
Note: This topic is for Document/Medical only.
'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
Private Sub Command8_Click()
' hide the selected objects
RasterAnn.AnnSetVisible RasterAnn.AnnContainer, False, ANN_FLAG_RECURSE + ANN_FLAG_SELECTED, ""
' set the selected objects to belong to user XXX
RasterAnn.AnnSetUser RasterAnn.AnnContainer, "", "xxx", True
End Sub