Icon View Incident Report

Serious Serious
Reported By: Chris Holland
Reported On: 1/6/2016
For: Version 2.04 Build 1
# 4385 OnShow Event Handler Not Firing for TPage Instances

In the latest version EWB the OnShow event not firing for nested tab controls appears to have resurfaced.

When clicking on the Show Form button – Form2 appears but the “Form 2 Page 1 Show” does not fire, nor does the “Form 2 Inner Page 3” although it is still visible.

(Clicking on the “Page 2” tab and back to “Page 1” fires the onShow event correctly)

unit Unit2;

interface

uses WebHttp, WebCore, WebUI, WebForms, WebCtrls, WebPages, WebBtns, WebGrids, WebData;

type

   TForm2 = class(TForm)
      PagePanel1: TPagePanel;
      Page1: TPage;
      Page2: TPage;
      CloseButton: TButton;
      PagePanel2: TPagePanel;
      InnerPage3: TPage;
      InnerPage4: TPage;
      procedure Page1Show(Sender: TObject);
      procedure Form2Close(Sender: TObject);
      procedure CloseButtonClick(Sender: TObject);
      procedure InnerPage3Show(Sender: TObject);
      procedure Form2Show(Sender: TObject);
   private
      { Private declarations }
   public
      { Public declarations }
   end;

var
   Form2: TForm2;

implementation

procedure TForm2.Page1Show(Sender: TObject);
begin
   LogOutput('Form2 Page 1 Show');
end;

procedure TForm2.Form2Close(Sender: TObject);
begin
   LogOutput('From 2 Closed');
end;

procedure TForm2.CloseButtonClick(Sender: TObject);
begin
   Close();
end;

procedure TForm2.InnerPage3Show(Sender: TObject);
begin
   LogOutput('Form 2 Inner Page 3 Show');
end;

procedure TForm2.Form2Show(Sender: TObject);
begin
   LogOutput('Form 2 Show');
end;

end.



Resolution Resolution
Fixed Problem on 1/10/2016 in version 2.05 build 1


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image