Missing WEBLIB define in new WebCore projects?

Hi Bruno, thanks for following up!

I'm trying to understand what going on. I came to that missing define while experimenting with TTMSFNCStylesManager, which didn't seem to work as advertised.

To understand how it works, I walked through the sources and found this:
Bildschirmfoto 2023-07-25 um 12.35.42

This is in D11, so you can easily spot that WEBLIBis /not/ defined here, which is why I set WEBLIB on project level, which seems that it makes things work correctly.

Following your hint about TMSWEBDefines, I found that there are actually two versions of that include file:
One in C:\Projekte\TMS\TMS WEB Core RSXE14\Core Source
and the other one in C:\Projekte\TMS\TMS WEB Core RSXE14\Component Library Source
These two versions are different though. The first one defines "WEBLIB", the one in "Component Library Source" does not - which makes sense, as at design time we are technically not in "Web mode", but in VCL mode.

Now here comes the final resolution:
Only" C:\Projekte\TMS\TMS WEB Core RSXE14\Component Library Source" was in my Library Search path, so the compiler only found the include that does not define WEBLIB.

I have no idea if I made a mistake during installation. I now added "C:\Projekte\TMS\TMS WEB Core RSXE14\Core Source" to the library path (before "Component Library Source"), and it seems the styles manager works correctly.

The question is now:
What happens if I wanted to recompile the components? They would pick the wrong include file, I guess ...

That is why I am wondering if it would be more stable to set the "project type define" (i.e. WEBLIB here) on project-level. That way you always know exactly what we are compiling for and don't have to make guesses, depending on different paths ...

Regards,
Olaf