Vadim Zeitlin
038d59e979
undo the change of r57522, it's not needed any more after r59136
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 21:01:53 +00:00
Francesco Montorsi
48ed4a8971
revise all code; do not use many global objects; use wxLog to give errors/messages; put drawing code in a wxApp member; get rid of old code; fix indentation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 11:54:16 +00:00
Vadim Zeitlin
f14217abb4
render <TH> contents in bold, as all the browsers do
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-24 18:10:43 +00:00
Francesco Montorsi
8b93348e82
fix a few typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-21 15:40:15 +00:00
Francesco Montorsi
9425b04cfd
fix a couple of drawing defects
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-20 16:38:48 +00:00
Francesco Montorsi
c1b8f155dc
show wxMutexGuiEnter/Leave by drawing into a bitmap from a secondary thread; show the result while it's being created by a MyImageDialog dialog; small cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-20 16:07:50 +00:00
Francesco Montorsi
8bf30d0f8b
remove MyExecThread: wxExecute can't be called from secondary threads since a long time; give the user the possibility to change the command to run from the main thread and provide sensible defaults for wxMSW and non-wxMSW platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-20 13:51:00 +00:00
Francesco Montorsi
ff8151c16e
minor cleaning: use %p instead of 0x%lx; clear in the menu name which is the thread which is stopped/paused/resumed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-20 12:45:04 +00:00
Francesco Montorsi
3186fa9107
no real change; just reorder the sample putting all declarations together and all implementations together; move frame construction code in MyFrame ctor; add some comment about TEST_YIELD_RACE_CONDITIONsymbol
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-20 11:56:43 +00:00
Jaakko Salli
8dee26e107
Clear grid selection more consistently prior clear operations; improved Clear() tests ( fixes #10497 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 18:01:06 +00:00
Vadim Zeitlin
a10c8e43d0
add event.Skip() in EVT_CONTEXT_MENU handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 09:53:19 +00:00
Francesco Montorsi
faf224da98
put frame creation code all inside MyFrame ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-16 00:27:52 +00:00
Francesco Montorsi
2a90b10068
allow the user to set the status bar font
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 22:11:26 +00:00
Francesco Montorsi
ea6e41e45e
use a single update UI handler for all menu commands which act only on the default status bar
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 21:34:02 +00:00
Francesco Montorsi
0c36a1d6d4
remove mobile samples from samples.bkl (last part of r58765)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 19:11:37 +00:00
Francesco Montorsi
840b9ff52a
remove 'mobile' samples as they're not useful from a didactive POV nor they show specific features
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 15:38:30 +00:00
Francesco Montorsi
ce0aa4ba1b
update italian translation; add a Q+A for updating an existing internat translation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 15:33:18 +00:00
Francesco Montorsi
0c54505687
put MyFrame creation code in its ctor, not in MyApp; create a status bar to show its RTL features; add some help strings to menu items
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 15:31:40 +00:00
Vadim Zeitlin
c0c133e13b
add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 11:45:59 +00:00
Francesco Montorsi
197ab43d72
some more SetIcon() calls added; cleanup indentation of some samples
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 01:20:35 +00:00
Francesco Montorsi
41f02b9acc
always call SetIcon() on the main frame of the sample; some small cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 01:01:00 +00:00
Francesco Montorsi
27721528c4
merge wxEditableListBox sample in widgets sample (it was a 60-lines sample of a single control showing limited features)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 00:47:04 +00:00
Francesco Montorsi
cdf03c2292
fix repaint problems when resizing the frame
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-07 22:30:56 +00:00
Vadim Zeitlin
16be58c140
add semicolons after wxDEFINE_EVENT()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-07 21:04:47 +00:00
Francesco Montorsi
9df6b3b041
allow the user to set the contents of the status fields
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-07 17:40:22 +00:00
Vadim Zeitlin
1afe8c8307
rename wxDECLARE_LOCAL_EVENT to just wxDECLARE_EVENT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-07 15:29:29 +00:00
Francesco Montorsi
06f89fe437
fix the size of the generated controls using wxDefaultSize instead of manually-specified sizes; use wxDefaultPosition instead of manually-specified sizes: they were disregarded anyhow since we use sizers; fix a tooltip message
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-05 18:02:20 +00:00
Francesco Montorsi
430bdeb55b
fix warning about function hiding by using the 'On' prefix for event handlers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-05 17:43:45 +00:00
Francesco Montorsi
fc6d11d1d4
fix warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-05 17:42:50 +00:00
Francesco Montorsi
74d60f66ee
add a wxEventType argument to wxThreadEvent for coherency with other event classes; rewrite its Clone() function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 19:44:55 +00:00
Francesco Montorsi
d48b06bd90
check in the 'selective yield' patch (see ticket #10320 ):
...
- implements YieldFor() with event filtering for wxMSW and wxGTK,
adds TODO markers in other ports;
- replaces wxYield() in GTK's clipboard code with a wxTheApp->YieldFor() call, thus fixing possible reentrancies
(and modifies clipboard sample to test synchronous IsSupported calls)
- replaces wxYieldIfNeeded() calls in wxProgressDialog with wxTheApp->YieldFor() calls, so that it processes only
UI/user-input events, thus fixing the race condition visible in the "thread" sample
- documents the new functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:42:28 +00:00
Jaakko Salli
2728c3bfe7
Added proper COW to wxPGChoices, moved wxPGChoices code from propgrid.cpp to property.cpp (to match header organization), removed some now-unneeded helper functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:45:23 +00:00
Vadim Zeitlin
040d3c2ebf
restore the default bitmap icons size to 16*15, making them larger if necessary is enough and doesn't result in having ugly 16*16 bitmaps in a 24*24 button rectangle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 12:19:45 +00:00
Francesco Montorsi
58fa61dbad
Re-add support for multiple text validator styles but
...
1) catch some invalid configurations in SetStyle()
2) document the order of the checks in wxTextValidator
3) implement wxFILTER_EMPTY
4) rename wxFILTER_SIMPLE_NUMBER => wxFILTER_DIGITS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 21:21:47 +00:00
Vadim Zeitlin
77cc73a78e
added wxPersistentRegisterAndRestore() function to work around VC6 brokenness in debug DLL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 12:02:20 +00:00
Vadim Zeitlin
79935f61bf
use wxCommandEventHandler instead of manually writing several casts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 20:46:33 +00:00
Vadim Zeitlin
862c917dfb
compilation fix for new event types (this shouldn't be necessary but do it to temporarily fix the build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 12:38:17 +00:00
Francesco Montorsi
fcd209b6a2
add SetCharIncludes and SetCharExcludes utilities to wxTextValidator; use iterators when scanning wxStrings; fix typo in ContainsExcludedCharacters (reversed return values); modify the sample to show wxTextValidator with wxFILTER_EXCLUDE_CHAR_LIST
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 22:41:51 +00:00
Francesco Montorsi
2e7a6b030c
add an example of a custom wxValidator-derived class; cleanup a bit the dialog layout
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 21:21:08 +00:00
Robert Roebling
491bb4ba78
Disable wxSIZE_FORCE_EVENT and demonstrate its bug in the wxCollapsiblePane sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-31 19:15:25 +00:00
Vadim Zeitlin
0fa541e870
add support for persistent controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 21:38:29 +00:00
Francesco Montorsi
f2335ba564
s/wxUsleep/wxMilliSleep
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-30 11:22:19 +00:00
Vadim Zeitlin
4f7cd56c14
don't duplicate menu creation code in the parent and child frames
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-28 09:00:49 +00:00
Francesco Montorsi
a0d0799beb
small reorganization; no real change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-27 20:20:18 +00:00
Vadim Zeitlin
1483e5db8d
refactor WM_COMMAND messages handling in MDI frames to avoid duplicating code unnecessarily and generally streamline it; added possibility to use custom menu commands in the "Window" menu and specifying accelerators for them now works too (show this in the sample); finally added standard ids for the MDI window menu commands
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-27 16:47:41 +00:00
Vadim Zeitlin
9089cffbf5
test ShowFullScreen() to verify that restoring menu works correctly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-26 23:17:09 +00:00
Francesco Montorsi
aac39d1d43
cleanup a bit the wxSplashScreen code; don't Yield() on wxGTK as it's not needed at all (at least with GTK+ 2.12.9
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-26 22:40:13 +00:00
Robert Roebling
2a0c05ebe3
Little correction to hand-made sizing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-25 20:57:43 +00:00
Vadim Zeitlin
df4a099cbe
fix state images after changing their style (see #9591 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-25 18:34:45 +00:00
Vadim Zeitlin
232b216277
added support for wxCAL_SHOW_WEEK_NUMBERS to generic version of wxCalendarCtrl ( #10033 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-25 13:47:20 +00:00