Alessandro Posted August 13, 2015 Share Posted August 13, 2015 Hello everyone! I searched here in the threads, but I have not found. I need to know how to do when you click on an object (just click) within a form, return on message shape the form name and the component name I clicked. I thank those who help. Thank you. Olá a todos! Eu procurei aqui nos tópicos, porém eu não encontrei. Eu preciso saber como fazer ao clicar sobre qualquer objeto (simplesmente clicar) dentro de um form, retornar em forma de mensagem o nome do formulário e o nome do componente que eu cliquei. Agradeço a quem ajudar. Obrigado. Link to comment Share on other sites More sharing options...
bugra Posted August 14, 2015 Share Posted August 14, 2015 Hi Alessandro; Add this code in Form's onShow event UniEdit1.ClientEvents.ExtEvents.Values['click']:='function(sender){alert("Form Name: '+MainForm.Name+', Component Name: '+UniEdit1.Name+'")}'; I tried this for UniEdit but it works other UNIGui components too. Just change UniEdit1 which component you wanna click in form. 1 Link to comment Share on other sites More sharing options...
Alessandro Posted August 17, 2015 Author Share Posted August 17, 2015 Tks! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now