Posts: 36
Threads: 11
Joined: Oct 2018
Reputation:
0
Location: Lindsay Ontario Canada
(This is - was working in 15.0.24)...
I have a intraweb app with a main page and two frames.
One Frame is aligned to the TOP and contains a TIWMenu
The other Frame is aligned to the LEFT and contaings a TreeView.
The menu on the top navigates to certain pages
The treeview on the left navigates to other pages.
In 15.1.1 the menu navigation works.
The tree view navigation DOES NOT.
This is via the regular click event (no async).
In Debug mode the IDE 'sees' the click event on the menu BUT does not 'see' the treeview click...
Please advise
thanks in advance
regards
Posts: 36
Threads: 11
Joined: Oct 2018
Reputation:
0
Location: Lindsay Ontario Canada
I have been able to reproduce this on a single form.
It has nothing to do with embedded frames.
1. iWmenu on page with menu - the click event gets through...
2. iwFrame with iWtreeNode and items on tree- the click event does not get through...
>>
unit Unit1;
interface
uses
Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Vcl.Menus,
Vcl.Controls, IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl,
IWTMSMenus, IWCompTreeview, Vcl.Forms, IWVCLBaseContainer, IWContainer,
IWHTMLContainer, IWHTML40Container, IWRegion;
type
TIWForm1 = class(TIWAppForm)
iwMnuMain: TTIWMainMenu;
mnuMain: TMainMenu;
mnuFile1: TMenuItem;
mnuMsgBox1: TMenuItem;
rgn1: TIWRegion;
tvwTest: TIWTreeView;
procedure mnuMsgBox1Click(Sender: TObject);
procedure tvwTestTreeItemClick(Sender: TObject;
ATreeViewItem: TIWTreeViewItem);
public
end;
implementation
{$R *.dfm}
procedure TIWForm1.mnuMsgBox1Click(Sender: TObject);
begin
WebApplication.ShowMessage('menu hello!'); //this happens
end;
procedure TIWForm1.tvwTestTreeItemClick(Sender: TObject;
ATreeViewItem: TIWTreeViewItem);
begin
WebApplication.ShowMessage(ATreeViewItem.Caption); //this never happens
end;
initialization
TIWForm1.SetAsMainForm;
end.
Please advise
Posts: 2,301
Threads: 204
Joined: Mar 2018
Reputation:
87
Location: Auckland, New Zealand
I'll have a look and let you know ASAP
Posts: 2,301
Threads: 204
Joined: Mar 2018
Reputation:
87
Location: Auckland, New Zealand
This bug has already been fixed in our code base. We will release an update this weekend which fixes a few issues detected in new branch