The type of events sent from wxStyledTextCtrl.
This class is derived, and can use functions, from:
wxWidgets docs: wxStyledTextEvent
Events
Use wxEvtHandler:connect/3 with wxStyledTextEventType to subscribe to events of this type.
Summary
Functions
Returns true if the Alt key is pressed.
Returns true if the Control key is pressed.
Returns drag result for this event.
Deprecated
Returns the current fold level for the line.
Returns previous fold level for the line.
Returns the key code of the key that generated this event.
Returns the length (number of characters) of this event.
Returns zero-based line number for this event.
Returns the number of lines added or deleted with this event.
Returns the list type for this event.
Returns the value of the LParam field for this event.
Returns the zero-based index of the margin that generated this event.
Returns a message number while a macro is being recorded.
Returns the modification type for this event.
Returns the modifiers of the key press or mouse click for this event.
Returns the zero-based text position associated this event.
Returns true if the Shift key is pressed.
Deprecated
Returns value of the WParam field for this event.
Returns the X coordinate of the mouse for this event.
Returns the Y coordinate of the mouse for this event.
Types
-type wxStyledText() :: #wxStyledText{type :: wxStyledTextEvent:wxStyledTextEventType(), position :: integer(), key :: integer(), modifiers :: integer(), modificationType :: integer(), text :: unicode:chardata(), length :: integer(), linesAdded :: integer(), line :: integer(), foldLevelNow :: integer(), foldLevelPrev :: integer(), margin :: integer(), message :: integer(), wParam :: integer(), lParam :: integer(), listType :: integer(), x :: integer(), y :: integer(), dragText :: unicode:chardata(), dragAllowMove :: boolean(), dragResult :: wx:wx_enum()}.
-type wxStyledTextEvent() :: wx:wx_object().
-type wxStyledTextEventType() ::
stc_autocomp_cancelled | stc_autocomp_char_deleted | stc_autocomp_selection |
stc_calltip_click | stc_change | stc_charadded | stc_do_drop | stc_doubleclick |
stc_drag_over | stc_dwellend | stc_dwellstart | stc_hotspot_click | stc_hotspot_dclick |
stc_hotspot_release_click | stc_indicator_click | stc_indicator_release | stc_macrorecord |
stc_marginclick | stc_modified | stc_needshown | stc_painted | stc_romodifyattempt |
stc_savepointleft | stc_savepointreached | stc_start_drag | stc_styleneeded | stc_updateui |
stc_userlistselection | stc_zoom.
Functions
getAlt(This :: wxStyledTextEvent()) -> boolean()
Returns true if the Alt key is pressed.
This method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getControl(This :: wxStyledTextEvent()) -> boolean()
Returns true if the Control key is pressed.
This method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getDragAllowMove(This :: wxStyledTextEvent()) -> boolean()
getDragResult(This :: wxStyledTextEvent()) -> wx:wx_enum()
Returns drag result for this event.
This method is valid for wxEVT_STC_DRAG_OVER and wxEVT_STC_DO_DROP events.
getDragText(This :: wxStyledTextEvent()) -> unicode:charlist()
Deprecated:
Use wxCommandEvent:getString/1 instead.
getFoldLevelNow(This :: wxStyledTextEvent()) -> integer()
Returns the current fold level for the line.
This method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes
?wxSTC_MOD_CHANGEFOLD.
getFoldLevelPrev(This :: wxStyledTextEvent()) -> integer()
Returns previous fold level for the line.
This method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes
?wxSTC_MOD_CHANGEFOLD.
getKey(This :: wxStyledTextEvent()) -> integer()
Returns the key code of the key that generated this event.
This method is valid for the following event types:
wxEVT_STC_CHARADDEDwxEVT_STC_USERLISTSELECTIONwxEVT_STC_AUTOCOMP_SELECTIONwxEVT_STC_AUTOCOMP_COMPLETED
getLength(This :: wxStyledTextEvent()) -> integer()
Returns the length (number of characters) of this event.
This method is valid for wxEVT_STC_MODIFIED and wxEVT_STC_NEEDSHOWN events.
getLine(This :: wxStyledTextEvent()) -> integer()
Returns zero-based line number for this event.
This method is valid for wxEVT_STC_DOUBLECLICK and wxEVT_STC_MODIFIED events.
getLinesAdded(This :: wxStyledTextEvent()) -> integer()
Returns the number of lines added or deleted with this event.
This method is valid for wxEVT_STC_MODIFIED events when the result of getModificationType/1 includes
?wxSTC_MOD_INSERTTEXT or ?wxSTC_MOD_DELETETEXT.
getListType(This :: wxStyledTextEvent()) -> integer()
Returns the list type for this event.
The list type is an integer passed to a list when it is created with the wxStyledTextCtrl:userListShow/3 method and can
be used to distinguish lists if more than one is used.
This method is valid for wxEVT_STC_AUTOCOMP_SELECTION_CHANGE and wxEVT_STC_USERLISTSELECTION
events.
getLParam(This :: wxStyledTextEvent()) -> integer()
Returns the value of the LParam field for this event.
This method is valid for wxEVT_STC_MACRORECORD events.
getMargin(This :: wxStyledTextEvent()) -> integer()
Returns the zero-based index of the margin that generated this event.
This method is valid for wxEVT_STC_MARGINCLICK and wxEVT_STC_MARGIN_RIGHT_CLICK
events.
getMessage(This :: wxStyledTextEvent()) -> integer()
Returns a message number while a macro is being recorded.
Many of the wxStyledTextCtrl methods such as wxStyledTextCtrl:insertText/3 and wxStyledTextCtrl:paste/1 have an event number associated
with them. This method returns that number while a macro is being recorded so that the
macro can be played back later.
This method is valid for wxEVT_STC_MACRORECORD events.
getModificationType(This :: wxStyledTextEvent()) -> integer()
Returns the modification type for this event.
The modification type is a bit list that describes the change that generated this event. It may contain one or more of the following values:
?wxSTC_MOD_INSERTTEXT
?wxSTC_MOD_DELETETEXT
?wxSTC_MOD_CHANGESTYLE
?wxSTC_MOD_CHANGEFOLD
?wxSTC_PERFORMED_USER
?wxSTC_PERFORMED_UNDO
?wxSTC_PERFORMED_REDO
?wxSTC_MULTISTEPUNDOREDO
?wxSTC_LASTSTEPINUNDOREDO
?wxSTC_MOD_CHANGEMARKER
?wxSTC_MOD_BEFOREINSERT
?wxSTC_MOD_BEFOREDELETE
?wxSTC_MULTILINEUNDOREDO
?wxSTC_STARTACTION
?wxSTC_MOD_CHANGEINDICATOR
?wxSTC_MOD_CHANGELINESTATE
?wxSTC_MOD_CHANGEMARGIN
?wxSTC_MOD_CHANGEANNOTATION
?wxSTC_MOD_CONTAINER
?wxSTC_MOD_LEXERSTATE
?wxSTC_MOD_INSERTCHECK
?wxSTC_MOD_CHANGETABSTOPS
This method is valid for wxEVT_STC_MODIFIED events.
getModifiers(This :: wxStyledTextEvent()) -> integer()
Returns the modifiers of the key press or mouse click for this event.
The returned value is a bit list that may contain one or more of the following values:
?wxSTC_KEYMOD_SHIFT
?wxSTC_KEYMOD_CTRL
?wxSTC_KEYMOD_ALT
?wxSTC_KEYMOD_SUPER
?wxSTC_KEYMOD_META
In addition, the value can be checked for equality with ?wxSTC_KEYMOD_NORM to test if no modifiers are present.
This method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getPosition(This :: wxStyledTextEvent()) -> integer()
Returns the zero-based text position associated this event.
This method is valid for the following event types:
wxEVT_STC_STYLENEEDEDwxEVT_STC_DOUBLECLICKwxEVT_STC_MODIFIEDwxEVT_STC_MARGINCLICKwxEVT_STC_NEEDSHOWNwxEVT_STC_USERLISTSELECTIONwxEVT_STC_DWELLSTARTwxEVT_STC_DWELLENDwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_CALLTIP_CLICKwxEVT_STC_AUTOCOMP_SELECTIONwxEVT_STC_AUTOCOMP_SELECTION_CHANGEwxEVT_STC_AUTOCOMP_COMPLETEDwxEVT_STC_MARGIN_RIGHT_CLICK
getShift(This :: wxStyledTextEvent()) -> boolean()
Returns true if the Shift key is pressed.
This method is valid for the following event types:
wxEVT_STC_DOUBLECLICKwxEVT_STC_MARGINCLICKwxEVT_STC_HOTSPOT_CLICKwxEVT_STC_HOTSPOT_DCLICKwxEVT_STC_HOTSPOT_RELEASE_CLICKwxEVT_STC_INDICATOR_CLICKwxEVT_STC_INDICATOR_RELEASEwxEVT_STC_MARGIN_RIGHT_CLICK
getText(This :: wxStyledTextEvent()) -> unicode:charlist()
Deprecated:
Use wxCommandEvent:getString/1 instead.
getWParam(This :: wxStyledTextEvent()) -> integer()
Returns value of the WParam field for this event.
This method is valid for wxEVT_STC_MACRORECORD events.
getX(This :: wxStyledTextEvent()) -> integer()
Returns the X coordinate of the mouse for this event.
This method is valid for the following event types:
wxEVT_STC_DWELLSTARTwxEVT_STC_DWELLENDwxEVT_STC_START_DRAGwxEVT_STC_DRAG_OVERwxEVT_STC_DO_DROP
getY(This :: wxStyledTextEvent()) -> integer()
Returns the Y coordinate of the mouse for this event.
This method is valid for the following event types:
wxEVT_STC_DWELLSTARTwxEVT_STC_DWELLENDwxEVT_STC_START_DRAGwxEVT_STC_DRAG_OVERwxEVT_STC_DO_DROP