Commit Graph

168 Commits

Author SHA1 Message Date
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
Stefan Csomor
f194560ed8 make things simpler, no default variant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-27 06:43:09 +00:00
Robin Dunn
5c2be659f9 Fixed comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-13 20:42:58 +00:00
Robin Dunn
66202a7ee6 I keep running into situations where the old small default window size
was expected, and odd initial layouts resulted, so let's leave only
TLWs at the new 400x250 default size, and give all other windows the
old 20x20 default.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-13 20:41:09 +00:00
Robin Dunn
54313f9ce0 doc fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-10 02:07:02 +00:00
Stefan Csomor
69d90995bb SetWindowVariant implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 12:42:37 +00:00
Robin Dunn
723f8e3a33 Updated comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-05 21:16:28 +00:00
Robin Dunn
a7c26d107d Changed WidthDefault() and HeightDefault() to use 400,250. If there
is a better set of default values feel free to change it, just don't
make them too small for TLWs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-05 21:04:10 +00:00
Robin Dunn
cc0bffaceb Changed CanApplyParentThemeBackground to ApplyParentThemeBackground
and let the windows set the the background colour themselves (or not)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-05 05:28:21 +00:00
Robin Dunn
bd507486e0 Added CanApplyParentThemeBackground and use it in wxMSW's
wxNotebook::ApplyThemeBackground.  It's in the common base classes so
that someday it's usage can expand to the other platforms as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-04 17:03:55 +00:00
Julian Smart
6463b9f539 Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 13:49:22 +00:00
Vadim Zeitlin
06f6df7d46 removed InitBase()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-31 13:26:59 +00:00
Vadim Zeitlin
716e96df2b added default value (0) for flags argument of AdjustForParentClientOrigin()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-22 08:33:32 +00:00
Stefan Csomor
c9cacf3e49 removing RTTI classinfo #define redirections, not needed anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-17 19:48:20 +00:00
Vadim Zeitlin
d4864e971b added ShouldInheritColours()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-16 10:00:12 +00:00
Vadim Zeitlin
311a173bcc removed some TABs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 12:14:44 +00:00