PDA

View Full Version : Using scrollbars inside tabs...


dybomaha
09-16-2004, 03:20 PM
I am trying to use a scrollbar inside a tab.

Using a simple example:


<canvas >
<tabs width="250" height="150">
<tabpane text="one">
<view width="150" height="100" id="theview" clip="true" >
<simplelayout axis="y" spacing="3"/>
<text>1</text>
<text>2</text>
<text>3</text>
<text>4</text>
<text>5</text>
<text>6</text>
<text>7</text>
<text>8</text>
</view>
<scrollbar scrolltarget="theview" align="right" />
</tabpane>

<tabpane text="two">
<button>press two</button>
</tabpane>
</tabs>
</canvas>


The result of this code is that the scroll bars draws, but never shows lines 7 & 8 - it does not scroll.

How can this code be changed to work?

DYBOMAHA

nmquang
09-16-2004, 08:40 PM
Hi,

As my experience, if your control was drawed over the canvas area, the scroll will lost it! so you should increase the canvas size.

Any one can help me on that problem? it mean: how can we scoll a very long list?

Minh Quang