rubensff Posted July 5, 2013 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 5, 2013 Administrators Share Posted July 5, 2013 We need a bug report with a test case reproducing the issue. Quote Link to comment Share on other sites More sharing options...
rubensff Posted July 10, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
albertovesx Posted July 10, 2013 Share 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 Link to comment Share on other sites More sharing options...
estrify Posted July 11, 2013 Share 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 Link to comment Share on other sites More sharing options...
rubensff Posted July 15, 2013 Author Share Posted July 15, 2013 But i use Firefox and Chrome. Quote Link to comment Share on other sites More sharing options...
rubensff Posted September 2, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
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.