eduardosuruagy Posted April 25, 2023 Share Posted April 25, 2023 I have 2 panels and in them I created some ToolButtons, then I made the ToolButtons reference to the ActionList events, when I click on the ActionList event 1 I need to know which panel is being clicked on, is there a way to find that out? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 26, 2023 Share Posted April 26, 2023 Hello @eduardosuruagy Then don't assign an action at design time. After clicking the toolbutton, set the ActionComponent property of the Action, and call the Execute method. After you can refer to the ActionComponent property. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted April 26, 2023 Author Share Posted April 26, 2023 39 minutes ago, Sherzod said: Olá@eduardosuruagy Então não atribua uma ação em tempo de design. Após clicar no botão de ferramenta, defina a propriedade ActionComponent da Action e chame o método Execute. Depois você pode consultar a propriedade ActionComponent. Thank you very much Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted April 26, 2023 Author Share Posted April 26, 2023 I'm using uniPanel's ToolClick event, can I know the name of the Panel that was clicked? See the example I pToolButtons.rarosted. 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.