5
Event Codes
Table 5-1 lists the predefined event codes and their values. Table 5-2 lists the event codes for
the Mouseless Model, and their values.
Table 5-1. Event Codes
Value Event Code Description
0 ASCII_FIRST Marks beginning of ASCII range.
127 ASCII_LAST Marks end of ASCII range.
128 META_FIRST Marks beginning of META range.
255 META_LAST Marks end of META range.
31744 ACTION_NULL_EVENT Event was not translated into an action.
31745 ACTION_ERASE_CHAR_BACKWARD Erase char to the left of caret.
31746 ACTION_ERASE_CHAR_FORWARD Erase char to the right of caret.
31747 ACTION_ERASE_WORD_BACKWARD Erase word to the left of caret.
31748 ACTION_ERASE_WORD_FORWARD Erase word to the right of caret.
31749 ACTION_ERASE_LINE_BACKWARD Erase to the beginning of the line.
31750 ACTION_ERASE_LINE_END Erase to the end of the line.
31752 ACTION_GO_CHAR_BACKWARD Move the caret one character to the left.
31753 ACTION_GO_CHAR_FORWARD Move the caret one character to the right.
31754 ACTION_GO_WORD_BACKWARD Move the caret one word to the left.
31755 ACTION_GO_WORD_FORWARD Move the caret one word to the right.
31756 ACTION_GO_WORD_END Move the caret to the end of the word.
31757 ACTION_GO_LINE_BACKWARD Move the caret to the start of the line.
31758 ACTION_GO_LINE_FORWARD Move the caret to the start of the next line.
31759 ACTION_GO_LINE_END Move the caret to the end of the line.
31760 ACTION_GO_LINE_START Move the caret to the beginning of the line.
31761 ACTION_GO_COLUMN_BACKWARD Move the caret up one line, maintaining column
position.
31762 ACTION_GO_COLUMN_FORWARD Move the caret down one line, maintaining column
position.
31763 ACTION_GO_DOCUMENT_START Move the caret to the beginning of the text.
31764 ACTION_GO_DOCUMENT_END Move the caret to the end of the text.
31765 ACTION_GO_PAGE_FORWARD Move the caret to the next page.
31766 ACTION_GO_PAGE_BACKWARD Move the caret to the previous page.
31767 ACTION_STOP Stop the operation.
Event Codes
Event Codes 231
Table 5-1. Event Codes (continued)
Value Event Code Description
31768 ACTION_AGAIN Repeat previous operation.
31769 ACTION_PROPS Show property sheet window.
31770 ACTION_UNDO Undo previous operation.
31771 ACTION_REDO Repeat previous operation.
31772 ACTION_FRONT Bring window to the front of the desktop.
31773 ACTION_BACK Put the window at the back of the desktop.
31774 ACTION_COPY Copy the selection to the clipboard.
31775 ACTION_OPEN Open a window from its icon form (or close if already
open).
31776 ACTION_CLOSE Close a window to an icon.
31777 ACTION_PASTE Copy clipboard contents to the insertion point.
31778 ACTION_FIND_BACKWARD Find the text selection to the left of the caret.
31779 ACTION_FIND_FORWARD Find the text selection to the right of the caret.
31780 ACTION_REPLACE Show find and replace window.
31781 ACTION_CUT Delete the selection and put on clipboard.
31782 ACTION_SELECT_FIELD_BACKWARD Select the previous delimited field.
31783 ACTION_SELECT_FIELD_FORWARD Select the next delimited field.
31784 ACTION_COPY_THEN_PASTE Copy, then paste, text.
31785 ACTION_STORE Store the specified selection as a new file.
31786 ACTION_LOAD Load the specified selection as a new file.
31787 ACTION_INCLUDE_FILE Includes the file.
31788 ACTION_GET_FILENAME Get the selected filename.
31789 ACTION_SET_DIRECTORY Set the directory to the selection.
31790 ACTION_DO_IT Do the appropriate default action.
31791 ACTION_HELP Set the directory to the selection.
31792 ACTION_INSERT “INSERT” key. This may not be available on all key-
boards.
31796 ACTION_CAPS_LOCK Toggle caps-lock state.
31799 ACTION_SELECT Left mouse button down or up.
31800 ACTION_ADJUST Middle mouse button down or up.
31801 ACTION_MENU Right mouse button down or up.
31802 ACTION_DRAG_MOVE For moving text.
31803 ACTION_DRAG_COPY Attempting to drag copy.
31803 ACTION_SPLIT_HORIZONTAL Split pane horizontally.
31804 ACTION_DRAG_LOAD Attempting to drag load.
31806 ACTION_SPLIT_VERTICAL Split pane vertically.
31807 ACTION_SPLIT_INIT Initialize a split pane.
31808 ACTION_SPLIT_DESTROY Destroy a split of a pane.
31809 ACTION_RESCALE Rescale a pane.
31810 ACTION_PININ Pop up’s OPEN LOOK pushpin in window header is in.
31811 ACTION_PINOUT Pop up’s OPEN LOOK pushpin in window header is
out.
31812 ACTION_DISMISS OPEN LOOK “dismiss” of pop-up window.
31815 ACTION_TAKE_FOCUS Take the input focus.
232 XView Reference Manual
Table 5-1. Event Codes (continued)
Value Event Code Description
31818 KBD_MAP KeymapNotify
31819 WIN_GRAPHICS_EXPOSE GraphicsExpose
31820 WIN_NO_EXPOSE NoExpose
31821 WIN_VISIBILITY_NOTIFY VisibilityNotify
31822 WIN_CREATE_NOTIFY CreateNotify
31823 WIN_DESTROY_NOTIFY DestroyNotify
31824 WIN_MAP_REQUEST MapRequest
31825 WIN_REPARENT_NOTIFY ReparentNotify
31826 WIN_GRAVITY_NOTIFY GravityNotify
31827 WIN_RESIZE_REQUEST ResizeRequest
31828 WIN_CONFIGURE_REQUEST ConfigureRequest
31829 WIN_CIRCULATE_REQUEST CirculateRequest
31830 WIN_CIRCULATE_NOTIFY CirculateNotify
31831 WIN_PROPERTY_NOTIFY PropertyNotify
31835 WIN_COLORMAP_NOTIFY ColormapNotify
31836 MAPPING_NOTIFY MappingNotify
31895 ACTION_MATCH_DELIMITER Select text up to a matching delimiter.
31897 ACTION_QUOTE Cause next event in the input stream to pass.
untranslated by the keymapping system.
31898 ACTION_EMPTY Empty out the object or window.
32000 PANEL_EVENT_CANCEL The panel or panel item is no longer “current.
32256 SCROLLBAR_REQUEST Request the scrollbar client to scroll paint window to a
new view start.
32512 LOC_MOVE MotionNotify – Pointer moves.
32513 LOC_WINENTER EnterNotify – Pointer enters window.
32514 LOC_WINEXIT LeaveNotify – Pointer exits window.
32515 LOC_DRAG MotionNotify Pointer moves while a button was
down.
32516 WIN_REPAINT Expose – Some portion of window requires repainting.
32517 WIN_RESIZE ConfigureNotify – Window has been resized.
32518 WIN_MAP_NOTIFY MapNotify – Notification of window being mapped.
32519 WIN_UNMAP_NOTIFY UnmapNotify Notification of window that is being
unmapped.
32520 KBD_USE FocusIn– Window is now the focus of keyboard input.
32521 KBD_DONE FocusOut Window is no longer the focus of input
from keyboard.
32522 WIN_CLIENT_MESSAGE ClientMessage – A message from another client.
32522 WIN_GRAPHICS_EXPOSE GraphicsExpose Source area for copy is outside of
source window or obscured.
32537 SEL_CLEAR SelectionClear
32538 SEL_REQUEST SelectionRequest
32539 SEL_NOTIFY SelectionNotify
32563+i-1 BUT(i) Press pointer buttons 1–10
Event Codes
Event Codes 233
Table 5-1. Event Codes (continued)
Value Event Code Description
32563 MS_LEFT Press left mouse button.
ButtonPress or ButtonRelease.
32564 MS_MIDDLE Press middle mouse button.
ButtonPress or ButtonRelease.
32565 MS_RIGHT Press right mouse button.
ButtonPress or ButtonRelease
32573+i-1 KEY_LEFT(i) Press left function keys 1–15.
KeyPress or KeyRelease.
32589+i-1 KEY_RIGHT(i) Press right function keys 1–15.
KeyPress or KeyRelease.
32605+i-1 KEY_TOP(i) Press top function keys 1–15.
KeyPress or KeyRelease.
32621+i-1 KEY_BOTTOM(i) “BOTTOM” keys
32621 KEY_BOTTOMLEFT
32621 KEY_BOTTOMFIRST
32622 KEY_BOTTOMRIGHT
32636 KEY_BOTTOMLAST
Table 5-2. Mouseless Event Codes
Value Event Code Definition
31818
ACTION_ACCELERATOR
XVIEW_FIRST+74
31819
ACTION_DELETE_SELECTION XVIEW_FIRST+75
31820
ACTION_ERASE_LINE XVIEW_FIRST+76
31821
ACTION_HORIZONTAL_SCROLLBAR_MENU XVIEW_FIRST+77
31822
ACTION_INPUT_FOCUS_HELP XVIEW_FIRST+78
31823
ACTION_JUMP_DOWN XVIEW_FIRST+79
31824
ACTION_JUMP_MOUSE_TO_INPUT_FOCUS XVIEW_FIRST+80
31825
ACTION_JUMP_UP XVIEW_FIRST+81
31826
ACTION_MORE_HELP XVIEW_FIRST+82
31827
ACTION_MORE_TEXT_HELP XVIEW_FIRST+83
31828
ACTION_NEXT_ELEMENT XVIEW_FIRST+84
31829
ACTION_NEXT_PANE XVIEW_FIRST+85
31830
ACTION_PANE_BACKGROUND XVIEW_FIRST+86
31831
ACTION_PANE_LEFT XVIEW_FIRST+87
31832
ACTION_PANE_RIGHT XVIEW_FIRST+88
31833
ACTION_PANEL_START XVIEW_FIRST+89
31834
ACTION_PANEL_END XVIEW_FIRST+90
31835
ACTION_PREVIOUS_ELEMENT XVIEW_FIRST+91
31836
ACTION_PREVIOUS_PANE XVIEW_FIRST+92
31837
ACTION_QUOTE_NEXT_KEY XVIEW_FIRST+93
234 XView Reference Manual
Table 5-2. Mouseless Event Codes (continued)
Value Event Code Definition
31838 ACTION_RESUME_MOUSELESS XVIEW_FIRST+94
31839
ACTION_SCROLL_DATA_END XVIEW_FIRST+95
31840
ACTION_SCROLL_DATA_START XVIEW_FIRST+96
31841
ACTION_SCROLL_DOWN XVIEW_FIRST+97
31842
ACTION_SCROLL_JUMP_DOWN XVIEW_FIRST+98
31843
ACTION_SCROLL_JUMP_LEFT XVIEW_FIRST+99
31844
ACTION_SCROLL_JUMP_RIGHT XVIEW_FIRST+100
31845
ACTION_SCROLL_JUMP_UP XVIEW_FIRST+101
31846
ACTION_SCROLL_LEFT XVIEW_FIRST+102
31847
ACTION_SCROLL_LINE_END XVIEW_FIRST+103
31848
ACTION_SCROLL_LINE_START XVIEW_FIRST+104
31849
ACTION_SCROLL_RIGHT XVIEW_FIRST+105
31850
ACTION_SCROLL_PANE_DOWN XVIEW_FIRST+106
31851
ACTION_SCROLL_PANE_LEFT XVIEW_FIRST+107
31852
ACTION_SCROLL_PANE_RIGHT XVIEW_FIRST+108
31853
ACTION_SCROLL_PANE_UP XVIEW_FIRST+109
31854
ACTION_SCROLL_UP XVIEW_FIRST+110
31855
ACTION_SELECT_ALL XVIEW_FIRST+111
31856
ACTION_SELECT_DATA_END XVIEW_FIRST+112
31857
ACTION_SELECT_DATA_START XVIEW_FIRST+113
31858
ACTION_SELECT_DOWN XVIEW_FIRST+114
31859
ACTION_SELECT_JUMP_DOWN XVIEW_FIRST+115
31860
ACTION_SELECT_JUMP_LEFT XVIEW_FIRST+116
31861
ACTION_SELECT_JUMP_RIGHT XVIEW_FIRST+117
31862
ACTION_SELECT_JUMP_UP XVIEW_FIRST+118
31863
ACTION_SELECT_LEFT XVIEW_FIRST+119
31864
ACTION_SELECT_LINE_END XVIEW_FIRST+120
31865
ACTION_SELECT_LINE_START XVIEW_FIRST+121
31866
ACTION_SELECT_RIGHT XVIEW_FIRST+122
31867
ACTION_SELECT_PANE_DOWN XVIEW_FIRST+123
31868
ACTION_SELECT_PANE_LEFT XVIEW_FIRST+124
31869
ACTION_SELECT_PANE_RIGHT XVIEW_FIRST+125
31870
ACTION_SELECT_PANE_UP XVIEW_FIRST+126
31871
ACTION_SELECT_UP XVIEW_FIRST+127
31872
ACTION_SUSPEND_MOUSELESS XVIEW_FIRST+128
31873
ACTION_TEXT_HELP XVIEW_FIRST+129
31874
ACTION_TRANSLATE XVIEW_FIRST+130
31875
ACTION_VERTICAL_SCROLLBAR_MENU XVIEW_FIRST+131
Event Codes
Event Codes 235

Get Volume 7B: XView Reference Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.