A script-enabled browser is required for this page to function properly.

SYSTEM.MOUSE_BUTTON_SHIFT_STATE System Variable

Syntax

SYSTEM.MOUSE_BUTTON_SHIFT_STATE

Description

SYSTEM.MOUSE_BUTTON_SHIFT_STATE indicates the key that was pressed during the click, such as SHIFT, ALT, or CONTROL. The value is always a character string. The string itself may depend on the user's platform. For example, in Microsoft Windows, the strings returned are in the language of the operating system.

Key Pressed

Value

SHIFT

Shift+

CONTROL

Ctrl+

ALT

Alt+

SHIFT+CONTROL

Shift+Ctrl+

SYSTEM.MOUSE_BUTTON_SHIFT_STATE Examples

/*

** Trigger: When-Mouse-Click
** Example: If the operator presses down on the Shift key and
** then clicks on a boilerplate image, a window
** appears.
*/
DECLARE
key_pressed VARCHAR(30) := 'FALSE';
x_position_clicked NUMBER(30);
y_position_clicked NUMBER(30);

BEGIN
key_pressed := :System.Mouse_Button_Shift_State;
x_position_clicked := To_Number(:System.Mouse_X_Pos);
y_position_clicked := To_Number(:System.Mouse_Y_Pos);
/*
** If the operator shift-clicked within the x and y
** coordinates of a boilerplate image, display a window.
*/
IF key_pressed = 'Shift+' AND x_position_clicked
BETWEEN 10 AND 20 AND y_position_clicked BETWEEN 10
AND 20 THEN
Show_Window('boilerplate_image_window');
END IF;
END;


SYSTEM.MOUSE_BUTTON_PRESSED examples

SYSTEM.MOUSE_CANVAS examples

SYSTEM.MOUSE_FORM system variable

SYSTEM.MOUSE_ITEM examples

SYSTEM.MOUSE_RECORD examples

SYSTEM.MOUSE_RECORD_OFFSET system variable

SYSTEM.MOUSE_X_POS examples

SYSTEM.MOUSE_Y_POS examples