Jump to content

Problems with opening forms from TUniMainMenu


rubensff

Recommended Posts

1-Windows 7 Professional, Delphi XE, uniGui 0.93

 

Problem:

Hi,

I've been facing some problems trying to show forms using TUniMainMenu.

Sometimes when I click the TUniMainMenu Item, they simply don't show the form.

But when I edit some random line in the unit and recompile, the form shows normally. However, sometimes it doesn't work.

What it would be?

Link to comment
Share on other sites

How would i do a report a bug?
How would I do a test case for opening a form?
There is no error displayed, no bug, simply does not open the form.

I open the form in this way:

procedure TMainForm.itmComissoesClick(Sender: TObject); //Click an option of TUniMainMenu
begin
  //Opening Form
  frmConsComissoes.ShowModal;
end;

Thanks!

Link to comment
Share on other sites

Hi,

Don't know why but we have found that a simple Sleep(500) at the beginning on each menu item's onclick event, makes TUniMainMenu work as expected. In our case, problems were showing message dialogs within menu itme's onclick event... Those problems we only have them with Internet Explorer.

Please, try.

Regards,

Link to comment
Share on other sites

  • 1 month later...

Hi.

Problem solved.

I haven't noticed that some items of the menu were with the property Action set, but the Actions didn't have the codes to open the form. The codes were in the click event.

It seems that Delphi prioritizes the Action property.

 

Huges.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...