I'd prefer you to fix the problem and send the fix to me :-) or at
least let me know about it.
+- If you run into problems with a missing X11/Xpm.h header, you
+ need to install the XPM package. It can be obtained from:
+
+ ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz
+
+ Alternatively, edit include/motif/setup.h, set wxUSE_XPM
+ to 0, and recompile. You will not be able to load any XPMs,
+ though (currently the only supported colour bitmap format).
+
- Please send bug reports with a description of your environment,
compiler and the error message(s) to the wxwin-users mailing list at:
wxLayoutAlgorithm() {}
// The MDI client window is sized to whatever's left over.
- bool LayoutMDIFrame(wxMDIParentFrame* frame);
+ bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = (wxRect*) NULL);
// mainWindow is sized to whatever's left over.
bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow);
// Normal constructor
wxSashWindow(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = wxSW_3D|wxCLIP_CHILDREN, const wxString& name = "splitter");
+ const wxSize& size = wxDefaultSize, long style = wxSW_3D|wxCLIP_CHILDREN, const wxString& name = "sashWindow");
~wxSashWindow();
// Set whether there's a sash in this position
void SetSashVisible(wxSashEdgePosition edge, bool sash);
// Get whether there's a sash in this position
- inline bool GetSashVisible(wxSashEdgePosition edge) { return m_sashes[edge].m_show; }
+ inline bool GetSashVisible(wxSashEdgePosition edge) const { return m_sashes[edge].m_show; }
// Set whether there's a border in this position
inline void SetSashBorder(wxSashEdgePosition edge, bool border) { m_sashes[edge].m_border = border; }
// Get whether there's a border in this position
- inline bool HasBorder(wxSashEdgePosition edge) { return m_sashes[edge].m_border; }
+ inline bool HasBorder(wxSashEdgePosition edge) const { return m_sashes[edge].m_border; }
// Get border size
- inline int GetEdgeMargin(wxSashEdgePosition edge) { return m_sashes[edge].m_margin; }
+ inline int GetEdgeMargin(wxSashEdgePosition edge) const { return m_sashes[edge].m_margin; }
// Sets the default sash border size
inline void SetDefaultBorderSize(int width) { m_borderSize = width; }
#define wxRELEASE_NUMBER 0
#define wxVERSION_STRING "wxWindows 2.0"
#define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
-#define wxBETA_NUMBER 12
+#define wxBETA_NUMBER 13
#define wxVERSION_FLOAT float(wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0))
#endif
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(TARGET)
nul
$(LIBS)
+$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) -c {$< }
$(CLIENT_TARGET)
nul
$(LIBS)
+ $(CLIENT_TARGET).def
+ $(CLIENT_TARGET).res
!
- brc32 -K $(CLIENT_TARGET).res
client.obj: client.cpp
$(SERVER_TARGET)
nul
$(LIBS)
+ $(SERVER_TARGET).def
+ $(SERVER_TARGET).res
!
- brc32 -K $(SERVER_TARGET).res
server.obj: server.cpp
m_wCursorRow = row;
m_wCursorColumn = col;
- SetCurrentRect(row, col);
+
+ int cw, ch;
+ GetClientSize(&cw, &ch);
+
+ SetCurrentRect(row, col, cw, ch);
+
if (m_currentRectVisible)
HighlightCell(& dc);
m_alignment = wxLAYOUT_TOP;
}
-// These are the functions that wxWin will call to ascertain the window
+// This is the function that wxLayoutAlgorithm calls to ascertain the window
// dimensions.
void wxSashLayoutWindow::OnQueryLayoutInfo(wxQueryLayoutInfoEvent& event)
{
// int flags = event.GetFlags();
int requestedLength = event.GetRequestedLength();
- // This code won't be in the final thing, it's just so we don't have to give it
- // real windows: mock up some dimensions.
-
event.SetOrientation(m_orientation);
event.SetAlignment(m_alignment);
// Called by parent to allow window to take a bit out of the
// client rectangle, and size itself if not in wxLAYOUT_QUERY mode.
-// Will eventually be an event.
void wxSashLayoutWindow::OnCalculateLayout(wxCalculateLayoutEvent& event)
{
// Lays out windows for an MDI frame. The MDI client area gets what's left
// over.
-bool wxLayoutAlgorithm::LayoutMDIFrame(wxMDIParentFrame* frame)
+bool wxLayoutAlgorithm::LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* r)
{
int cw, ch;
frame->GetClientSize(& cw, & ch);
wxRect rect(0, 0, cw, ch);
+ if (r)
+ rect = * r;
wxCalculateLayoutEvent event;
event.SetRect(rect);
nul
$(LIBS)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
$(INCFILE): $(MAKEFILENAME)
copy &&!
nul
$(LIBS)
ogledit.def
+ogledit.res
!
- brc32 -K ogledit.res
.$(SRCSUFF).obj:
bcc32 $(CPPFLAGS) $(INC) -c {$< }
nul
$(LIBS) $(LIBTARGET)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
nul
$(LIBS) $(LIBTARGET)
$(TARGET).def
+$(TARGET).res
!
- brc32 -K $(TARGET).res
test.obj: test.$(SRCSUFF) test.h