Frederick Posted October 24, 2019 Share Posted October 24, 2019 I have a TUniMenuItem with a name property of mnuSomething that has the following code in the OnClick event:- showmessage('here'); In another part of the main form, I have a button that has the following code:- mnuSomething.Click; The OnClick event code is not processed and I do not see the message. I have tested the above code in a VCL application and the method call works, as it should. How do I get the OnClick event for the UniGUI application to fire? -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1511) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 24, 2019 Share Posted October 24, 2019 We will check. Quote Link to comment Share on other sites More sharing options...
Frederick Posted October 24, 2019 Author Share Posted October 24, 2019 Ok, thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 24, 2019 Share Posted October 24, 2019 28 minutes ago, Frederick said: The OnClick event code is not processed and I do not see the message. One possible solution for now I think: procedure TMainForm.UniButton1Click(Sender: TObject); begin //mnuSomething.Click; mnuSomethingClick(mnuSomething); end; Quote Link to comment Share on other sites More sharing options...
Frederick Posted October 24, 2019 Author Share Posted October 24, 2019 Thanks. This works. 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.