Julian Smart
45a2f9494e
Added some reserved functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-17 15:49:27 +00:00
Vadim Zeitlin
c3732409ac
simplifications and corrections to background drawing:
...
1. removed ApplyParentThemeBackground() not used any longer
2. removed ProvidesBackground() which is synonymous with
!HasTransparentBackground()
3. removed a whole bunch of unused MSWXXX() methods
4. moved MSWControlColor() from wxWindow up to wxControl
results:
1. the gradient is still shown properly for static/radio boxes in notebooks
2. correct background colour is used for the static boxes
3. code is shorter and better commented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 15:23:08 +00:00
Vadim Zeitlin
e731c9ada2
removed just added UnsetVirtualSize(), it's not needed finally
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 22:19:50 +00:00
Vadim Zeitlin
0bb405ac54
added UnsetVirtualSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 22:18:16 +00:00
Włodzimierz Skiba
e5ecf1fc24
In MSWUniv wxWindow and wxWindowMSW are different classes so we can't access some of protected members (catched only by Borland). Therefore some of the flags related to background needs reading API.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-02 10:57:08 +00:00
Robert Roebling
878ddad57a
Reapplied patch to change the two scrolled window implementations
...
to no longer clip the last bits as a rounding error. I had to
change GetVirtualSize() as per my mail to devs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-12 23:44:24 +00:00
Robert Roebling
85b38e0bd1
Added GetPureVitualSize() returning just m_virtualSize.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-12 15:53:25 +00:00
Włodzimierz Skiba
22dd38478f
World is more than WXUNIV vs. MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-09 07:04:09 +00:00
Vadim Zeitlin
8cfa09bdab
added eraseBg argument to RefreshRect() too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 16:56:15 +00:00
Włodzimierz Skiba
db101bd352
Native PalmOS wxControl and wxButton implementation. wxTLW without fixed size. Unused MSW code cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-24 07:38:52 +00:00
Włodzimierz Skiba
16cba29d3a
Warning fixes for MinGW.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 18:48:22 +00:00
Włodzimierz Skiba
b08cd3bf53
Reenable wxPalmOS status bar after recent changes. Start transition from faked drawing of the bar to usage of the native status bar. Source cleaning as usually.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-21 11:22:11 +00:00
Vadim Zeitlin
6b73af793f
made FindWindow() member functions const (this makes it possible to use XRCCTRL() in const methods)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 23:51:04 +00:00
Vadim Zeitlin
7c7a653bec
moved HasTransparentBackground() from wxUniv to common wxWindow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 16:54:09 +00:00
Włodzimierz Skiba
4055ed8281
Use __WXPALMOS__ for PalmOS port which fits __WX$(TOOLKIT)__ of bakefiles. Do not depend on MSW macros in PalmOS port. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-20 12:44:22 +00:00
Vadim Zeitlin
4cc4e7b6cc
moved ProvidesBackground() from wxUniv to base wxWindow class; use it to prevent inheriting background brush beyond the windows which normally have their own background
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-19 20:51:06 +00:00
Julian Smart
ffecfa5aeb
Committed William Osborne's wxPalmOS port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 13:40:30 +00:00
Włodzimierz Skiba
6fb99eb3b7
Semicolon fixes according to Vadim's note about being danger (OW,BCC,MinGW,DMC tested).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-13 14:04:19 +00:00
Václav Slavík
992b2ec476
propagate invalidated best size upstream
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-08 21:52:52 +00:00
Václav Slavík
571f6981e2
moved wxWindow::GetBestSize implementation into DoGetBestSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 16:37:58 +00:00
Václav Slavík
0fe0275981
changes to make wxWindow::FindFocus work as expected with composite controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 14:34:28 +00:00
Włodzimierz Skiba
cab1a6053d
Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 14:32:35 +00:00
Vadim Zeitlin
ed4780ea6e
added As/DissociateHandle() and implemented it for MSW (modified patch 972356)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 22:17:22 +00:00
Stefan Csomor
ff9f7a12ff
support for sys-opted window variant
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 07:42:44 +00:00
Włodzimierz Skiba
a0d9c6cb91
Spelling fixes [ #1017001 ], source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-04 01:26:40 +00:00
Julian Smart
50c538600e
First step in background erase optimization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-29 10:22:34 +00:00
Julian Smart
7649d8fc00
Stub out SetToolTip to avoid massive ifdefing when encountering
...
a platform that doesn't support them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-26 20:16:19 +00:00
Vadim Zeitlin
87b6002d7c
typo/spelling fixes (patch 983448)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-04 11:19:47 +00:00
Vadim Zeitlin
a24de76b33
added and documented wxWindow::MoveBefore/AfterInTabOrder()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-01 11:44:37 +00:00
Václav Slavík
fa47d7a7ad
SetDefaultXXX -> SetOwnXXX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-30 17:12:03 +00:00
Václav Slavík
f8ff87ed6d
decoupled attributes inheritance and m_hasXXX flags
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-30 13:05:20 +00:00
Robin Dunn
9f88452895
* Implemented BestSize cache
...
* Added calls to InvalidateBestSize where things affecting BestSize
are modified. There are probably several other places where this
still needs to be done...
* Added wxWindowBase::GetBestFittingSize that will merge the BestSize
into the MinSize, (if any) and return the result.
* SetBestFittingSize will now only set the MinSize to the value that
was passed to it, without merging in the BestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 20:09:45 +00:00
Václav Slavík
29094af062
removed non-const wxWindow::GetFont and GetCursor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 11:34:24 +00:00
Robin Dunn
fe161a2685
Controls will readjust their size and minsize when SetLabel or SetFont
...
are called. Fixed up wxStaticText to blend the wxST_NO_AUTOSIZE with
this new functionality. Made SetBestSize public under the
SetBestFittingSize name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 01:35:10 +00:00
Robin Dunn
49f1dc5e8a
Add SetMinSize and SetMaxSize to go along with the Get's already there.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-16 02:15:27 +00:00
Julian Smart
eedc82f4e9
Navigate corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-15 21:55:18 +00:00
Julian Smart
5f6cfda79f
With wxTE_PROCESS_TAB, tabs are now inserted in the text control
...
by default. The new Navigate function can be used to do navigation
programmatically.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-15 14:03:06 +00:00
Václav Slavík
45b8a2566d
removed unneeded prototype
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-09 15:38:09 +00:00
Václav Slavík
971562cb51
use current mouse position as default position in wxWindow::PopupMenu (works better in wxGTK and is what you need in majority of cases)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-03 14:05:30 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Robin Dunn
d3b5db4b25
SetInitialBestSize changes for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-07 04:31:12 +00:00
Vadim Zeitlin
400a9e419b
moved SetBestSize() to .cpp file; set min size from it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 12:33:31 +00:00
Robin Dunn
245c5d2e02
Make InheritAttributes and ShouldInheritColours public so they can be
...
called from derived Python classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-17 02:06:11 +00:00
Robin Dunn
1ebfafde51
Keep track of the initial size that the window was created with, and
...
when the window is added to a sizer use that size with SetSizeHints.
This is to fix problems resulting from the previous change where
SetSizeHints was called with the initial size from CreateBase.
Also, Patch [ 934677 ] wxWindowBase::DoGetBestSize() should exclude hidden windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 22:40:14 +00:00
Vadim Zeitlin
072c5412c2
removed m_bestSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-13 12:25:05 +00:00
Vadim Zeitlin
b8e7b6738f
1. moved InheritAttributes() from wxControl to wxWindow
...
2. made it inherit only the attributes explicitly set for the parent
3. "explicitly set" means set with SetXXX(), not newly added SetDefaultXXX()
4. documented InheritAttributes(), ShouldInheritColours() and SetDefaultXXX()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-08 12:11:22 +00:00
Robin Dunn
1ec25e8ff7
Added some convenience inlines
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-07 05:20:58 +00:00
David Elliott
2654f7e423
Make DoGetBestSize cache the value of GetSize() the first time it is called
...
for the case when the control is a regular window with no children.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-03 05:16:38 +00:00
Vadim Zeitlin
1b69c81574
added Get(Class)DefaultAttributes()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 00:05:13 +00:00