Scroll bar to the screen

4 messages - 112 views

I want to add the scroll bar to the screen . pls tell how to add the scroll bar to the screen .

To scroll the content of a screen, simply add a ScrollPane to your screen :

<screen>

<scrollpane>

<!-- here your screen content -->

</scrollpane>

</screen>

Thanks for replying Bo,

I have tried this ,and also tried with this option

<screen style="align:fill-top;layout:inlinelayout(false,fill)" >
    <scrollpane style="scrollbar:visible:true">

</scrollpane>

</screen>

 

Here only the colored line appears at the end not the scroll bar.

scrollbar:visible:true doesn't exist you need to use the ScrollPane attribute showScrollBar="true". Take a look at the Widget Reference page.

Else, ScrollPane, because of its unconsistant content doesn't have any content size. In this case, it doesn't make sens to put a ScrollPane in an inlineLayout.

ScrollPane need to be placed in widget with auto spaced layout like GridLayout, BorderLayout (only on center). Else you can specify manualy the min size of your ScrollPane widget with the min-size style property

 

By default the screen layout is GridLayout(1,1) which is compatible with ScrollPane, and ScrollPane scrollBar is visible why not simply use this syntax ?

<screen>

<scrollpane>

<!-- here your screen content -->

</scrollpane>

</screen>