wxScrollWinEvent(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– wxScrollWinEvent πŸ’–

okay bestie, so this is the wxScrollWinEvent page from the Erlang module docs β€” that's the Erlang Module Definition manual, section 3, iykyk. it's all about the event that carries info about stuff happening in scrolling windows. let's get into it 🫢


✨ NAME ✨

wxScrollWinEvent β€” a scroll event holds information about events sent from scrolling windows. that's it, that's the vibe. 🌈


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, heads up: you can use the EVT_SCROLLWIN* macros for intercepting scroll window events from the receiving window. keep that in your back pocket, fr fr.

See:

  • wxScrollEvent
  • Overview events

Also, this class is derived, and can use functions, from:

  • wxEvent

wxWidgets docs: wxScrollWinEvent


🌸 Events 🌸

Use wxEvtHandler:connect/3 with wxScrollWinEventType to subscribe to events of this type. that's the whole ritual, no cap. ✨


πŸŽ€ DATA TYPES πŸŽ€

  • wxScrollWin() :: #wxScrollWin{}.
  • wxScrollWinEvent() :: wx:wx_object().
  • ```erlang wxScrollWinEventType() :: scrollwin_top | scrollwin_bottom | scrollwin_lineup | scrollwin_linedown | scrollwin_pageup | scrollwin_pagedown | scrollwin_thumbtrack | scrollwin_thumbrelease.

look at all those atoms. iconic. πŸ‘‘

---

# πŸ’… FUNCTIONS πŸ’…

- **`getOrientation(This) -> integer() when This :: wxScrollWinEvent().`**

Returns `wxHORIZONTAL` or `wxVERTICAL`, depending on the orientation of the scrollbar. two options, pick your fighter. 🧚

- **`getPosition(This) -> integer() when This :: wxScrollWinEvent().`**

Returns the position of the scrollbar for the thumb track and release events.

> ⚠️ Note that this field can't be used for the other events, you need to query the window itself for the current position in that case. literally do not try it for the other events, bestie, it's giving undefined energy πŸ’€ ask the window instead.

---

that's the whole page bestie, every flag and atom accounted for, nothing skipped, periodt. πŸ’œ

this deluxe tour was brought to you by **Ericsson AB**, version **wx 2.6**, and the date stamp on the original `wxScrollWinEvent(3)` footer β€” same page, same facts, way more sparkle. πŸŽ€βœ¨πŸ¦‹πŸŒΈπŸ’–
πŸ“¦ where this page comes from