Hello, i am trying to scroll horizontally a splitted window, but for some reason it is not working, can someone help me with this issue?
i appreciate the attention
Splitter.py (1.06 KB)
Hello, i am trying to scroll horizontally a splitted window, but for some reason it is not working, can someone help me with this issue?
i appreciate the attention
Splitter.py (1.06 KB)
Thiago Felipe wrote:
Hello, i am trying to scroll horizontally a splitted window, but for
some reason it is not working, can someone help me with this issue?
What did you expect it to do? The MultiSplitterWindow fills the frame,
and therefore is exactly the same size as the frame. There is no extra
off to the right for it to automatically scroll in. The scroll bar in
this case is sending you scroll messages for you to process.
If you want automatic scrolling, then you need to us a ScrolledWindow or
ScrolledPanel, and have the scroll bar there. Then, place the
MultiSplitterWindow inside the ScrolledPanel.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
extra space is exactly what i need because there will be many panels in the application, is there a more appropiate way to represent the panels rather than using scrollbars?
thanks for the attention
2015-09-29 13:56 GMT-03:00 Tim Roberts timr@probo.com:
Thiago Felipe wrote:
Hello, i am trying to scroll horizontally a splitted window, but for
some reason it is not working, can someone help me with this issue?
What did you expect it to do? The MultiSplitterWindow fills the frame,
and therefore is exactly the same size as the frame. There is no extra
off to the right for it to automatically scroll in. The scroll bar in
this case is sending you scroll messages for you to process.
If you want automatic scrolling, then you need to us a ScrolledWindow or
ScrolledPanel, and have the scroll bar there. Then, place the
MultiSplitterWindow inside the ScrolledPanel.
–
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thiago Felipe wrote:
extra space is exactly what i need because there will be many panels
in the application, is there a more appropiate way to represent the
panels rather than using scrollbars?
That's up to you, and how you want your application to look. What I was
trying to point out is that, in order to get automatic scrolling, you
need to have your scrollbar in a window that is larger than its visible
space. You don't.
Here's an example. Imagine a UI that has 10 possible panels, where only
4 are visible at any given time. If I wanted to allow sudden scrolling,
so that the contents of panel 1 move to panel 0, panel 2 moves to panel
1, etc., then you could use the scheme you had created. You would
intercept the scroll bar messages and update the panel set yourself.
That would work, although the scrolling wouldn't be smooth.
If you wanted to have a smooth scrolling window, then you need to use a
wx.ScrolledPanel, which understands how to scroll itself. You would
need to create the panel to be wide enough to hold all 10 sub-panels and
their splitters. As far as your code is concerned, all of the panels
are always visible. The scrolling part is all handled for you.
There are multiple ways to do it. It all depends on what experience you
want your users to have.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.