Jump to content

name capture form and component


Alessandro

Recommended Posts

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

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.

  • Upvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...