# Scrollbar

**URL:** <https://www.ruby-forum.com/t/scrollbar/174352>\
**Category:** wxRuby\
**Created:** [August 25, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/scrollbar/174352 "2009-08-25T13:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beusse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@beusse](https://www.ruby-forum.com/u/beusse)\
**Post date:** [August 25, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/scrollbar/174352/1 "2009-08-25T13:57:22Z")

</div>

Bonjour.  
Quand j’exÃ©cute mon application et que l’arbre (TreeCtrl) est dÃ©ployÃ©,  
la scrollbar se place vers le bas.  
Est-il possible de la maintenir vers le haut?  
Et si oui, comment faire?  
merci  
SÃ©bastien  
[http://beusse.alwaysdata.net/](http://beusse.alwaysdata.net/)

---

<div class="post-metadata">

**Author:** ![beusse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@beusse](https://www.ruby-forum.com/u/beusse)\
**Post date:** [August 27, 2009, 11:49pm UTC](https://www.ruby-forum.com/t/scrollbar/174352/2 "2009-08-27T23:49:22Z")

</div>

Hello sebastien,

If you are talking about the Scroll bar on the left hand side, that  
controls  
the vertical scroll of the Tree Control, I am not sure of a specific way  
in  
which to manage that. However, it should be noted, that most windows  
with  
scroll bars, inherit from the Wx::ScrolledWindeow class, and should  
expose  
the same API there. I would suggest starting with that, and moving  
forward,  
to see if any of the methods listed there, will work for you.

hth,

Mario

* * *

Hello sebastien,

If you are talking about the Scroll bar on the left hand side, that  
controls  
the vertical scroll of the Tree Control, I am not sure of a specific way  
in  
which to manage that. However, it should be noted, that most windows  
with  
scroll bars, inherit from the Wx::ScrolledWindeow class, and should  
expose  
the same API there. I would suggest starting with that, and moving  
forward,  
to see if any of the methods listed there, will work for you.

hth,

Mario

2009/8/25 sebastien [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![beusse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/439d5e/32.png) [@beusse](https://www.ruby-forum.com/u/beusse)\
**Post date:** [August 27, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/scrollbar/174352/3 "2009-08-27T23:56:23Z")

</div>

Doh, that didn’t go well…

[Traduction franÃ§aise ci-dessous / French Translation Below]

Bonjour SÃ©bastien,

Si vous parlez de la barre de dÃ©filement sur le cÃ´tÃ© gauche, qui  
contrÃ´le le  
dÃ©filement vertical de l’arborescence du contrÃ´le, je ne suis pas sÃ»r  
d’une  
maniÃ¨re spÃ©cifique pour gÃ©rer cela. Toutefois, il convient de noter que  
la  
plupart des fenÃªtres avec des barres de dÃ©filement, hÃ©ritent de la  
mÃ©tÃ©o::  
ScrolledWindeow classe, et devrait exposer la mÃªme API lÃ . Je suggÃ¨re Ã  
commencer par cela, et aller de l’avant, pour voir si l’une des mÃ©thodes  
qui  
y sont Ã©numÃ©rÃ©s, travaillera pour vous.

hth,

Mario
