Steffan Posted September 9, 2016 Report Share Posted September 9, 2016 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... Quote Link to comment
hooovahh Posted September 9, 2016 Report Share Posted September 9, 2016 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.zip Quote Link to comment
Steffan Posted September 12, 2016 Author Report Share Posted September 12, 2016 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! Quote Link to comment
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.