Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnClick not Submitted
#2
Problem can be reproduced easy in your Customstandalone Demo.

Add a IWBUTTON and a OnClick procedure.  All fine.

Now Add a OnResize  procedure.    If you click the Button javascripterror appears.










unit Main;

interface

uses
  Classes, SysUtils, IWAppForm, IWApplication, IWTypes, IWCompLabel,
  Controls, IWBaseControl, IWControl, IWCompText, IWVCLBaseControl,
  IWBaseHTMLControl, IWCompButton;

type
  TIWForm1 = class(TIWAppForm)
    IWText1: TIWText;
    IWLabel1: TIWLabel;
    IWButton1: TIWButton;
    procedure IWButton1Click(Sender: TObject);
    procedure IWAppFormResize(Sender: TObject);
  public
  end;

implementation
{$R *.dfm}

uses
  ServerController;

procedure TIWForm1.IWAppFormResize(Sender: TObject);
begin
 exit;
end;


procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
 IWLabel1.Text := 'Click';
end;


Initialization
  TIWForm1.SetAsMainForm
end.
Reply


Messages In This Thread
RE: OnClick not Submitted - by mludwig@adc-elektronik.de - 06-14-2019, 08:27 AM
RE: OnClick not Submitted - by Alexandre Machado - 06-14-2019, 01:56 PM
RE: OnClick not Submitted - by Alexandre Machado - 06-15-2019, 12:52 AM
RE: OnClick not Submitted - by Alexandre Machado - 06-15-2019, 01:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)