I would like to know how to utilize the middle mouse button in my custom visual basic DLL's. I have access to, and am familiar with, the blockstyler tool. I know that many NX dialogs (bridge curve for example) contain middle mouse button actions. These actions either apply the current dialog, OK the dialog, or proceed to the next required item within the dialog. I was wondering if it's possible to utilize the middle mouse button within dialogs, with dialog specific requirements.
For example, I have a list box block on my blockstyler UI. This list box has an add button on it. The user specifies a point in NX and then clicks the add button to save that point within the list box. Could I use the middle mouse button to trigger the add callback to function?
Solved! Go to Solution.
I'm pretty sure in BlockStyler the middle mouse button functionality is handled by NX and you don't have any access to capture that event for your own use.
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | KF
Production: NX188.8.131.52 MP11 64bit Testing: NX184.108.40.206
Can it be identified as to which mouse button was clicked? I would need to differentiate between mouse button 1, 2, and 3.
The keyboard focus notify event is actually triggered when certain blocks get focus, rather than in response to a mouse click: "This callback is used only for those blocks which allow keyboard entries, such as Integer or Double blocks. This callback is invoked when such blocks come into focus."
I do not believe we currently have a method available to assign mouse click events to certain buttons in the Block UI Styler dialog.