Icon View Incident Report

Serious Serious
Reported By: Richard
Reported On: 7/8/2017
For: Version 2.06 Build 4
# 4548 Popup Menus on Modal Dialogs/Forms Are Displaying Behind the Top-Most Dialog/Form

A popup TMenu is parented to the wrong form when activated by a TMenuBar item when the TMenuBar is located on a TDialog that is dynamically created and then displayed via ShowModal.

This can be reproduced as follows:

1. Create a new application with a TForm as the main form.

2. Create a new TDialog and remove it from the auto-create list.

3. Add a TMenuBar to the TDialog and add a TMenuBarItem.

4. Drop a TMenu on the TDialog and set it as the SubMenu property of the TMenuBarItem.

5. Drop a TButton on the TForm and set its OnClick event to the following:


Run the application, click the TButton, click the TMenuBarItem on the TDialog and notice that the TMenu popup does not appear. Drag the TDialog by its caption bar and notice that the TMenu popup appears beneath the TDialog on the TForm.

If the TDialog is displayed by Show rather than ShowModal then the TMenu popup appears on the TDialog as expected. Seems that ShowModal prevents the TMenu from being parented correctly.

Resolution Resolution
Fixed Problem on 7/10/2017 in version 2.06 build 5

Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial