ImageGear Professional v18.2 > User Guide > Using ImageGear > Using ImageGear ART Component > Creating, Saving, Loading, Modifying and Deleting ART Marks > Modifying Marks via Function Call |
The technique for modifying marks via function call is quite similar to the way that they are created. Your application will have to implement the user interface controls that gather the attributes to be applied to a mark. It will display that user interface for a specific mark - for instance, you could implement the SelectNotify Event handler. In the handler, your code would use the MarkQuery Method to get the selected mark's current attributes, then display your user interface to get new attribute values from the user, then modify the appropriate Attrxxx properties of IGArtPage Object, call MarkModify Method to update the mark, and finally call MarkPaint Method to repaint the mark. Your code would look something like this:
Copy Code
|
|
---|---|
Private Sub IGArtCtl1_SelectNotify(ByVal pPage As GearARTLibCtl.IIGArtPage, ByVal MarkIndex As Long, ByVal fSelectionState As Boolean, ByVal SelectFlag As GearARTLibCtl.IGArtEventParams) pPage.MarkQuery MarkIndex . . <display pPage.AttrXXX values in your UI> . <operate your UI to get new values from user> . ' Now set the AttrXXX values pPage.AttrArcRadius = xxx pPage.AttrArrowLength = xxx pPage.AttrArrowType = xxx . . ' Now update and repaint the mark pPage.MarkModify MarkIndex pPage.MarkPaint MarkIndex End Sub |