Icon View Incident Report

Serious Serious
Reported By: Matthew Jones
Reported On: 5/12/2017
For: Version 2.06 Build 1
# 4521 Hiding the Currently-Focused Item Before a TMenu Control Is Shown Causes Error

There is a bug in the handling of menus. I have a sub-menu with three items. The last one I am making invisible unless a certain condition is met. The code is traversing the sub-menu and gets the Nth visible item, but it isn't visible, so it gets Null and fails. I hope that the image shows you what you need to work it out. If not, I will get you more, but it is currently in backup mode.

procedure TForm1.Button1Click(Sender: TObject);
begin
   Hiding:=True;
   Menu1.LastItem;
   Menu1.Hide;
   Menu1.Show;
end;

procedure TForm1.Menu1Show(Sender: TObject);
begin
   if Hiding then
      MenuItem2.Visible:=False;
end;



Resolution Resolution
Fixed Problem on 5/18/2017 in version 2.06 build 2


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image