Alessandro Posted August 13, 2015 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. Quote
bugra Posted August 14, 2015 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 Quote
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.