Community
Showing results for 
Search instead for 
Do you mean 
Reply

Custom Control

Bronze Super Contributor
Posts: 1,231
Country: USA

Custom Control

I am creating my first custom control for the top level act! entities. I have created hundreds of custom controls for custom entities in my own designer where I pick up the drop events then do my own serialization.

 

// Create a new HostSurface

 _hostSurfaceManager = new HostSurfaceManager();

// IDesignerSerializationService

 _hostSurfaceManager.AddService(

typeof(System.ComponentModel.Design.Serialization.IDesignerSerializationService), newDesignerSerializationService(_hostSurfaceManager));

 

Now I am creating custom controls for the ACT! Ui designer.

 

How do you implement the component editor when the control is dropped onto the act form designer?

I need to open the act UI so the user can select the desired field.

 

How do you implement serialization on that control?

I need to store the desired field and have it set when the form loads.

 

I have implemented both IComponentDisplayNameSupport and IComponentEditorPageSite but none of the functions ( GetInstanceNameProperty and GetControl) are raised.

 

Thanks in advance.

 

-- Jim Durkin