]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt
Actually check if the menu should be shown before popping it up
[wxWidgets.git] / docs / changes.txt
CommitLineData
8870c26e
JS
1wxWindows 2 Change Log
2----------------------
e3a43801 3
bbed9595
VZ
4INCOMPATIBLE CHANGES SINCE 2.2.x
5================================
6
0b74b736
VZ
7 Please take a few minutes to read the following list, especially
8 paying attention to the most important changes which are marked
9 with '!' in the first column.
10
b6421719
VZ
11 Also please note that you should ensure that WXWIN_COMPATIBILITY_2_2
12 is defined to 1 if you wish to retain maximal compatibility with 2.2
13 series -- however you are also strongly encouraged to try to compile
14 your code without this define as it won't be default any longer in
15 2.6 release.
16
17
461f203c
VZ
18wxBase:
19
0b74b736 20! wxArray<T>::Remove(size_t) has been removed to fix compilation problems
461f203c
VZ
21 under 64 bit architectures, please replace it with RemoveAt() in your
22 code.
23
0b74b736 24! wxArray<T> macros have been changed to fix runtime problems under 64 bit
0eeeb25f
VZ
25 architectures and as a side effect of this WX_DEFINE_ARRAY() can only be
26 used now for the pointer types, WX_DEFINE_ARRAY_INT should be used for the
27 arrays containing non-pointers.
28
19924e90
VZ
29- wxObject::CopyObject() and Clone() methods were removed because they
30 simply don't make sense for all objects
31
32- wxEvent now has a pure virtual Clone() method which must be implemented
33 by all derived classes, if you have user-defined event classes please
34 add "wxEvent *Clone() const { return new MyEvent(*this); }" line to them
35
677eff07
VZ
36- small change to wxStopWatch::Pause() semantics, please see the documentation
37
a2d541ca
VZ
38- unlikely but possible incompatibility: the definition of TRUE has changed
39 from "1" to "(bool)1" (and the same thing for FALSE), so the code which
40 could be erroneously compiled previously such as doing "return FALSE" from
41 a function returning a pointer would stop compiling now (but this change
42 is not supposed to have any effects on valid code)
6a9c3625 43
aad65f13
VZ
44- another minor change: wxApp::OnAssert() has a new "cond" argument, you
45 must modify YourApp::OnAssert() signature if you were using it to override
46 the default assert handling.
47
b6421719 48
d73e6791
VZ
49All (GUI):
50
0b74b736 51! the event type constants are not constants any more but are dynamically
eead3ccb
VZ
52 allocated during run-time which means that they can't be used as case labels
53 in the switch()es, you must rewrite them to use if()s instead
54
55 You may also define WXWIN_COMPATIBILITY_EVENT_TYPES to get the old behaviour
2edb0bde 56 but this is strongly discouraged, please consider changing your code
eead3ccb
VZ
57 instead!
58
0b74b736 59! wxDialog does not derive from wxPanel any longer - if you were using it in
01a63363 60 your code, please update it. The quick fix for the most cases is to replace
2edb0bde 61 the occurrences of wxPanel with wxWindow.
01a63363 62
0b74b736
VZ
63! if you handle (and don't skip) EVT_KEY_DOWN, the EVT_CHAR event is not
64 generated at all, so you must call event.Skip() in your OnKeyDown() if
65 you want to get OnChar() as well
66
a8141d3f
VZ
67- wxYES_NO is now wxYES | wxNO and the manifest values of both wxYES and wxNO
68 have changed (to fix some unfortunate clashes), please check your code to
69 ensure that no tests for wxYES or wxNO are broken: for example, the following
70 will *NOT* work any longer:
71
72 if ( flags & wxYES_NO )
73 ... do something ...
74 if ( flags & wxYES )
75 ... do something else ...
76
77- wxGLCanvas now derives directly from wxWindow, not wxScrolledWindow
78
79- wxGridCellAttrProvider class API changed, you will need to update your code
80 if you derived any classes from it
81
d7af2fea
VS
82- wxImage::ComputeHistogram()'s signature changed to
83 unsigned long ComputeHistogram(wxImageHistogram&) const
84
cf72f75f
VZ
85- wxEvtHandler cannot be copied/assigned any longer - this never worked but
86 now it results in compile-time error instead of run-time crashes
87
1a65fc65
VZ
88- WXK_NUMLOCK and WXK_SCROLL keys no longer result in EVT_CHAR() events,
89 they only generate EVT_KEY_DOWN/UP() ones
90
6a9c3625
VZ
91- the dialogs use wxApp::GetTopWindow() as the parent implicitly if the
92 parent specified is NULL, use wxDIALOG_NO_PARENT style to prevent this
93 from happening
94
b6421719
VZ
95- several obsolete synonyms are only retained in WXWIN_COMPATIBILITY_2_2 mode:
96 for example, use wxScrolledWindow::GetViewStart() now instead of ViewStart()
97 and GetCount() instead of Number() in many classes
98
6a9c3625 99
461f203c
VZ
100wxMSW:
101
0b74b736 102! build system changed: setup.h is not a static file in include/wx any more
461f203c
VZ
103 but is created as part of the build process under lib/<toolkit>/wx/include
104 where <toolkit> is of the form (msw|univ)[dll][u][d]. You'll need to update
b239ffb9
VS
105 the include path in your make/project files appropriately. Furthermore,
106 xpm.lib is no longer used by wxMSW, it was superseded by the wxXPMDecoder
107 class. You'll need to remove all references to xpm.lib from your
108 make/project files.
461f203c 109
bbed9595 110- child frames appear in the taskbar by default now, use wxFRAME_NO_TASKBAR
9dfef5ac 111 style to avoid it
bbed9595 112
5230934a
VZ
113- all overloads of wxDC::SetClippingRegion() combine the given region with the
114 previously selected one instead of replacing it
115
05a6a882
VZ
116- wxGetHomeDir() uses HOME environment variable and if it is set will not
117 return the programs directory any longer but its value (this function has
118 never been meant to return the programs directory anyhow)
0b74b736 119
763f5546
VS
120- wxHTML apps don't need to include wx/html/msw/wxhtml.rc in resources file
121 anymore. The file was removed from wxMSW
05a6a882 122
6a9c3625 123
f6656ccb
VZ
124Unix ports:
125
0b74b736 126! You should use `wx-config --cxxflags` in your makefiles instead of
f6656ccb
VZ
127 `wx-config --cflags` for compiling C++ files. CXXFLAGS contains CFLAGS
128 and the compiler flags for C++ files only, CFLAGS should still be used
129 to compile pure C files.
130
188b6ff7 131
0b74b736
VZ
132wxThread and related classes:
133
134- The thread-related classes have been heavily changed since 2.2.x versions
135 as the old code had many serious problems. This could have resulted in
136 semantical changes other than those mentioned here, please review use of
137 wxThread, wxMutex and wxCondition classes in your code.
138
139! wxCondition now *must* be used with a mutex, please read the (updated) class
140 documentation for details and revise your code accordingly: this change was
141 unfortunately needed as it was impossible to ensure the correct behaviour
142 (i.e. absense of race conditions) using the old API.
143
144- wxMutex is not recursive any more in POSIX implementation (it hasn't been
145 recursive in 2.2.x but was in 2.3.1 and 2.3.2), please refer to the class
146 documentation for the discussion of the recursive mutexes.
147
148- wxMutex::IsLocked() doesn't exist any more and should have never existed:
149 this is was unique example of a thread-unsafe-by-design method.
150
151
188b6ff7
VZ
152OTHER CHANGES
153=============
154
d00407b2
VZ
1552.3.3
156-----
157
3cf883a2 158wxBase:
1e3a888e 159
68fbbb7f 160- wxSemaphore class added, many fixed to wxCondition and wxThread (K.S. Sreeram)
1e3a888e
VZ
161- fixes to the command line parsing error and usage messages
162- modified wxFileName::CreateTempFileName() to open the file atomically
163 (if possible) and, especially, not to leak the file descriptors under Unix
2fb203e6 164- memory leak in wxHTTP fixed (Dimitri)
8e1aefe0 165- fixes to AM_PATH_WXCONFIG autoconf macro
d7af2fea 166- added wxHashMap class that replaces type-unsafe wxHashTable and is modelled
68fbbb7f 167 after (non standard) STL hash_map
f35992b0
VS
168- wxLocale now works in Unicode mode
169- wxLocale can now load message catalogs in arbitrary encoding
03baf031 170- fixed the bug related to the redrawing on resize introduced in 2.3.2
142b3bc2
VS
171- added static wxFontMapper::Get() accessor (use of wxTheFontMapper is now
172 deprecated)
f6ba47d9 173- added wxShutdown() function (Marco Cavallini)
1e3a888e 174
188b6ff7
VZ
175Unix (Base/GUI):
176
177- wxWindows may be built using BSD and Solaris (and possibly other) make
178 programs and not only GNU make
0dbfd66d 179- wxTCP-based IPC classes now support communicating over Unix domain sockets
c4dbf151
GD
180- wxWindows may be built as a dynamic shared library under Darwin / Mac OS X
181 lazy linking issues have been solved by linking a single module (.o) into
182 the shared library (two step link using distrib/mac/shared-ld-sh)
3bc65ea9 183- fixed thread priority setting under Linux
188b6ff7 184
3cf883a2
VZ
185All (GUI):
186
68fbbb7f
VZ
187- it is now possible to set the icons of different sizes for frames (e.g. a
188 small and big ones) using the new wxIconBundle class
c631abda
VZ
189- implemented radio menu items and radio toolbar buttons
190- added possibility to show text in the toolbar buttons
a460c732
VS
191- added wxArtProvider class that can be used to customize the look of standard
192 wxWindows dialogs
ccef86c7 193- significantly improved native font support
d7af2fea
VS
194- wxImage::ComputeHistogram() now uses wxImageHistogram instead of type-unsafe
195 wxHashTable
7a82af5f 196- added IFF image handler
3cf883a2 197- fixed using custom renderers in wxGrid which was broken in 2.3.2
b1eeda40 198- support for multiple images in one file added to wxImage (TIFF, GIF and ICO formats)
7a82af5f 199- support for CUR and ANI files in wxImage added (Chris Elliott)
a5aa8086 200- wxTextCtrl::GetRange() added
bf31fa26 201- added wxGetFontFromUser() convenience function
ccef86c7 202- added EVT_MENU_OPEN and EVT_MENU_CLOSE events
42a6fe0e 203- added Hungarian translations (Janos Vegh)
45647dcf 204- added wxImage::SaveFile(filename) method (Chris Elliott)
a8a72106
JS
205- added wxImage::FloodFill and implemented wxWindowDC::DoFloodFill method
206 for GTK+, Mac, MGL, X11, Motif ports (Chris Elliott)
9c7df356 207- added (platform-dependent) scan code to wxKeyEvent (Bryce Denney)
94af7d45 208- added wxTextCtrl::EmulateKeyPress()
a5e84126 209- Added wxMouseCaptureChangedEvent
aaae8296 210- Added custom character filtering to wxTextValidator
cb59313c 211- wxTreeCtrl now supports incremental keyboard search
fc0d5b6b
JS
212- wxHelpProvider::RemoveHelp added and called from ~wxWindowBase
213 so that erroneous help strings are no longer found as the hash
214 table fills up
3cf883a2 215
d00407b2
VZ
216wxMSW:
217
7d6d3bf3 218- small appearance fixes for native look under Windows XP
5b2f31eb 219- refresh the buttons properly when the window is resized (Hans Van Leemputten)
b2d5a7ee
VZ
220- huge (40*) speed up in wxMask::Create()
221- changing wxWindows styles also changes the underlying Windows window style
45647dcf 222- wxTreeCtrl supports wxTR_HIDE_ROOT style (George Policello)
d00407b2 223- fixed flicker in wxTreeCtrl::SetItemXXX()
1e3a888e 224- fixed redraw problems in dynamically resized wxStaticText
90c1530a
VZ
225- improvements to wxWindows applications behaviour when the system colours
226 are changed
7c349adb 227- fixed wxProgressDialog for ranges > 65535
3d9fe7b2
VZ
228- wxSpinButton and wxSpinCtrl now support full 32 bit range (if the version
229 of comctl32.dll installed on the system supports it)
98e6fc81 230- wxFontEnumerator now returns all fonts, not only TrueType ones
e33e0b44
VZ
231- bugs in handling wxFrame styles (border/caption related) fixed
232- showing a dialog from EVT_RADIOBUTTON handler doesn't lead to an infinite
233 recursion any more
2fb203e6 234- wxTextCtrl with wxTE_RICH flag scrolls to the end when text is appended to it
7509fa8c 235- the separators are not seen behind the controls added to the toolbar any more
fd7ab28c 236- wxLB_SORT style can be used with wxCheckListBox
994a3786 237- wxWindowDC and wxClientDC::GetSize() works correctly now
8292017c
VZ
238- Added wxTB_NODIVIDER and wxTB_NOALIGN so native toolbar can be used in FL
239- Multiline labels in buttons are now supoprted (simply use "\n" in the label)
a5e84126
JS
240- Implemented wxMouseCaptureChangedEvent and made wxGenericDragImage check it
241 has the capture before release it.
d90879fa 242- fixed bugs in multiple selection wxCheckListBox
036da5e3 243- default button handling is now closer to expected
bd9cd534 244- setting tooltips for wxSlider now works
3bc65ea9
JS
245- multiple events avoided in wxComboBox
246- tooltip asserts avoided for read-only wxComboBox
247- fixed a race condition during a thread exit and a join
248- fixed a condition where a thread can hang during
249 message/event processing
d00407b2 250
b42f739a
VS
251wxGTK:
252
253- wxDirDialog now presents the file system in standard Unix way
7a82af5f
VS
254- wxButton now honours wxBU_EXACTFIT
255- wxStaticBox now honours wxALIGN_XXX styles
a070d8ce 256- added support for non alphanumeric simple character accelerators ('-', '=')
c3016fd6
VS
257- new behaviour for wxWindow::Refresh() as it now produces a delayed refresh.
258 Call the new wxWindow::Update() to force an immediate update
259- support for more SGI hardware (12-bit mode among others)
260- fixed wxDC::Blit() to honour source DC's logical coordinates
261- implemented wxIdleEvent::RequestMore() for simple background tasks
645420d8 262- implemented wxChoice::Delete()
7a82dabc 263- fixed bad memory leak in wxFileDialog (Chris Elliott)
3bc65ea9 264- made internal GC pool dynamically growable
b42f739a 265
4fd5055c
VS
266wxHTML:
267
31f34052
VS
268- fixed wxHtmlHelpController's cache files handling on big endian machines
269- added blocking and redirecting capabilities to wxHtmlWindow via
270 wxHtmlWindow::OnOpeningURL()
2755d437 271- fixed alignment handling in tables
955c525d 272- fixed <font face="..."> handling to be case insensitive
4fd5055c 273
614391dc 2742.3.2
a553cb8b
VZ
275-----
276
461f203c
VZ
277New port: wxUniv for Win32/GTK+ is now included in the distribution.
278
a553cb8b
VZ
279wxBase:
280
281- wxRegEx class added
eadd7bd2 282- wxGetDiskSpace() function added (Jonothan Farr, Markus Fieber)
a3a584a7 283- wxTextBuffer and wxTextFile(wxStream) added (Morten Hanssen)
eadd7bd2 284- more fixes to wxMBConv classes. Conversion to and from wchar_t now works with
30341997
VS
285 glibc 2.2 as well as with glibc 2.1. Unix version now checks for iconv()'s
286 capabilities at runtime instead of in the configure script.
a553cb8b 287
614391dc
VZ
288All (GUI):
289
290- support for virtual list control added
0a816d95 291- column images in report mode of the list control
8db37e06 292- wxFindReplaceDialog added (based on work of Markus Greither)
d7eee191 293- wxTextCtrl::SetMaxLength() added (wxMSW/wxGTK)
5549e9f7 294- polygon support in wxRegion (Klaas Holwerda)
d73e6791 295- wxStreamToTextRedirector to allow easily redirect cout to wxTextCtrl added
0e300ddd 296- fixed bug with using wxExecute() to capture huge amounts of output
37df1f33 297