Go to the first, previous, next, last section, table of contents.

Creating a ScrollView

* scrollView size_f comp

scrollView :: (Size -> Size)
	   -> Component (a, DisplayHandle)
	   -> Component ((a, ScrollView), DisplayHandle)

create a scrollable view (X and Y directions) of a component. size_f computes the initial size of the viewing area based on the natural size of the viewed component.

* scrollViewH length_f below comp

scrollViewH :: (Unit -> Unit)
            -> Bool
	    -> Component (a, DisplayHandle)
	    -> Component ((a, ScrollView), DisplayHandle)

create a horisontal scrollable view of a component. The length_f function computes the initial width of the viewing area given the natural width of the viewed component. The second argument, below, control whether the scrollbar should appear below or above the scrollable component.

* scrollViewV length_f rightOf comp

scrollViewV :: (Unit -> Unit)
            -> Bool
	    -> Component (a, DisplayHandle)
	    -> Component ((a, ScrollView), DisplayHandle)

same as scrollViewV, but creates a scrollable view in the Y direction. The second argument control whether the scrollbar should appear on the left or right of the scrollable view.

Go to the first, previous, next, last section, table of contents.