]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt
suppress VC7.1 64 bit correctness warnings
[wxWidgets.git] / docs / changes.txt
Content-type: text/html ]> git.saurik.com Git - wxWidgets.git/blame - docs/changes.txt


500 - Internal Server Error

Malformed UTF-8 character (fatal) at /usr/lib/x86_64-linux-gnu/perl5/5.40/HTML/Entities.pm line 485, <$fd> line 2346.
CommitLineData
c4839ccf
JS
1------------------------
2wxWidgets 2.5 Change Log
3------------------------
d643b80e
VZ
4
5INCOMPATIBLE CHANGES SINCE 2.4.x
6================================
7
e441e1f4
VZ
8 Please take a few minutes to read the following list, especially
9 paying attention to the most important changes which are marked
10 with '!' in the first column.
11
12 Also please note that you should ensure that WXWIN_COMPATIBILITY_2_4
13 is defined to 1 if you wish to retain maximal compatibility with 2.4
14 series.
15
16! windows are no longer fully repainted when resized, use new style
44db04e4 17 wxFULL_REPAINT_ON_RESIZE to force this (wxNO_FULL_REPAINT_ON_RESIZE still
e441e1f4
VZ
18 exists but doesn't do anything any more, this behaviour is default now)
19
a2bd1520 20! wxWindow::m_font and m_backgroundColour/m_foregroundColour are no longer
495f877d
RD
21 always set, use GetFont(), GetBack/ForegroundColour() to access
22 them, and they will be dynamically determined if necessary.
23
24
25! The Sizers have had some fundamental internal changes in the 2.5.2
26 and 2.5.3 releases intended to make them do more of the "Right
27 Thing" but also be as backwards compatible as possible. First a bit
28 about how things used to work:
29
30 * The size that a window had when Add()ed to the sizer was assumed
31 to be its minimal size, and that size would always be used by
32 default when calculating layout size and positions, and the
33 sizer itself would keep track of that minimal size.
34
35 * If the window item was Add()ed with the wxADJUST_MINSIZE flag
36 then when layout was calculated the item's GetBestSize would be
37 used to reset the minimal size that the sizer used.
38
39 The main thrust of the new Sizer changes was to make behaviour like
40 wxADJUST_MINSIZE be the default, and also to push the tracking of
41 the minimal size to the window itself (since it knows its own needs)
42 instead of having the sizer take care of it. Consequently these
43 changes were made:
44
45 * The wxFIXED_MINSIZE flag was added to allow for the old
46 behaviour. When this flag is used the size a window has when
47 Add()ed to the sizer will be treated as its minimal size and it
48 will not be readjusted on each layout.
49
50 * The min size stored in wxWindow and settable with SetSizeHints or
51 SetMinSize will by default be used by the sizer (if it was set)
52 as the minimal size of the sizer item. If the minsize was not
53 set (or was only partially set) then the window's best size is
54 fetched and it is used instead of (or blended with) the minsize.
55 wxWindow:GetBestFittingSize was added to facilitate getting the
56 size to be used by the sizers.
57
58 * The best size of a window is cached so it doesn't need to
59 recaculated on every layout. wxWindow::InvalidateBestSize was
60 added and should be called (usually just internally in control
61 methods) whenever something is done that would make the best
62 size change.
63
64 * All wxControls were changed to set the minsize to what is passed
65 to the constructor or Create method, and also to set the real
66 size of the control to the blending of the minsize and bestsize.
67 wxWindow::SetBestFittingSize was added to help with this,
68 although most controls don't need to call it directly because it
69 is called indirectly via the SetInitialSize called in the base
70 classes.
71
72 At this time, the only situation known not to work the same as
73 before is the following:
74
f5e0b4bc
WS
75 win = new SomeWidget(parent);
76 win->SetSize(SomeNonDefaultSize);
77 sizer->Add(win);
495f877d
RD
78
79 In this case the old code would have used the new size as the
80 minimum, but now the sizer will use the default size as the minimum
81 rather than the size set later. It is an easy fix though, just move
82 the specification of the size to the constructor (assuming that
83 SomeWidget will set its minsize there like the rest of the controls
84 do) or call SetMinSize instead of SetSize.
85
86 In order to fit well with this new scheme of things, all wxControls
87 or custom controls should do the following things. (Depending on
88 how they are used you may also want to do the same thing for
89 non-control custom windows.)
90
91 * Either override or inherit a meaningful DoGetBestSize method
92 that calculates whatever size is "best" for the control. Once
93 that size is calculated then there should normally be a call to
94 CacheBestSize to save it for later use, unless for some reason
95 you want the best size to be recalculated on every layout.
96
97 * Any method that changes the attributes of the control such that
98 the best size will change should call InvalidateBestSize so it
99 will be recalculated the next time it is needed.
100
101 * The control's constructor and/or Create method should ensure
102 that the minsize is set to the size passed in, and that the
103 control is sized to a blending of the min size and best size.
104 This can be done by calling SetBestFittingSize.
105
a2bd1520 106
e441e1f4 107
9b9d4651
VZ
108- no initialization/cleanup can be done in wxApp/~wxApp because they are
109 now called much earlier/later than before; please move any exiting code
110 from there to wxApp::OnInit()/OnExit()
fba61bdf 111- also, OnExit() is not called if OnInit() fails
527bbb39 112- finally the program exit code is OnRun() return value, not OnExit() one
26ab89ad 113- wxTheApp can't be assigned to any longer, use wxApp::SetInstance() instead
32b38f99 114- wxFileType::GetIcon() returns wxIconLocation, not wxIcon
bfdc04a9 115- wxColourDatabase is not a wxList any more, use AddColour to add new colours
5da0803c 116- wxWindow::Clear() is now called ClearBackground()
480e5897 117- pointer returned by wxFont::GetNativeFontInfo() must not be deleted now
bfdc04a9 118- wxMouseEvent::Moving() doesn't return true if mouse is being dragged any more
bfdc04a9
VZ
119- (most) controls now inherit parents colours by default, override
120 ShouldInheritColours() to return false if you don't want this to happen
dfcb9d7c 121- wxApp::SendIdleEvent() now takes 2 arguments
d366db96
MB
122- wxTabView::GetLayers() changed return type from wxList& to wxTabLayerList&
123 (when WXWIN_COMPATIBILITY_2_4 == 0)
6e76b35d 124- wxID_SEPARATOR (id used for the menu separators) value changed from -1 to -2
25959b95 125- wxGetNumberFromUser() is now in separate wx/numdlg.h, not wx/textdlg.h
d99957b6
VZ
126- wxChoice and wxCombobox now handle their size in the same way as in all the
127 other ports under MSW, new code is actually correct but different from weird
128 stuff they were doing before so the behaviour of your programs might change
1e6d9c20
VS
129- wxTaskBarIcon objects must now be destroyed before the application can exit.
130 Previously, the application terminated if there were no top level windows;
131 now it terminates if there are no top level windows or taskbar icons left.
4c68a102
VS
132- wxZlibInputStream is not by default compatible with the output of the
133 2.4.x version of wxZlibOutputStream. However, there is a compatibilty mode,
134 switched on by passing wxZLIB_24COMPATIBLE to the constructor.
6e86701b
MB
135- when WXWIN_COMPATIBILITY_2_4 == 0 wxHashTable uses a new implementation
136 not using wxList keyed interface (the same used when wxUSE_STL == 1),
137 the only incompatibility being that Next() returns a wxHashTable::Node*
138 instead of a wxNode*.
55e9fa68 139- non-const wxDC methods GetBackground(), GetBrush(), GetFont() and GetPen()
90287048
VS
140 as well as wxWindow methods GetFont() and GetCursor() don't exist any more,
141 please fix your code -- it never worked correctly anyhow if you modified the
142 objects returned by these methods so you should simply switch to using const
143 methods.
87fb0be4 144- wxWindow::GetFont() now returns wxFont object instead of reference
e1633ef9
VS
145- EVT_XXX macros are now type-safe; code that uses wrong type for event
146 handler's argument will no longer compile.
daf32463
WS
147- Identical functionality of wxFileDialog::ParseWildcard,
148 wxGenericDirCtrl::ParseFilter, Motif and MSW parsing native dialogs
149 is now accessible in ::wxParseCommonDialogsFilter
0f9dff88 150- wxNotebookSizer and wxBookCtrlSizer are now deprecated -- they are no longer
adbf2d73
VS
151 needed, you can treat wxNotebook as any other control and put it directly
152 into the sizer that was wxNotebookSizer's parent sizer in old code.
6294ac2e
VZ
153- wxFile methods now return wxFileOffset which may be a 64 bit integer type,
154 even on 32 bit platforms, instead of off_t and so the return value of
155 wxFile::Length(), for example, shouldn't be assigned to off_t variable any
156 more (the compiler might warn you about this).
5e2ab1ea 157
09c6a817 158
9b9d4651
VZ
159DEPRECATED METHODS SINCE 2.4.x
160==============================
09c6a817 161
fc2171bd 162Deprecated methods may still be used but will disappear in future wxWidgets
09c6a817
VZ
163versions, please update your code to not use them.
164
7af6b69e 165- wxDocManager::GetNoHistoryFiles() renamed to GetHistoryFilesCount()
09c6a817
VZ
166- wxSizer::Remove(wxWindow *), use Detach() instead [it is more clear]
167- wxSizer::Set/GetOption(): use Set/GetProportion() instead
168- wxKeyEvent::KeyCode(): use GetKeyCode instead
169- wxList::Number, First, Last, Nth: use GetCount, GetFirst/Last, Item instead
170- wxNode::Next, Previous, Data: use GetNext, GetPrevious, GetData instead
171- wxListBase::operator wxList&(): use typesafe lists instead
ba8c1601
MB
172- wxTheFontMapper: use wxFontMapper::Get() instead
173- wxStringHashTable: use wxHashMap instead
174- wxHashTableLong: use wxHashMap instead
fc2171bd 175- wxArrayString::GetStringArray: use wxCArrayString or alternative wxWidgets
584ad2a3 176 methods taking wxArrayString
ba8c1601 177- wxArrayString::Remove(index, count): use RemoveAt instead
df3b5898 178- wxTreeItemId conversion to long is deprecated and shouldn't be used
207e6243
VZ
179- wxTreeCtrl::GetFirst/NextChild() 2nd argument now has type wxTreeItemIdValue
180 and not long, please change declarations of "cookie"s in your code
181 accordingly -- otherwise your code won't work on 64 bit platforms
35821d8f
VZ
182- [MSW only] wxWindow::GetUseCtl3D(), GetTransparentBackground() and
183 SetTransparent() as well as wxNO_3D and wxUSER_COLOURS styles
080a7b20 184- wxList keyed interface: use wxHashMap instead
dfcb9d7c 185- wxColourDatabase::FindColour(): use Find() instead (NB: different ret type)
d366db96
MB
186- wxHashTable::Next: use wxHashTable::Node* or
187 wxHashTable::compatibility_iterator to store the return
188 value
4a3990e2 189- wxWave class; use wxSound instead
ba443432
JS
190- The wxHIDE_READONLY flag for wxFileDialog was not implemented
191 and has now been removed
6bba4b8a 192- wxTaskBarIcon::OnXXX() virtual methods: use events instead
8e254d94 193- obsolete and not used wxUSE_GENERIC_DIALOGS_IN_MSW has been removed
dfcb9d7c 194
7af6b69e 195
d643b80e
VZ
196OTHER CHANGES
197=============
198
33d4eef0
VS
1992.5.3
200-----
201
00bcc185
VS
202All:
203
6294ac2e 204- support for huge (>2 Gb) files (Tim Kosse)
00bcc185 205- number of fixes to wxPluginManager (Rick Brice, Hans Van Leemputten)
0c2a5de2 206- fixed memory leak in wxURL when using a proxy (Steven Van Ingelgem)
8cc00d5f 207- fixed bug in wxDateTime::Set(jdn) when DST was in effect
051aa330 208- fixed fatal bug in wxString when wxUSE_STL==1 (Kurt Granroth)
dbea9b70
VS
209- support msgids in charsets other than C and languages other than English
210 (based on patch by Stefan Kowski)
08873d36 211- added wxMicroSleep() and wxMilliSleep() replacing deprecated wxUsleep()
bfa7bf7d 212- basic UDP sockets support (Lenny Maiorani)
2c622d71 213- fixed wxDateTime::GetWeekDayName() for some dates (Daniel Kaps)
14236c1b 214- deprecated wxDateTime::SetToTheWeek() in favour of SetToWeekOfYear()
e2454588
VZ
215- active mode support in wxFTP (Randall Fox)
216- sped up wxHTTP and wxFTP
121fa06a 217- added wxStringInput/OutputStreams
00bcc185 218
dae73d74
VS
219All (GUI):
220
a24de76b 221- added wxWindow::MoveBefore/AfterInTabOrder() to change tab navigation order
607667fd
RN
222- added wxTaskBarIcon::CreatePopupMenu which is now the recommended way
223 of showing a popup menu; calling wxTaskBarIcon::PopupMenu directly
dae73d74 224 is discouraged
a24de76b 225- added ..._CMD_...(id) variants for wxGrid event table entry macros
857069f0 226- added wxWindow::Navigate for programmatic navigation to the next control
0d9b2c16
VZ
227- wxTextCtrl::OnChar now inserts a tab character if wxTE_PROCESS_TAB is set
228- added wxKeyEvent::GetUnicodeKey()
a2bd1520 229- added wxKeyEvent::CmdDown() and wxMouseEvent::CmdDown()
8158e0e1 230- implemented wxListCtrl::FindItem() for non-MSW (Robin Stoll)
c2919ab3 231- added status bar fields styles support (Tim Kosse)
857069f0
DS
232- added convenience functions wxSizer::AddSpacer() and
233 wxSizer::AddStretchSpacer() (as well as Prepend and Insert variants)
fd945da0 234- added samples/splash
401e3b6e 235- added support for stock buttons
dc92adaf 236- added wxTopLevelWindow::RequestUserAttention()
8b2bac62
WS
237- support for comma in contrib gizmo wxLEDNumberCtrl (Grant Likely)
238- recursive wxSizer::Show for subsizer and return value if element was found
f5e0b4bc 239- added wxChoicebook control
2c5ef4e2 240- smoother time estimation updates in wxProgressDialog (Christian Sturmlechner)
f5de33e9 241- the XRC contrib library was moved to the core
1f30c176 242- wx(Choice/List/Note)book controls send CHANG(ED/ING) events in SetSelection
544229d1 243- it is now possible to create a wxFont with given size in pixels (d2walter)
6b30a44e 244- added wxTopLevelWindow::IsActive()
dae73d74 245
33d4eef0
VS
246Unix:
247
248- wxTaskBarIcon now supports freedesktop.org System Tray protocol
0a8d9df6 249- security fixes to wxSingleInstanceChecker
8708fa76 250- wx-config script was modified to allow choosing from multiple installed
224bf05c
VZ
251 builds of wxWidgets and to return flags/libs for selected libraries only
252- wx-config has new --version-full option
33d4eef0 253
607667fd
RN
254wxMAC:
255
256- Fixed MLTE text control GetLineText and GetLineLength on OSX (RN)
257- Added OSX wxTaskBarIcon implementation for the OSX Dock (RN)
3e17bc3f 258- Added wxDrawerWindow class for drawer windows for OSX >= 10.2 (RN - from Jason Bagley)
4a027aea 259- Native font dialog on OSX 10.2 and greater (RN)
607667fd 260
bbce0c0c
VS
261wxGTK:
262
692c9b86
VZ
263- wxGTK uses GTK+ 2.x by default now, you have to pass --disable-gtk2 to
264 configure if you want to use GTK+ 1.2
f40fdaa3 265- fixed many rendering artifacts and wrong colours with lots of GTK+ themes
dae73d74 266- implemented wxColourDialog as native dialog
692c9b86 267- implemented wxTextCtrl::HitTest() (GTK+ >= 2)
1ce52aa6 268- implemented wxTextCtrl::ScrollLines() and ScrollPages for GTK+ 2.x
1a4088e1 269- wxTreeCtrl::GetCount() counts root as well now (compatible with MSW)
4dcccda6 270- added support for wxCHK_3STATE style (GTK2 only)
1dbeee57 271- implemented text underlining under GTK2
2be125e6 272- implemented wxFRAME_NO_TASKBAR style (GTK >= 2.2)
44fd6f72
VS
273- implemented support for wxSYS_DCLICK_?, wxSYS_DRAG_? and wxSYS_CURSOR_?
274 in wxSystemSettings::GetMetric (Mart Raudsepp)
d8e1fe80
VS
275- implemented wxTopLevel::IsMaximized() for GTK+2 and WMs that implement
276 freedesktop.org's wm-spec (Mart Raudsepp)
fe51e08c 277- wxEVT_CONTEXT_MENU is now generated for right mouse press, not release
feac7937 278- implemented alpha channel support in wxBitmap
b5ab476a
VS
279- added native GTK+2 wxArtProvider implementation with ability to load
280 icons from icon theme in addition to recognized stock art
e1ff9329 281- fixed crash on 64 bit platforms (Paul Cornett)
bbce0c0c 282
f8ab089a
MB
283wxMotif:
284
0d9b2c16 285- added support for wxCHK_3STATE style (3 state checkbox)
f8ab089a 286
60c315ca
VS
287wxMSW:
288
289- fixed UNC paths handling in wxFileSystem (Daniel Nash)
0d9b2c16 290- set wxKeyEvent::m_uniChar in Unicode build
92661f97 291- support for alpha channel in toolbar bitmaps (Jurgen Doornik)
0b11099d 292- wxFileDialog can now be moved and centered (Randall Fox)
885ebd2b 293- restored (and improved) possibility to use wx with MFC broken in 2.5.2
4a82116e 294- fixed wxTextCtrl::SetMaxLength for rich edit controls
4bd1f746 295- fixed flat style for toolbars under XP, Windows Classic style
b61d8079 296- fixed truncation of transferred data in wxConnection under unicode build
f499e614 297- wxChoice and wxComboBox dropdown background can be set now too (Adrian Lupei)
4bc0f25e 298- fixed wxMaximizeEvent generation in wxFrame
13bcc348 299- don't send duplicate EVT_COMBOBOX events whenever selection changes any more
60090256 300- implemented support for selecting printer bin (Steven Van Ingelgem)
6e2fef03 301- fixed wxListCtrl::SetSingleStyle() which was broken since a few releases
60c315ca 302
3cd2f0bd
VZ
303wxUniv/X11:
304
305- fixed fatal crash when opening a menu
306
a0f428c6
WS
307wxWinCE:
308
5b33ae84
WS
309- added native WinCE driven smartphone wxTextCtrl implementation using spinners
310- added native WinCE driven smartphone wxChoice implementation using spinners
311- added automatized but customizable handling of native WinCE driven smartphone menus
4a82116e 312- fixed wxRadioBox and wxStaticBox
a0f428c6 313
91fa114d
VS
314wxHTML:
315
316- added support for nested index entries and index entries pointing to more
317 than one page to wxHtmlHelpController
318
33d4eef0 319
a1037371
VZ
3202.5.2
321-----
322
3c2544bb
JS
323All:
324
dcbb88f0
VZ
325- Hindi translation added (Dhananjaya Sharma)
326- Brazilian Portuguese translation added (E. A. Tacao)
5232d996
VZ
327- wxDynamicCast() now uses static_cast<wxObject *> internally and so using it
328 with anything not deriving from wxObject will fail at compile time (instead
329 of run-time) now
bdcade0a
MB
330- when wxUSE_STL == 1 and STL provides quasi-standard hash_map/hash_set,
331 wxHashMap/wxHashSet are just typedefs for them. This makes impossible
332 to forward declare these classes.
f6d74279 333
3c2544bb
JS
334All (GUI):
335
336- wxHtmlWindow now delays image scaling until rendering,
337 resulting in much better display of scaled images
e1983ab5
VZ
338- Added UpdateSize to wxSplitterWindow to allow layout while hidden
339- implemented Freeze/Thaw() for wxGenericTreeCtrl (Kevin Hock)
15ad38c3 340- support for KOI8-U encoding added (Yuriy Tkachenko)
8f61ba28 341- The old wxADJUST_MINSIZE behaviour is now the default behaviour for
ec5cadfe
RD
342 sizer items that are windows. This means that GetAdjustedBestSize
343 will now be called by default to determine the minimum size that a
344 window in a sizer should have. If you want to still use the initial
345 size (and not the BestSize) then use the wxFIXED_MINSIZE flag. When
346 windows are added to a sizer their initial size is made the window's
347 min size using SetSizeHints, and calls to wxSizer::SetItemMinSize
348 are also forwarded to SetSizeHints for window items.
8f61ba28 349- added wxRegEx::GetMatchCount()
2d814c19 350- it is now possible to display images in wxHtmlListBox
3c2544bb 351
a1037371 352wxMSW:
3c2544bb 353
a1037371 354- wxWindow::Freeze()/Thaw() can now be nested
3c2544bb
JS
355- Added wxSP_NO_XP_THEME style to wxSplitterWindow to switch off
356 XP theming (some applications look bad without 3D borders)
4e86e9cd 357- wxMenuBar::GetLabelTop() doesn't include '&'s in the label any more
9a85c87d
VZ
358- wxRegConf couldn't read global settings without admin privileges and didn't
359 even try to do it by default -- now it does
1e6d9c20
VS
360- wxTaskBarIcon must be explicitly destroyed now, otherwise the application
361 won't exit even though there are no top level windows
54bcff35 362- wxFileName::GetModificationTime() works with opened files too now
bf5d9fa4
VZ
363- wxDC::GetClippingBox() now works even for clipping regions created by Windows
364- fixed wxFileDataObject in Unicode build (Alex D)
89b67477 365- subdindented paragraphs support (Tim Kosse)
a1037371 366
c663fbea
VS
367wxGTK:
368
369- added support for wxTE_RIGHT and wxTE_CENTRE styles under GTK2 (Mart Raudsepp)
370
cf9df191
VZ
371wxMotif:
372
373- removed wxMenuItem::DeleteSubMenu()
e04b7e8e
MB
374- wxButtons use Motif default size, which is smaller than it used to be
375 and closer to wxMSW/wxGTK look. This can be disabled by setting
376 motif.largebuttons system option to 1 (see wxSystemOptions).
cf9df191 377
e8ba218b
VZ
378wxUniv/X11:
379
380- implemented DrawRoundedRectangle() (clawghoul)
381
ca16b7a9
VS
382wxHTML:
383
5b2b456f 384- improved tables and lists layout algorithms (Tim Kosse)
c5448f38 385- <div> handling fix (Xavier Nodet)
ca16b7a9 386
a9a76b2f 387Unix:
33d4eef0 388
a9a76b2f 389- fixed priorities of mailcap entries (David Hart)
1d8864ac 390- added "wx-config --libs=std,<extra>" syntax (i.e. support for "std")
a9a76b2f 391
a21c0aaa 392wxODBC:
33d4eef0 393
c4839ccf 394- Full Unicode support is now available
a21c0aaa
GT
395- BLOB support is working
396
a1037371 397
1d95f44a
JS
3982.5.1
399-----
11ebea16 400
2e622163 401All:
de07d200 402
3a818b15 403