Hi Alex,
Interesting, but it should be different :): - the main purpose of the scrollbar is to show the position of the visible part within the overall canvas. However, currently, the size of the scroll bar is constant, and thus it does not solve the goal. To solve this, we need to be able to react to ROCamera bounds change events. - furthermore, when scrolling by clicking and dragging on the canvas, the scrollbars do not get updated (even worse, the vertical one disappears). - another characteristic of a scrollbar is to not be intrusive. We learnt that from Apple that we actually not need a scrollbar when we have a good way to scroll. So, the bars should be transparent and thinner.
Cheers, Doru
On 5 Jun 2012, at 23:24, Alexandre Bergel wrote:
I started to work on it. Not perfect, but a good start I feel. Feel free to try:
| view els stack | view := ROView new. view add: ROElement sprite.
els := ROElement spritesFor: (1 to: 500). els do: [ :el | el + ROLabel @ ROPopup ]. view addAll: (ROGridLayout on: els). view @ RODraggable .
stack := ROViewStack new. stack addView: view. stack @ ROScrollbable. stack open. -=-=-=-=-=-=-=-=-=-=-=-=
Cheers, Alexandre
On Jun 4, 2012, at 10:28 PM, Usman Bhatti wrote:
Hello,
How to we add horizontal and vertical scroll bars to a Roassal visualization. I browsed through some examples but could not find one with these.
tx. usman _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing should have the right to be different."