get an event set for a gui control

3 posts in this topic

LoWang 1

Hello, I wonder if there is a way to get which function is set to a control by guictrlsetonevent. I have a project in progress and I frequently test some new functions via buttons. I would just like to have those buttons name themselves automatically according to which function is assigned to them.

Thank you

Share this post

Link to post

Share on other sites

willichan 202

I am not aware of a way to do it after the fact. I assume by button names that you mean the captions. You should be able to set those at the same time as you assign the function to the button event. You might even create a function that does both steps for you.