PDA

View Full Version : Importing ActiveX Components - Wrong classname in class palette



Raphael Theiler
23-Feb-2016, 03:01 AM
What I did:
I imported the ChilKat components into my new Workspace and created classes, prefixed with "cCK" instead of the default "cCom". I chose to add them to the "ChilKat" group in the class palette (the group did not exist before).

What happened:
All the classes were properly imported and have the proper prefix in the classname.
The entries in the class palette are prefixed "cCom..." instead of "cCK".

What I expected to happen:
The entries in the palette should have the same prefix as the generated classes.

Screenshot:
9800

Stephen W. Meeley
23-Feb-2016, 05:44 AM
Hi Raphael,

The interface to this new feature took me a while to figure it out myself. This is how it works.

When you open the import dialog, set the prefixes for the classes, methods and enums the way you want, before you select the control to import. Then as you pick the control to import you will see all the class names in the grid will have the prefixes you set. When you generate all will then be consistent.

Raphael Theiler
23-Feb-2016, 05:55 AM
I'll try it again this way. This would allow me to use different prefixes for different classes in one import...