Frederick Posted March 15, 2022 Share Posted March 15, 2022 I have a TUniTreeMenu with the SourceMenu property pointing to a TUniMenuItems control. TUniMenuItem -> menuitem1 -> menuitem2 -> menuitem3 If I am on menuitem3, how do I set focus to menuitem1 and then run the code in menuitem1's OnClick event? I tried menuitem1Click(menuitem1) but it does nothing. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1558) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15, 2022 Share Posted March 15, 2022 Hello, 10 minutes ago, Frederick said: If I am on menuitem3, how do I set focus to menuitem1 and then run the code in menuitem1's OnClick event? Sorry, could you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
Frederick Posted March 15, 2022 Author Share Posted March 15, 2022 27 minutes ago, Sherzod said: Hello, Sorry, could you please explain in more detail? I'll upload a test case later. Quote Link to comment Share on other sites More sharing options...
Frederick Posted March 15, 2022 Author Share Posted March 15, 2022 6 hours ago, Frederick said: I'll upload a test case later. Here is the test case. What I am trying to achieve is that when I click "Go To Menu 1", menu 1 is focused and the showmessage for menu 1 is displayed. focustreemenuitem.mp4 treemenu2.zip Quote Link to comment Share on other sites More sharing options...
Emmanuel Rosado Posted June 30, 2022 Share Posted June 30, 2022 menuitem1Click(nil) 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.