Jump to content

name capture form and component


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.


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...