ClearKeycode (clear KEYCODE character)

Top  Previous  Next

 

 

ClearKeycode

BYTE

The ClearKeycode property determines whether the PopupClass object clears the (MouseRight) value from the KEYCODE() "buffer" before invoking the selected menu item's action. A value of one (1 or True) sets the KEYCODE() "buffer" to zero; a value of zero (0 or False) leaves the KEYCODE() "buffer" intact. See KEYCODE and SETKEYCODE in the Language Reference for more information.

 

The uncleared KEYCODE() value can cause the popup menu to reappear in some circumstances; therefore we recommend setting the ClearKeycode property to True.

Implementation:

The ABC Templates set the ClearKeycode property to True by default. The Ask method implements the action specified by the ClearKeycode property.

See Also:     Ask, Init