Commit Graph

27622 Commits

Author SHA1 Message Date
Robin Dunn
880715c9a9 Add GetClassDefaultAttribute. Since it is static we need to put the
definition in all window classes so the right one will be called on
the C++ side of the fence.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 17:35:43 +00:00
Robin Dunn
6dc779e818 Some tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 17:34:02 +00:00
Robin Dunn
16190e2a11 Oops, forgot to cleanup some commented-out code before last commit.
Setting attributes seems to work okay on both multiline and single
line widgets for both wxGTK and wxGTK2, so don't disable it for
multiline.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 17:33:09 +00:00
Robin Dunn
9d522606d0 Get(Class)DefaultAttributes() for wxGTK controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 17:26:25 +00:00
Vadim Zeitlin
3cfd077ff8 don't create artificial alpha channel for all bitmaps (patch 949221)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 14:52:55 +00:00
Vadim Zeitlin
13e3b9776a corrections from ABX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 14:35:35 +00:00
Vadim Zeitlin
73e52ac829 more updates from Herbert Breunung
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 14:33:37 +00:00
Vadim Zeitlin
f67fe9a423 compilation fix for older compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 07:17:15 +00:00
Vadim Zeitlin
35ef537b2f warning fix for BSD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 07:02:01 +00:00
Vadim Zeitlin
044fe836c1 call InitDialog() before showing the dialog, not after; also TRUE -> true
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 22:46:57 +00:00
Vadim Zeitlin
395b914eae oops, added missing const_cast to make last check in compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 22:45:26 +00:00
Vadim Zeitlin
d16b634fa3 use ResetClipping() instead of simply setting m_clipping to false; added call to it to wxDCBase::DestroyClippingRegion() so that some ports don't have to define their own version of it at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 22:43:57 +00:00
Vadim Zeitlin
2e76da5450 made GetClippingBox() work even for clipping region (pre)set by Windows and not only for clipping regions set using our own SetClippingXXX() functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 22:41:54 +00:00
Vadim Zeitlin
55e9fa681e mention non-const wxDC::GetPen/Font/Brush() removal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 22:36:46 +00:00
Vadim Zeitlin
b33576e164 don't use non-const wxDC::GetBackground() which doesn't exist any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 21:45:36 +00:00
Vadim Zeitlin
2439f37a89 removed non-const accessors for pens, brushes, &c from wxDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 21:44:39 +00:00
Vadim Zeitlin
a47f8e8c0e update from ABX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 12:17:11 +00:00
Stefan Csomor
7d9aac18e9 using const GetPen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 07:18:42 +00:00
Robin Dunn
49bffb1482 Added some info panels that show size and colour attributes about the widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 20:08:00 +00:00
Robin Dunn
d58faf6a26 Added multi-line TextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 18:12:48 +00:00
Vadim Zeitlin
52f18d1919 minor update from Herbert Breunung
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 17:30:17 +00:00
Vadim Zeitlin
4230303c54 check for multiple calls to gtk_glwindow_realized_callback
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 15:00:36 +00:00
Dimitri Schoolwerth
ce1c674598 removed tab characters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 14:25:07 +00:00
Dimitri Schoolwerth
3d2eaa5d59 delayed destruction of global memLocker object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 14:19:30 +00:00
Vadim Zeitlin
5624a7c21f update from Marco Cavallini
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 14:05:03 +00:00
Vadim Zeitlin
6636004d1c GetThumbLength() doesn't exist, GetThumbSize() does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 13:46:58 +00:00
Stefan Csomor
09155be84e allowing shaped windows again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 09:40:47 +00:00
Julian Smart
fc2171bd4c Name change replacements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 08:27:20 +00:00
Julian Smart
e119d0498a Improved real Latex support
Added missing brace for new perlnote


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 07:17:27 +00:00
Robin Dunn
abdeb9e700 Added wxControl::PostCreation for wxGTK. Moved calls to
InheritAttributes and ApplyWidgetStyle there, and added a call to
SetInitialBestSize.   Also removed calls to Show from Create since
PostCreation already does it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 07:09:32 +00:00
Robin Dunn
0886039fa7 Sorted and added StaticBox, StaticLine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 06:39:51 +00:00
Robin Dunn
7dd3d5c68e added notebook test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 03:09:42 +00:00
Dimitri Schoolwerth
a04f431b08 improved backwards compatibility when a wxGauge is (incorrectly) created without wxGA_HORIZONTAL style flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 02:38:09 +00:00
Robin Dunn
6457949e5c Book controls also shouldn't do anything for SetInitialBestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 00:53:19 +00:00
Robin Dunn
7a5a571859 Initial/Best size fixes for wxRadioBox, wxSlider and wxStaticText on wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 23:08:55 +00:00
Robin Dunn
98c092854c cleanup after an exteption in the postcreate code, added StaticText tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 23:06:48 +00:00
Robin Dunn
a24dc1a836 Added ability to execute more code after the widget is created
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 22:58:59 +00:00
Robin Dunn
d1bb3e121f a little cleanup and refresh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 21:31:16 +00:00
Robin Dunn
3bcdbe527f Updated layout test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 20:34:05 +00:00
Robin Dunn
a8d55739f8 Misc tests, scripts, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 17:13:48 +00:00
Vadim Zeitlin
7ec5921d9b set best size after filling the control with strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 12:49:22 +00:00
Vadim Zeitlin
3dfb79a67d removed the old hack needed to size the control properly initially, now it is done by simply calling SetBestSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 12:48:08 +00:00
Vadim Zeitlin
17c48da8ee set min size to initial size when it is explicitly given
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 12:42:46 +00:00
Vadim Zeitlin
929bd5fd5f override SetInitialBestSize() to do nothing (we must add our strings first)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 12:40:29 +00:00
Vadim Zeitlin
085dd1e96f call SetInitialBestSize(), not SetBestSize(), when setting the best size initially
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 12:38:20 +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
Vadim Zeitlin
2aaa050c33 unTABbed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 09:19:05 +00:00
Jouk Jansen
e964136c08 Committing in .
OpenVMS issue

 Modified Files:
 	wxWidgets/src/motif/toplevel.cpp
 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-03 08:09:06 +00:00
Stefan Neis
09990d5a4f Take the inverted coordinate system into account in wxFindMaxSize.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-02 17:12:25 +00:00
Stefan Neis
a00ffdf1c6 Don't choke on NULL pointer passed into wxSlider::GetSize.
Take the inverted coordinate system into account when computing size.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-02 17:05:55 +00:00