←Select platform

CreateControl Method

Summary

Creates the interactive service.

Syntax
C#
C++/CLI
protected virtual void CreateControl( 
   object owner, 
   Control eventsSource, 
   Control eventsTarget 
) 
protected:  
   virtual void CreateControl( 
      Object^ owner, 
      System::Windows::Forms::Control^ eventsSource, 
      System::Windows::Forms::Control^ eventsTarget 
   ) 

Parameters

owner

The owner of the service. Optional and can be null. This is not used by InteractiveService but can be

used by the application to pass any class and extra data. ImageViewer passes this parameter in the Create method.

eventsSource

The events source control (or HTML element in JavaScript). The events of this element will be subscribed to and converted from raw

mouse and touch to the common events mentioned above. Required and must be a valid control or HTML element on the page.

eventsTarget

The events target control (or HTML element in JavaScript). This is the target will be used to check if the event is

triggered on its surface and all coordinates will be translated based on its position. Required and must be a valid control or HTML element on the page.

Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.