clipping

Wxpython 2.5 on linux and windows, runs fine in linux and clips in
windows.

def OnFileNew(self, event):
        self.winCount = self.winCount + 1
        win = self.CreateChildWindow("Untitled Profile: %d" %
self.winCount,
                                     wxDefaultPosition,
                                     wxDefaultSize)
        canvas = ProfileCanvas(win,self)
        EVT_SIZE(win, self.OnChildFrameSize)
        win.Show(True)
## on filenew to create a child window which calls createchildwindow...

def CreateChildWindow(self,title,pos,size):
        if title in self.childFrames:
            win = self.childFrames[title]
            self.ActivateChildWin(win)
        else:
            win = wxMDIChildFrame(self,-1,title,pos,size)
            self.childFrames[title] = win
            EVT_CLOSE(win,self.OnCloseChildFrame)
        return win

## creates the window and returns win and makes call to Profile
Canvas...

class ProfileCanvas(wxScrolledWindow):

    def __init__(self, parent, frame, ID = -1, size = wxDefaultSize):
        wx.ScrolledWindow.__init__(self, parent, ID, wxPoint(0, 0),
size, wxSIMPLE_BORDER)
        self.SetCursor(wxStockCursor(wxCURSOR_ARROW))
        self.maxWidth=2000
        self.maxHeight=2000
        self.x = self.y = 0

        self.SetScrollbars(20,20,self.maxWidth/20,self.maxHeight/20)

etc...

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Monday, August 02, 2004 4:10 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] clipping

Harris, Cole wrote:

When using the wxFrame class my window that is created clips some of

the

vertical scroll bar and all of the horizontal scroll bar. You can see

that its there bc when you resize it shows it self for a brief

instant.

Anyone know how to avoid this problem?

Platform, version and sample code please.

--
Robin Dunn
Software 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