Version: |
1.2, Superseded in 6.0 - See Notes. |
Description: |
Sends a middle button down message to Visual CADD™ effectively selecting a coordinate for a tool, or selecting an entity. |
Declaration: |
|
C/C++ |
extern "C" void WINAPI VCMButtonDown(long lParam, WORD wParam); |
Delphi |
procedure VCMButtonDown(lParam: Longint; wParam: Smallint); stdcall; |
ActiveX/COM |
Sub MButtonDown(ByVal lParam As Long, ByVal wParam As Integer) |
Parameters: |
lParam - a packed coordinate pair as used by Windows. |
Notes: |
Visual CADD™ v6 added a new feature to pan the drawing using a middle mouse button click-and-drag which necessitated a change of the behavior of the middle mouse button in the user interface. As of version 5.0 and to be supported solely for legacy purposes in future versions, VCMButtonDown will run any script assigned to it as B2 in Assign Script, and if no script is assigned will popup a context sensitive popup menu. New tools written for VCADD version 6 and later should use VCMButtonDownEx and VCMButtonUp unless legacy behavior is required. |
See Also: |