wxHelpEvent(3)
β¨ wxHelpEvent β¨
okay bestie, welcome to the wxHelpEvent page from the Erlang wx docs π this is the module definition vibe, so let's get into it.
πΈ NAME πΈ
wxHelpEvent β a help event gets sent when the user has asked for context-sensitive help πβ¨
π DESCRIPTION π
So basically, two things can cause this whole situation:
- the application asks for context-sensitive help mode via
wxContextHelp(not implemented in wx, bestie, so don't come for me), or - on MS Windows, the system generates a
WM_HELPmessage when the user pressed F1 or clicked on the query button in a dialog caption π±οΈβ
A help event is sent to the window that the user clicked on, and it's propagated up the window hierarchy until the event is processed or there are no more event handlers left π¦ it's giving "climbing the family tree until somebody answers".
The application should call wxEvent:getId/1 to check the identity of the clicked-on window π and then either show some suitable help or call wxEvent:skip/2 if the identifier is unrecognised.
Calling Skip is important, no cap π₯ because it lets wxWidgets generate further events for ancestors of the clicked-on window. Otherwise it would be literally impossible to show help for container windows, since processing would stop after the first window found. So likeβ¦ skip it, bestie, or your container windows get nothing π
<b>See:</b>
wxDialog- Overview events
This class is derived, and can use functions, from:
wxEvent
wxWidgets docs: wxHelpEvent π
π Events π
Use wxEvtHandler:connect/3 with wxHelpEventType to subscribe to events of this type. subscribe, slay, that's the whole move π«Ά
π DATA TYPES π
wxHelp()::#wxHelp{}.wxHelpEvent()::wx:wx_object().wxHelpEventType()::help | detailed_help.
β FUNCTIONS β
π getOrigin(This) -> wx:wx_enum() when This :: wxHelpEvent().
getOrigin(This) -> wx:wx_enum() when This :: wxHelpEvent().
Returns the origin of the help event, which is one of the wxHelpEvent::Origin values (not implemented in wx, iykyk).
The application may handle events generated using the keyboard or mouse differently, e.g. by using wx_misc:getMousePosition/0 for the mouse events πβ¨
See: setOrigin/2
π§ getPosition(This) -> {X :: integer(), Y :: integer()} when This :: wxHelpEvent().
getPosition(This) -> {X :: integer(), Y :: integer()}
when This :: wxHelpEvent().
Returns the left-click position of the mouse, in screen coordinates π
This allows the application to position the help appropriately β like, put the help bubble where the click actually happened, main character energy π
πΈ setOrigin(This, Origin) -> ok when This :: wxHelpEvent(), Origin :: wx:wx_enum().
setOrigin(This, Origin) -> ok
when This :: wxHelpEvent(), Origin :: wx:wx_enum().
Set the help event origin β only used internally by wxWidgets normally, so like, hands off unless you know what you're doing π
See: getOrigin/1
π¦ setPosition(This, Pt) -> ok when This :: wxHelpEvent(), Pt :: {X :: integer(), Y :: integer()}.
setPosition(This, Pt) -> ok
when
This :: wxHelpEvent(),
Pt :: {X :: integer(), Y :: integer()}.
Sets the left-click position of the mouse, in screen coordinates πβοΈ
aaaand that's the whole page, bestie π this absolute icon came to you from Ericsson AB, wx 2.6, and the date on the tin was the wxHelpEvent(3) era β go forth and handle your help events, periodt πβ¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms