Hi,
I’m running into issues with a custom component. The component is based on a TWebHTMLDiv and contains a TWebDBEdit as well as TWebLabel ( set as sub-components and exposed in the object inspector ). When I compile the project, properties such as ExplicitWidth, ExplicitHeight, and similar are not being ignored. This results in errors during compilation and prevents the project from building successfully. How do I prevent this?
It must be the design-time components that cause that values such as ExplicitWidth, ExplicitHeight are persisted in the DFM file. I think in the first place, it will be important to check why these are being persisted by the IDE.
As a quick & easy solution you could add unused ExplicitWidth, ExplicitHeight properties to the runtime component, as a workaround if you can't avoid that these properties are persisted by the IDE.
The issue seems to be caused by form inheritance. When a component exists only in the form where it is originally placed, no explicit properties are generated and everything compiles without problems. However, when I inherit a form that contains my component, the compiler automatically assigns explicit properties to the subcomponents. These properties trigger compilation errors, and I haven’t found a way to avoid them. I tried adding the unused properties but even that didn't seem to solve the issue.
Do you use the latest version of TMS WEB Core and are you sure you added dummy properties to the runtime component, i.e. the component source code under the "Core Source" folder?