ImageGear Professional v18.2 > User Guide > Using ImageGear > Using ImageGear ARTX Component > Working with ART Marks > Edit Mode, Run Mode, and View Mode |
ART GUI can interact in one of three modes:
Your application can switch the mode from one to another by setting the ART GUI Mode property.
ART Forms (GUI) code implements abstract OcxArtX...Processor objects for each mode:
Those classes are distributed with ImageGear ART GUI 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 OcxArtXViewProcessor: 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 OcxArtXRunProcessor. 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 pointing hand cursor. The 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 OcxArtXEditProcessor.