Jump to content
Steffan

Generate event on Type Def mouse event

Recommended Posts

I want my application to generate an event when a control of a certain Type Def on my GUI is clicked. It needs to be dynamic so when a new Type Def is added to the GUI the application must also generate an event without the need of changing the code. Any help is appriciated. If this is possible...

Share this post


Link to post
Share on other sites

Sure, there's a couple of options but I think what can be done is to on startup, get all control references, then find which ones are type defs, and then get the path to those type defs, and if the path is what you expect, to register for those control references.  Attached is a demo.

Find Type Def Demo_BD.png

Find Type Def Demo.zip

Share this post


Link to post
Share on other sites

Wauw, works perfect! Must say that I was also looking for a solution of finding typedefs but looking into your code I don't think I would be able to come up with this myself. Thanks!

Share this post


Link to post
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.

Guest
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...

Important Information

By using this site, you agree to our Terms of Use.