AUI - CenterPane how to show caption

I have a panel with three listctrl's controlled by AUI.

The centerpane within AUI does not show its caption also I set it and do
CaptionVisable(True).

Is there a way to show the caption even for centerpanes or if this is
not possible how could I hide all three captions but still allow
dragging of the individual panes?

Werner

Werner F. Bruhin wrote:

I have a panel with three listctrl's controlled by AUI.

The centerpane within AUI does not show its caption also I set it and do
CaptionVisable(True).

Is there a way to show the caption even for centerpanes

It's still using wx.aui, so it may be a wx.aui vs agw.aui issue, but the WIT is able to show a caption on the center pane. It's the panel that shows the properties of the selected object. Here is the code it uses:

    self.mgr.AddPane(self.info,
                wx.aui.AuiPaneInfo().Name("info").Caption("Object Info").
                CenterPane().CaptionVisible(True).
                CloseButton(False).MaximizeButton(True)
                )

···

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:

Werner F. Bruhin wrote:
  

I have a panel with three listctrl's controlled by AUI.

The centerpane within AUI does not show its caption also I set it and do
CaptionVisable(True).

Is there a way to show the caption even for centerpanes
    
It's still using wx.aui, so it may be a wx.aui vs agw.aui issue, but the WIT is able to show a caption on the center pane. It's the panel that shows the properties of the selected object. Here is the code it uses:

    self.mgr.AddPane(self.info,
                wx.aui.AuiPaneInfo().Name("info").Caption("Object Info").
                CenterPane().CaptionVisible(True).
                CloseButton(False).MaximizeButton(True)
                )

My code is very similar to the above. Tried it with wx.aui, same issue, then thought it might have to do with using listctrl's, so added a wx.Panel as parents of the listctrl's and added the panels to aui, same issue.

Attached is a small sample showing the problem, the middle pane does not show its caption.

Werner

auiCenterPaneCaption.py (3.28 KB)

Hi Werner,

2009/7/30 Werner F. Bruhin:

Robin Dunn wrote:

Werner F. Bruhin wrote:

I have a panel with three listctrl's controlled by AUI.

The centerpane within AUI does not show its caption also I set it and do
CaptionVisable(True).

Is there a way to show the caption even for centerpanes

It's still using wx.aui, so it may be a wx.aui vs agw.aui issue, but the
WIT is able to show a caption on the center pane. It's the panel that
shows the properties of the selected object. Here is the code it uses:

self\.mgr\.AddPane\(self\.info,
            wx\.aui\.AuiPaneInfo\(\)\.Name\("info"\)\.Caption\("Object Info"\)\.
            CenterPane\(\)\.CaptionVisible\(True\)\.
            CloseButton\(False\)\.MaximizeButton\(True\)
            \)

My code is very similar to the above. Tried it with wx.aui, same issue,
then thought it might have to do with using listctrl's, so added a
wx.Panel as parents of the listctrl's and added the panels to aui, same
issue.

Attached is a small sample showing the problem, the middle pane does not
show its caption.

Try to put the CenterPane() before the Caption() and CaptionVisible()
properties, i.e.:

self._mgr.AddPane(self.ingrPairLC, aui.AuiPaneInfo().CenterPane().
                          Name("Ingr").Caption(u'Ingredients pairing
with this drink').CaptionVisible(True))

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Andrea,

Andrea Gavana wrote:
...

Try to put the CenterPane() before the Caption() and CaptionVisible()
properties, i.e.:

self._mgr.AddPane(self.ingrPairLC, aui.AuiPaneInfo().CenterPane().
                          Name("Ingr").Caption(u'Ingredients pairing
with this drink').CaptionVisible(True))
  

That did it. Thanks
Werner