im creating a program for a computer with a touchscreen monitor and i have a page that scrolls using a scrolledpannel the problem i have is that the scrollbars are almost too small to press with my finger so i was wondering if there was a way to make the buttons bigger so that i could press them with my finger. if not then i was thinking i would make my own buttons that would cause the window to scroll and just hide the scrollbars. i was looking at wx.EVT_SCROLL would that be the place to look or is there a different event controll for scrolling
justin mcguire wrote:
im creating a program for a computer with a touchscreen monitor and i have a page that scrolls using a scrolledpannel the problem i have is that the scrollbars are almost too small to press with my finger so i was wondering if there was a way to make the buttons bigger so that i could press them with my finger. if not then i was thinking i would make my own buttons that would cause the window to scroll and just hide the scrollbars. i was looking at wx.EVT_SCROLL would that be the place to look or is there a different event controll for scrolling
You'll need to make your own buttons. Their event handlers can call SetScrollPos to update the start of the viewable area.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
ok that worked perfectly, now is there a way to hide the scrollbars that are created from the scrolledpanel?
···
On 8/7/06, Robin Dunn < robin@alldunn.com> wrote:
justin mcguire wrote:
im creating a program for a computer with a touchscreen monitor and i
have a page that scrolls using a scrolledpannel the problem i have is
that the scrollbars are almost too small to press with my finger so i
was wondering if there was a way to make the buttons bigger so that icould press them with my finger. if not then i was thinking i would
make my own buttons that would cause the window to scroll and just hide
the scrollbars. i was looking at wx.EVT_SCROLL would that be the placeto look or is there a different event controll for scrolling
You’ll need to make your own buttons. Their event handlers can call
SetScrollPos to update the start of the viewable area.–
Robin DunnSoftware Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
justin mcguire wrote:
ok that worked perfectly, now is there a way to hide the scrollbars that are created from the scrolledpanel?
I don't think you can. I think that anything that would disable the scrollbars would also disable scrolling. You would probably have to reimplement a number of things to be able to get a window that could scroll its contents without also using scrollbars. For example you could derive a class from wx.Panel, figure out what the virtual size should be, and use self.ScrollWindow from the button event handlers to manage the start of the viewable space, etc. You'll also probably want to handle the child focus events similar to ScrolledPabel in order to keep the focused widget visible.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!