B4J Code Snippet B4J Scrollpane example

In this thread: AutoShowScrollbar in CustomListView a CustomListView is used to present a row of buttons or labels.
As the CLV uses an internal Scrollpane you can also present the row of buttons using a Scrollpane and a buttons Pane.
Here's how it could look like:
1734512623740.png

The horizontal scrolling is performed by dragging a button left or right.
1734512683379.png

After the dragging you can click on a button if you move the mouse cursor a few pixels (to deactivate the dragging).
The Scrollpane, buttons Pane and button Labels are created in code.
You can find the source code in the attachment.
 

Attachments

  • B4J_scrollpane_example.zip
    4.7 KB · Views: 21
Top