SoftwareShield System
Feature Guide > User Interface Customization > Customize
UI by Connecting to COM Events
Customize UI by Connecting to COM EventsThe ClientProtector component, which is the COM server that enforces the logic of your license, on occasion will need feedback from your user (or at the very least from your program) in the middle of a function call. However, you must be able to completely control the user interface of all aspect of your program to suit your audience and their needs as well as presenting a consistent look and feel. You may also have specific localization or language needs. The ClientProtector facilitates these needs by firing COM events to your software when it needs feedback in the middle of a call - delegating necessary user interaction to your software so you can completely control the UI. Your application can easily define an event handler (sometimes called a call-back function although technically they are different) that the ClientProtector might call while it is processing. Your application does not need to define these event handlers if you do not require them. In the event that they are fired with no handlers connected to them, a default behaviour is invoked. Each event handler section noted below notes the default behaviour. There are seven event handlers which you might need to connect to:
Each of these event handlers have a different set of specific value and reference parameters which will both provide necessary information to your application and allow you to feed-back information to the ClientProtector from either the user, or directly from your application. More InformationTo fully understand the logic that is taking place inside the ClientProtector and when these events will be fired, please refer to the SoftwareShield ClientProtector Control Flow-Charts. For help on actually connecting to the ClientProtector events, see Creating a ClientProtector COM Event Sink in the SoftwareShield ClientProtector Reference. |