How would you prevent user to set position of sash with mouse in a splitter window?

Hi,

How would you prevent user to set position of sash with mouse in a splitter window? Normally, user can move the position of sash with mouse and change the size of splitted windows. I want to prevent this.

Best regards

Hi Steve,

···

On 7/18/2014 13:11, steve wrote:

Hi,

How would you prevent user to set position of sash with mouse in a splitter window? Normally, user can move the position of sash with mouse and change the size of splitted windows. I want to prevent this.

Hhm, why use a splitter if user can't change it?

Some options:
- use two panels instead of splitter and control with sizer
- keep using splitter and use "splitter.SetMinimumPaneSize
- keep using splitter and use "splitter.SetSashInvisible"

Werner

I use wx 2.9.5.0 but I get the following error whrn I try to use SetSashInvisible():

AttributeError: ‘SplitterWindow’ object has no attribute ‘SetSashInvisible’

···

On Friday, July 18, 2014 2:20:42 PM UTC+3, werner wrote:

Hi Steve,

On 7/18/2014 13:11, steve wrote:

Hi,

How would you prevent user to set position of sash with mouse in a
splitter window? Normally, user can move the position of sash with
mouse and change the size of splitted windows. I want to prevent this.

Hhm, why use a splitter if user can’t change it?

Some options:

  • use two panels instead of splitter and control with sizer

  • keep using splitter and use "splitter.SetMinimumPaneSize

  • keep using splitter and use “splitter.SetSashInvisible”

Werner