Tech Tip: Additional details about On Scroll Event
PRODUCT: 4D | VERSION: 15 | PLATFORM: Mac & Win
Published On: August 7, 2015
4D v15 introduces the form event On Scroll (renamed from On Picture Scroll in 4D v14.)
Here are a few things to note about this event:
- The event is only available for picture variables and listboxes
- The picture format must be truncated, and the picture must be smaller than the variable frame (so scrolling is possible.)
- Listbox must have data in it, and must be scrollable.
The event can be triggered when:
- The mouse hovers over object and wheel is scrolled.
- The scroll bar up/down arrow is pressed.
- The scroll bar is dragged (on begin drag.)
When the event is triggered, scroll position is changed first before event is fired off.