From 72fd19a1fb93f72832018a851a4c2dbefe1e9447 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 14 Dec 1998 18:50:32 +0000 Subject: [PATCH] Various; wxRadioButton::GetValue corrected git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/dc.tex | 7 +++++++ docs/latex/wx/expr.tex | 2 ++ samples/dynamic/dynamic.cpp | 2 +- samples/minifram/Makefile.in | Bin 409 -> 434 bytes src/msw/radiobut.cpp | 4 ++-- src/msw/thread.cpp | 10 ++++++++++ src/msw/window.cpp | 8 ++++++-- 7 files changed, 28 insertions(+), 5 deletions(-) diff --git a/docs/latex/wx/dc.tex b/docs/latex/wx/dc.tex index eddddcd335..ecbf200c0b 100644 --- a/docs/latex/wx/dc.tex +++ b/docs/latex/wx/dc.tex @@ -163,6 +163,13 @@ and the current brush for filling the shape. The arc is drawn in an anticlockwise direction from the start point to the end point. +\membersection{wxDC::DrawBitmap}\label{wxdcdrawbitmap} + +\func{void}{DrawBitmap}{\param{const wxBitmap\&}{ bitmap}, \param{long}{ x}, \param{long}{ y}, \param{bool}{ transparent}} + +Draw a bitmap on the device context at the specified point. If {\it transparent} is TRUE and the bitmap has +a transparency mask, the bitmap will be drawn transparently. + \membersection{wxDC::DrawEllipse}\label{wxdcdrawellipse} \func{void}{DrawEllipse}{\param{long}{ x}, \param{long}{ y}, \param{long}{ width}, \param{long}{ height}} diff --git a/docs/latex/wx/expr.tex b/docs/latex/wx/expr.tex index b6fd3020a4..c01a8ece63 100644 --- a/docs/latex/wx/expr.tex +++ b/docs/latex/wx/expr.tex @@ -500,6 +500,8 @@ Writes the database as a LISP-format file. \func{bool}{Write}{\param{ostream\& }{stream}} +\func{bool}{Write}{\param{const wxString\&}{ filename}} + Writes the database as a Prolog-format file. diff --git a/samples/dynamic/dynamic.cpp b/samples/dynamic/dynamic.cpp index 3bf016f19f..44b4d0188c 100644 --- a/samples/dynamic/dynamic.cpp +++ b/samples/dynamic/dynamic.cpp @@ -25,7 +25,7 @@ #include "wx/wx.h" #endif -#ifdef __WXGTK__ +#if defined(__WXGTK__) || defined(__WXMOTIF__) #include "mondrian.xpm" #endif diff --git a/samples/minifram/Makefile.in b/samples/minifram/Makefile.in index 975b6b17022f659aa1186e7da41d16546aba8c4e..7f3d6e20267761f082a976e7546a8878ada6b82e 100644 GIT binary patch delta 37 WcmbQqyoq^3HKQa0E-<;8Q4RoHWCO$i delta 38 pcmdnQJd=4tHKSZ+UUE)pN~(gMo<0PXq~;dnB$lM=tid; } +bool wxThread::IsRunning() const +{ + return (p_internal->state == STATE_RUNNING); +} + +bool wxThread::IsAlive() const +{ + return (p_internal->state == STATE_RUNNING); +} + bool wxThread::IsMain() { return (GetCurrentThread() == p_mainid); diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 68cf6d87c2..6a20945ba8 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -616,6 +616,12 @@ void wxWindow::SetSize(int x, int y, int width, int height, int sizeFlags) { int currentX, currentY; GetPosition(¤tX, ¤tY); + int currentW,currentH; + GetSize(¤tW, ¤tH); + + if (x == currentX && y == currentY && width == currentW && height == currentH) + return; + int actualWidth = width; int actualHeight = height; int actualX = x; @@ -627,8 +633,6 @@ void wxWindow::SetSize(int x, int y, int width, int height, int sizeFlags) AdjustForParentClientOrigin(actualX, actualY, sizeFlags); - int currentW,currentH; - GetSize(¤tW, ¤tH); if (width == -1) actualWidth = currentW ; if (height == -1) -- 2.45.2