custom controls

Hello,

I’m having a little trouble with wxSlider. When using the wxSL_TOP (under windows XP), the lower part of the slider gets cut and the ticks are awkwardly placed. Why?

I would also like to have special markings on the line on which the slider slides. Can this be done without creating a custom slider control from scratch? Can the sliding head be changed to a different shape?

How difficult would it be to create a new control (either such a slider or generally speaking) in wxPython?

Thanks a barrel,

Bob.

···

Walla! Mail, Get Your Private, Free E-mail from Walla! at:

http://mail.walla.co.il

hyperbob@walla.com wrote:

Hello,
I'm having a little trouble with wxSlider. When using the wxSL_TOP (under windows XP), the lower part of the slider gets cut and the ticks are awkwardly placed. Why?

Probably a layout bug. On Windows the slider can be a composite of multiple native controls and so the code that sets it all up and handles resizes and such is a mess.

I would also like to have special markings on the line on which the slider slides. Can this be done without creating a custom slider control from scratch?

No.

Can the sliding head be changed to a different shape?

No.

In most cases with the native controls you are limited as to how much of the default behavior and look that you can control.

How difficult would it be to create a new control (either such a slider or generally speaking) in wxPython?

It's not difficult at all. There are several examples in the wx.lib package, I usually point people to buttons.py or stattext.py for a simple example to start with.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!