[SOLVED] Attempted use Pas2JS_Widget. lazarus / 76-Pas2JS ---------------------------------------------------------------------- yus · 2020-12-09 19:08 Hello. When trying to use the project https://github.com/pascaldragon/Pas2JS_Widget. I follow the instructions, but the browser tells me QuoteUncaught exception of type EResNotFound: Form resource TWForm1 not found. For resourceless forms CreateNew constructor must be used. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program project1; {$mode objfpc} uses  Forms, Interfaces, unit1; begin  Application.Initialize;  Application.CreateForm(TWForm1, WForm1);  Application.Run;end. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit Unit1; {$mode objfpc} interface uses  JS, Classes, SysUtils, Graphics, Controls, Forms, Dialogs, WebCtrls; type  TWForm1 = class(TWForm)  private   public   end; var  WForm1: TWForm1; implementation {$R *.lfm} end.         Where i'm wrong? Windows 10, Lazarus 2.1.0, FPC 3.3.1. (trunk version) ---------------------------------------------------------------------- yus · 2020-12-09 19:24 If I manualy create form and control, it's work. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program project1; {$mode objfpc} uses  Forms,  Dialogs,  WebCtrls,  Interfaces,  unit1; var  form: TWForm;  button: TWButton;begin  Application.Initialize;  form := TWForm.Create(Application);  form.Color := $556688;  form.Caption := 'test';  button := TWButton.Create(form);  button.Caption := 'Click';  button.Left := 100;  button.Top := 200;  button.Parent := form;  Application.Run;end. ---------------------------------------------------------------------- yus · 2020-12-09 21:16 Sorry. I lost -JRjs parameter. ---------------------------------------------------------------------- PascalDragon · 2020-12-10 08:38 Quote from: yus on December 09, 2020, 10:16:23 pmSorry. I lost -JRjs parameter. Yes, I still need to adjust the project templates so that one doesn't have to keep that in mind... ---------------------------------------------------------------------- yus · 2020-12-10 10:23 Quote from: PascalDragon on December 10, 2020, 09:38:11 amYes, I still need to adjust the project templates so that one doesn't have to keep that in mind... I liked the project. I'll try to help.  Where i can write bugs? ---------------------------------------------------------------------- PascalDragon · 2020-12-10 15:16 Quote from: yus on December 10, 2020, 11:23:30 amQuote from: PascalDragon on December 10, 2020, 09:38:11 amYes, I still need to adjust the project templates so that one doesn't have to keep that in mind... I liked the project. I'll try to help.  Any help would be welcome. Quote from: yus on December 10, 2020, 11:23:30 amWhere i can write bugs? It should be the issues on the GitHub project, but it seems that I'll need to enable that first... will try to do this when I'm home. ---------------------------------------------------------------------- PascalDragon · 2020-12-10 18:23 Quote from: PascalDragon on December 10, 2020, 04:16:54 pmQuote from: yus on December 10, 2020, 11:23:30 amWhere i can write bugs? It should be the issues on the GitHub project, but it seems that I'll need to enable that first... will try to do this when I'm home. I how have enabled issues on the fork ---------------------------------------------------------------------- yus · 2020-12-10 18:56 Quote from: PascalDragon on December 10, 2020, 07:23:05 pmI how have enabled issues on the fork Nice. I created 2 Pull Request.