aui-pane MinimizeButton issue

Hello,

In my application framework I am using aui manager for creating panes and enabled the “MinimizeButton”

···

,

In following situation this button functionality does not work.(I attached sample code to look )

Is there any solution to workaround for this issue.

appreciate your help.

1.presss “MinimizeButton” on pane2

2.drag minimized pane and close using “close” nutton

3.press “RESTORE PANE2” button avilable in pane1 to restore pane2 back.

4.now again press “MinimizeButton”

from step 4 this MinimizeButton is not effective and pane can not be minimized.

Thanks,

Kondal.

Hello,
In my application framework I am using aui manager for creating panes and
enabled the "MinimizeButton"
In following situation this button functionality does not work.(I attached
sample code to look )
Is there any solution to workaround for this issue.
appreciate your help.
1.presss "MinimizeButton" on pane2
2.drag minimized pane and close using "close" nutton
3.press "RESTORE PANE2" button avilable in pane1 to restore pane2 back.
4.now again press "MinimizeButton"
from step 4 this MinimizeButton is not effective and pane can not be
minimized.
Thanks, Kondal.

I didn't see any attachted code

Sorry ,some how it is missed.

I attached file to test the issue.

Thanks,

–Kondal.

···

On Saturday, July 21, 2012 10:20:19 PM UTC-7, DevPlayer wrote:

Hello,
In my application framework I am using aui manager for creating panes and
enabled the “MinimizeButton”
In following situation this button functionality does not work.(I attached
sample code to look )
Is there any solution to workaround for this issue.
appreciate your help.
1.presss “MinimizeButton” on pane2
2.drag minimized pane and close using “close” nutton
3.press “RESTORE PANE2” button avilable in pane1 to restore pane2 back.
4.now again press “MinimizeButton”
from step 4 this MinimizeButton is not effective and pane can not be
minimized.
Thanks, Kondal.

I didn’t see any attachted code

···

########################################################
import wx
try:
from agw import aui
from agw.aui import aui_switcherdialog as ASD
except ImportError: # if it’s not there locally, try the wxPython lib.
import wx.lib.agw.aui as aui
from wx.lib.agw.aui import aui_switcherdialog as ASD

class MyFrame(wx.Frame):

def init(self, parent, id=-1, title=‘wx.aui Test’,
pos=wx.DefaultPosition, size=(600, 400),
style=wx.DEFAULT_FRAME_STYLE):

wx.Frame.init(self, parent, id, title, pos, size, style)

self._mgr = aui.AuiManager()
self._mgr.SetManagedWindow(self)
# create several text controls
self.ctrl1 = wx.Panel(self,-1,size=(200,400))
self.ctrl2 = wx.Panel(self,-1,size=(300,400))

    self.ctrl1.SetBackgroundColour(wx._gdi.Colour(100,100,100))
    self.ctrl2.SetBackgroundColour(wx._gdi.Colour(255,255,255))

self.ctrl1.SetSizer(wx.BoxSizer(wx.VERTICAL))
self.ctrl2.SetSizer(wx.BoxSizer(wx.VERTICAL))

self.btn4 = wx.Button(self.ctrl1,wx.NewId(),label=‘RESTORE PANE2’)
self.btn4.SetBackgroundColour(wx._gdi.Colour(255,255,255))
self.btn4.Bind(wx.EVT_BUTTON,self.OnRestorePane2)

self.ctrl1.GetSizer().Add(self.btn4)

    self._mgr.AddPane(self.ctrl1,
                     aui.AuiPaneInfo().
                     Left().Layer(1).BestSize((300, -1)).
                     MinSize((160, -1)).
                     Floatable(True).FloatingSize((240, 700)).MinimizeButton(False).PinButton(True).
                     Caption("Pane1").
                     CloseButton(True).MaximizeButton(True).
                     Name(""))

   
    self._mgr.AddPane(self.ctrl2,
                     aui.AuiPaneInfo().
                     Bottom().BestSize((-1, 150)).
                     MinSize((-1, 60)).
                     Floatable(True).FloatingSize((500, 160)).
                     Caption("Pane2").
                     CloseButton(True).MaximizeButton(True).MinimizeButton(True).PinButton(True).
                     Name(""))
   
    self._mgr.Update()

self.Bind(wx.EVT_CLOSE, self.OnClose)

def OnRestorePane2(self,event):

    paneInfo = filter(lambda x:x.caption=='Pane2',self._mgr.GetAllPanes())[0]
    paneInfo.Show()
    self._mgr.Update()

def OnClose(self, event):
self._mgr.UnInit()
self.Destroy()

app = wx.App(False)
frame = MyFrame(None)
frame.Show()
app.MainLoop()
############################################

On Monday, July 23, 2012 11:28:04 AM UTC-7, Kondal Purma wrote:

Sorry ,some how it is missed.

I attached file to test the issue.

Thanks,

–Kondal.

On Saturday, July 21, 2012 10:20:19 PM UTC-7, DevPlayer wrote:

Hello,
In my application framework I am using aui manager for creating panes and
enabled the “MinimizeButton”
In following situation this button functionality does not work.(I attached
sample code to look )
Is there any solution to workaround for this issue.
appreciate your help.
1.presss “MinimizeButton” on pane2
2.drag minimized pane and close using “close” nutton
3.press “RESTORE PANE2” button avilable in pane1 to restore pane2 back.
4.now again press “MinimizeButton”
from step 4 this MinimizeButton is not effective and pane can not be
minimized.
Thanks, Kondal.

I didn’t see any attachted code