TWebButton set Caption doesn't work

Hi,

The button caption was set in the design as
lock_openLogin

when the button is linked to the template by elementid the

self.wbtn2.Caption := 'New caption';

doesn't work but without being linked to the template by elementid works.

The project for repro is attached.
ClearButton.zip (1.6 MB)

This is because you fill the button with different HTML elements and it is in this situation not longer obvious what HTML elements within the button need to be replace. Possible solution:

wbtn2.ElementHandle.innerHTML := 'New Caption';

Ok ... thx ... the solution is working.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.