[Pas2js] pas2jswidgets and changing form caption on run-time

Michael Van Canneyt michael at freepascal.org
Tue Feb 28 15:53:48 CET 2023



On Tue, 28 Feb 2023, Mgr. Janusz Chmiel via Pas2js wrote:

> Dear Pas2js developers,
> I can not change form Caption on run-time.
> I Am getting error from Pas2js compiler.
> Is it possible to change form caption on run-time? Or only GUI elements can be changed? Because all other form related components can be changed. I must add Czech characters also to form Caption so I must add it manuály to The corresponding source file.
> I have tried to add it to main unit and also to .lpr file before application.run words. But Caption can not be changed.
> I Am calling pas2js widgets unit.

There is only 'Title', not 'Caption', so you must set

  Document.Title:='Your title';

Michael.


More information about the Pas2js mailing list