I am currently evaluating TMS Web Core 2.9, and I am seriously considering purchasing it.
Im usi templates and one of the most important features for me is the ability to:
create my own custom components, inherited from standard TMS Web Core components;
install them in the IDE;
and use them inside the Web Designer that runs inside the Delphi IDE (the “Web with Designer” mode).
I am experimenting with this scenario, but I encountered a problem:
my custom component only appears in the IDE component palette when the Web Designer is disabled.
As soon as I enable the internal IDE Web Designer (Web with Designer), the component disappears from the palette.
I believe this may require a specific Web Designer–compatible design-time package or a .twcl configuration file, but so far I have not been able to make it work.
Component
[ComponentPlatforms(TMSWebPlatform)]
TISHTMLDiv_WEB = class(TWebHTMLDiv)
private
FID: string;
FIndex: Integer;
protected
procedure Loaded; override;
public
procedure SetVisible(Value: Boolean);
procedure SetColor(AColor: Integer);
procedure SetCaption(ACaption: string);
procedure IS_Set_ID(const Value: string);
function IS_GetName: string;
function IS_Get_ID: string;
function IS_Get_Index: Integer;
published
property Index: Integer read FIndex write FIndex;
end;
What I tried
Creating a runtime package for the component
Creating a design-time package that registers the component
Creating a Web-Designer-compatible package, based on
TMSFNCChartWEB.dprojas a reference
(but I am not using FNC components — only native Web Core components)Rebuilding the Web Designer inside the IDE
Installing the design-time package normally
Despite these attempts, the component still does not appear in the palette when the IDE is running in Web with Designer mode.
What I need
A minimal working example of how to create a Web Designer–compatible design-time package for custom Web Core components.
Documentation or guidelines on how to correctly create or use a
.twclfile.Clarification on whether I need a stub or wrapper unit specifically for Web Designer support.
The required .dproj settings for a Web Designer–compatible design package.
I would like my component palette to be available in both situations:
when Web Designer mode is ON, and
when Web Designer mode is OFF.
Attached
(I can attach any files needed.)
My
.dprojMy
.dpkThe
.twclfile that was generatedMy component source
Screenshot of the palette with Web Designer enabled hank you for your assistance.
Since I plan to invest in TMS Web Core, being able to use my own inherited components inside the IDE Web Designer is essential for my decision.
Kind regards,
Leonardo Fossati Silveira
Intellis Software Ltda.