SoftwareShield
System Feature Guide > User Interface
Customization
User Interface CustomizationThere are two ways your application will be able to customize its UI relative to interaction with the ClientProtector component and enforcement of your license.
The 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 aspects 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) that the ClientProtector might call while it is processing. The following subsection discusses how you can Customize your UI by Connecting to COM Events. Your application will not always get events fired back when you need to invoke some logic of your own. In fact, specific events are generally only fired when ClientProtector processing can not continue without some piece of information from your user. Most function calls you make will simply return and it is the responsibility of your application to interpret the outcome of these calls based on the value of a "return code" reference parameter (passed in the context of that function call). The following sub-section discusses how you can Define Program Logic Based on Return Codes. More InformationFor help on understanding how COM events from the ClientProtector will help you control your UI, see Customize UI by Connecting to COM Events in this Feature Guide. For help on understanding how "return codes" from the ClientProtector will help you control your UI, see Define Program Logic Based on Return Codes in this Feature Guide. For help on actually connecting to the ClientProtector events, see Creating a ClientProtector COM Event Sink in the SoftwareShield ClientProtector Reference. For help on actually interpreting the meaning of specific return_code parameters returned from ClientProtector functions, see RETURNCODES in the SoftwareShield ClientProtector Reference. |