User Guide > How to Work with... > Annotations > New Annotation API: ArtX > How to... > Manage Annotations > Edit, Run, and View Modes |
ArtXGUI can interact in one of three modes:
Your application can switch the mode from one to another by setting the IG_ARTX_GUI_mode_set function.
ArtXGUI code implements abstract ArtX...Processor objects for each mode:
Those classes are distributed with ImageGear ArtXGUI component and can be modified to fit in your application.
While you are in the View mode, your application will not have to deal with any ART-related events via ArtXViewProcessor: it simply loads the image and ART marks and displays them.
If your application switches to Run mode, then it will have to start dealing with specific ART-related events via ArtXRunProcessor. For example, for an Encryption mark, when the image and ART marks are first loaded and displayed, the Encryption mark will obscure some or all of the image. When the user moves the cursor over the mark, the cursor will change to a pointing hand cursor. ART Forms event handler will display a dialog box asking for the password to enable viewing of that portion of the image, and then (if the user gets the password right), reveal the image.
If your application switches to Edit mode, then it will have to start dealing with specific ART-related events via ArtXEditProcessor.