EVENT.Mask

Previous  Next

 

status = EVENT.Mask( dwMask AS INTEGER ) AS INTEGER

 


 

Sets the Event Mask that allows you to select what events to allow or block.  Any allowed event will trigger the execution of a MenuBar (ScriptBar) Script.  The following Events ID are currently defined:

 

CONST EVENT_ID_NONE           = 0x0000  

CONST EVENT_ID_EXIT           = 0x0001 ' Signaled by ONEXIT

CONST EVENT_ID_OPEN           = 0x0002 ' Signaled by ONEXIT

CONST EVENT_ID_CLOSE          = 0x0004 ' Signaled by ONCLOSE

CONST EVENT_ID_NEW            = 0x0008 ' Signaled by ONNEW

CONST EVENT_ID_CLICK          = 0x0010 ' Signaled by ONEVENT

CONST EVENT_ID_DBLCLICK       = 0x0020 ' Signaled by ONEVENT

CONST EVENT_ID_RCLICK         = 0x0040 ' Signaled by ONEVENT

CONST EVENT_ID_COPY           = 0x0080 ' Signaled by ONEVENT

CONST EVENT_ID_PASTE          = 0x0100 ' Signaled by ONEVENT

CONST EVENT_ID_ALL            = 0xFFFF

 

The Event Mask is a combination of the Event ID and Event Item Type and is created as

 

MAKELONG( EVENT_ID, EVENT_ITEM_TYPE )

 

The function returns the current Event Mask