How can I register my own custom control?l
Is this an FNC based web enabled control?
I need a regular web control.
Do you have a file example with register procedure ?
When I put in the line "[ComponentPlatforms(TMSWebPlatform)]" I get a syntax error
The attribute [ComponentPlatforms(TMSWebPlatform)] belongs on the stub you install in the IDE, not on the control class that is compiled in the. Please have a look at the sources in the folder Component Library Source vs the ones in Core Source.
What is a stub?
And again: please send me an example-file of a custom visual component.
A stub class is the class that gets used at design time. Design-time, there is a Win32 VCL environment, not a web HTML environment, hence the need for a stub class.
A full sample for a HTML based custom control is described here:
This was not a full sample.
These are only fragments of a file.
With these examples I can't register my component.
My question is: Which actions I have to make to register my component?
I allready made this file in my new web-package:
uses Classes, WEBLib.Controls, Web;
TWebImageButton = class(TCustomControl)
RegisterComponents('Custom Webcontrols', [TWebImageButton]);
I could compile and install the package.
In my program I put the component on a form, but when i compiled I get the error:
"could not find unit "wImageButton"
What do I have to do?
What you have created here is the stub class for design-time use (used in the IDE, compiled in the IDE)
How do I add my own properties in design-time?
Do I register with RegisterComponents from System.Classes Or WEBLib.DesignIntf ?