Sometimes you need to write a code to be implemented when a user
click on a specific toolbar button so you need to know the name of the toolbar
button first.
For example: if you want to implement a code when a user clicks on
the “New” button in the toolbar of the part form and to do this follow the
below steps:
1.
First you will
create a ToolClick event from “Form Event Wizard”.
2.
You have to get the
name of the “New” button to use it in your condition so you will write the
below line of code in the ToolClick event as below:
3.
Save your customization
and close the form.
4.
Reopen the form
again and don’t forget to choose your customization which you saved it in the
last step.
5.
Click on the new
button and you will get a message box with the name of the “New” button as
below:
6.
Now you can use the
name of the “New” button in your condition as below:
Comments
Post a Comment