Commit Graph

254 Commits

Author SHA1 Message Date
Vadim Zeitlin
47a8a4d5cc make IsEnabled() return false even if the window parent, and not the window itself, is disabled and added IsThisEnabled() implementing the old IsEnabled() behaviour; also significantly simplify the window state management code in all ports by factoring out the common parts in wxWindowBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:01:53 +00:00
Vadim Zeitlin
ddaa6e899b fix unused variable warning with wxUSE_TOOLTIPS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 17:04:02 +00:00
Vadim Zeitlin
69199aad02 rebaked with baefile rev 928
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 20:39:49 +00:00
Jamie Gadd
90d05e9b6e Don't set background of wxMemoryDC before selecting bitmap into it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-13 00:41:55 +00:00
Vadim Zeitlin
3126a4ee61 removed wxHyperlinkCtrl from this sample, it's not in the widgets one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-03 12:41:00 +00:00
Vadim Zeitlin
c4ef14c263 make the frame big enough to show all controls initially
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-03 12:39:27 +00:00
Vadim Zeitlin
45262a3415 avoid asserts by not using GetSelection() with multi selection listbox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-30 23:25:18 +00:00
Vadim Zeitlin
1a8b677e3b added wxHyperLink and context help testing code (not sure if either of them should actually be here...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-30 23:16:55 +00:00
Stefan Neis
7c2151fa69 Avoid problems with events that might be sent during creation of controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-18 11:45:30 +00:00
Julian Smart
25e19bdf01 Check for null pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-23 20:32:00 +00:00
Julian Smart
00dff4d222 Combobox may not be fully created at this point
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-17 08:59:36 +00:00
Vadim Zeitlin
c670c85582 added Get/SetItemToolTip() (and implemented them for MSW) to allow setting tooltips for the individual radiobox items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-04 16:08:56 +00:00
Włodzimierz Skiba
33cf9a1922 Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-28 17:07:14 +00:00
Włodzimierz Skiba
8e13c1ec4e Make wxPASSWORD and wxPROCESS_ENTER really deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-28 11:02:37 +00:00
Vadim Zeitlin
7891b4d450 don't send weird colours for different controls, this looks really bad under some platforms (such as Mac) and makes the text unreadable under the others; there is widgets sample now for testing whether the colour setting works interactively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 20:58:21 +00:00
Vadim Zeitlin
361484a8db create a non readonly combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 20:55:12 +00:00
Vadim Zeitlin
bc50a2ae95 log wxChoice events in the same format as wxComboBox ones to make it simpler to compare them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 19:16:35 +00:00
Vadim Zeitlin
9ae1959972 use the sizer to layout the main window/panel (this allows to give more size to the log window by resizing the main frame while before it was pretty difficult to see anything in it)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 17:04:23 +00:00
Robert Roebling
cc7e9e2083 Added test for wxComboBox::SetString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-20 17:12:07 +00:00
Włodzimierz Skiba
9d8b1d2f3e Somebody forgot to restore from testing phase.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-19 11:09:19 +00:00
Włodzimierz Skiba
a71d815bbe __WIN95__ removed (used to differ win3.1 vs. 'modern' 95 look, nowadays always defined for WXMSW so useless). Minor cleanings and corrections for correct #includes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-19 10:47:44 +00:00
Vadim Zeitlin
d6bbc10c94 also added a check of choice selection in idle time (similar to last check in for combobox)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-17 13:13:42 +00:00
Włodzimierz Skiba
0d29fecd2e Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-16 20:50:02 +00:00
Vadim Zeitlin
f226be17ad added code showing that at least under Windows wxCombobox::GetSelection() return value changes even before EVT_COMBOBOX is sent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-16 12:13:56 +00:00
Julian Smart
91b073576e Use standard ids
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 12:04:48 +00:00
Robert Roebling
1a84e759bc Add test for wxChoice's focus events. (no fix yet).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-25 19:35:42 +00:00
Vadim Zeitlin
fe1bc2853c unused param warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 16:45:12 +00:00
Robert Roebling
1dd815f363 Add better test for wxStaticTexts to controls sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-07 22:50:57 +00:00
Robert Roebling
376c0148ef Better correction to the wxListBox misbehaviour.
Strangely, the listbox sends out 2 events upon
   the first selection.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-22 22:45:32 +00:00
Robert Roebling
1e2cb856c4 Show that the GTK+ listbox doesn't deselect any item
in MULTIPLE mode when clicked upon.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-21 22:46:34 +00:00
Vadim Zeitlin
bebc503c78 compilation fix for wxUSE_TOGGLEBTN == 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-12 18:32:26 +00:00
Włodzimierz Skiba
516ab39908 wxUSE_GAUGE/PROGRESSDLG condition.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-25 18:05:12 +00:00
Włodzimierz Skiba
6bb44116c2 wxUSE_SLIDER=0 fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-24 16:08:12 +00:00
Włodzimierz Skiba
61c083e781 wxBookCtrl->wxBookCtrlBase. wxBookCtrl is now most suitable book for given platform. Samples adjustement.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-23 11:45:07 +00:00
Vadim Zeitlin
35960bbf22 added tests for EVT_ICONIZE/MAXIMIZE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-15 22:36:01 +00:00
Włodzimierz Skiba
422d0ff0be wxDefaultSize.* and wxDefaultPosition.* to wxDefaultCoord.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 10:09:47 +00:00
Václav Slavík
3f93f659dc demonstrate tab order
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 11:14:44 +00:00
Włodzimierz Skiba
960a83ccad Fixes for Smartphone builds. Sample does not work yet but at least creates exacutable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 06:59:48 +00:00
Václav Slavík
29c749b8ba test colours unsetting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-18 08:01:32 +00:00
Włodzimierz Skiba
5014bb3a2f -1->wxID_ANY, TRUE->true, FALSE->false, wxDefaultPosition & wxDefaultSize replacements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-27 17:50:54 +00:00
Julian Smart
be5a51fb59 More name changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 11:20:37 +00:00
Vadim Zeitlin
3a5bcc4db0 removed Win16 code (patch 905241), last version with remains of Win16 support tagged with BEFORE_WIN16_REMOVAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 13:10:14 +00:00
Václav Slavík
9230b62136 applied patch to remove use of deprecated constraints API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-28 10:46:36 +00:00
Vadim Zeitlin
fdf1429eea testing wxComboBox::SetBackgroundColour()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-27 00:02:44 +00:00
Ryan Norton
cbf3565d62 Quick fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-13 09:55:50 +00:00
Vadim Zeitlin
a48b9bfb14 added handlers for radio btn events for testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-27 15:28:58 +00:00
Vadim Zeitlin
a374426f34 create image list of the right size to avoid asserts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 18:58:39 +00:00
Mattia Barbon
87728739f2 Various warning and Unicode fixes from ABX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-09 20:24:34 +00:00
Vadim Zeitlin
0f159c531e warning fix (bug 714677)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-30 11:41:57 +00:00
Julian Smart
91f2c1540f Fix for [ 748805 ] Assert failure for specified situation in samples/controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 09:59:38 +00:00