rubensff Posted July 5, 2013 Posted July 5, 2013 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? Quote
Administrators Farshad Mohajeri Posted July 5, 2013 Administrators Posted July 5, 2013 We need a bug report with a test case reproducing the issue. Quote
rubensff Posted July 10, 2013 Author Posted July 10, 2013 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! Quote
AlbertoVesx Posted July 10, 2013 Posted July 10, 2013 Sometimes Internet explorer does not show the form. Test your app with firefox to see if the same error happend Quote
estrify Posted July 11, 2013 Posted July 11, 2013 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, Quote
rubensff Posted September 2, 2013 Author Posted September 2, 2013 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.