Commit Graph

997 Commits

Author SHA1 Message Date
Włodzimierz Skiba
eb3e6de33b Fixes to FIXME about stock IDs usage.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-29 21:15:57 +00:00
Vadim Zeitlin
48d597ed96 last fix resulted in wrongly inheriting bg colour from the parent with m_inheritBgCol == false, fixed the fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-22 23:27:49 +00:00
Vadim Zeitlin
b55ff31e20 fixes fo inheriting colours set with SetOwnBackround()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-22 21:09:01 +00:00
Vadim Zeitlin
57be9aac75 reverted use of DeferWindowPos() instead of MoveWindow()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-22 01:05:13 +00:00
Vadim Zeitlin
9b6ae4506e use DeferWindowPos() instead of MoveWindow() if possible; always use WS_CLIPCHILDREN; never use WS_CLIPSIBLINGS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-19 22:08:47 +00:00
Vadim Zeitlin
cf8ff92f83 moved wxWindow::m_hMenu to wxFrame, it is not needed in the base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-19 20:56:38 +00:00
Vadim Zeitlin
24cb401947 only use our background for children if it's inheritable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-19 20:39:36 +00:00
Robin Dunn
fc32cd4a59 Only test the high order bit from GetKeyState, otherwise we can have
bogus readings.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-17 16:31:14 +00:00
Włodzimierz Skiba
09cbc94fea wxUniversal fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-16 19:39:25 +00:00
Vadim Zeitlin
b987387052 more wxUniv compilation fixes (bug 1085003)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-14 12:33:53 +00:00
Vadim Zeitlin
e77c5d9682 reverted recent VK_OEM_PLUS change, do map it to '+' for now, but added a comment questioning whether this should be done at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-13 20:07:45 +00:00
Vadim Zeitlin
bdd1a35ddc (blind) wxUniv compilation fix: define the method using wxWindow out of line, i.e. after wxWindow is defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-13 19:42:35 +00:00
Vadim Zeitlin
c5bd3c6268 rewrote and virtualized the background erasing logic: each window may now
specify which background brush should be used for its children and each child
may also choose to use either background brush or (solid) background colour

wxWindow::OnEraseBackground() and wxControl::MSWControlColor() now use the
same code


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-13 00:09:54 +00:00
Vadim Zeitlin
34ea3c7491 only handle WM_NULL in wxIdleWakeUpModule if it is being removed from queue (part of patch 1080770)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-12 11:49:32 +00:00
Vadim Zeitlin
88379f1f2e translate VK_OEM_PLUS to '=', not '+', because this is what the unmodified key is
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-11 20:01:05 +00:00
Vadim Zeitlin
f616aec7dc don't apply tab control background when using wxUniv, it renders background itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-22 22:19:34 +00:00
Vadim Zeitlin
b8a9578b80 don't draw themed background for standard controls; they do it themselves and so this only results in even more flicker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 20:37:20 +00:00
Vadim Zeitlin
48fa6bd38a replaced OnCtlColor(7 params) with MSWControlColor(1 param)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 19:40:31 +00:00
Vadim Zeitlin
01c500af65 removed (unused) nCtlColor parameter of OnCtlColor(); added MSWControlColor(); implemented it to use tab control background if applicable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 18:37:42 +00:00
Vadim Zeitlin
b8335252d2 don't draw background at all if bg style is custom
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-15 19:15:53 +00:00
Vadim Zeitlin
8681b0940e restored OnEraseBackground(), we do need it but only for the cases when the window has a non default background colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-15 18:10:48 +00:00
Vadim Zeitlin
e2c49e5cd2 don't always erase the background ourselves as this is incompatible with XP themed appearance (replaces patch 1046164)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-15 14:43:51 +00:00
Ryan Norton
6fb603d745 spelling/grammer (lol) :)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-14 16:56:29 +00:00
Ryan Norton
84c51ddf77 rewrite wxGetKeyState a bit, spun from [ 1058347 ] Fixes wxGetKeyState
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 06:41:05 +00:00
Włodzimierz Skiba
32b1391332 Warning fixes to unused variables, int/wxChar keycode and other typecasting, not mixing 'type*' and 'type' variables in single line, IsEmpty to empty replacement etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 21:18:04 +00:00
Kevin Hock
34621cc5d6 Documentation patch from Olly Betts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 19:11:07 +00:00
Vadim Zeitlin
9f01184787 don't set focus to the window when it is clicked if the event has been processed by the user code (this is consistent with how the standard controls already behave)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 18:09:13 +00:00
Vadim Zeitlin
42f25dcfc7 check that item pointer is non-NULL in WM_DRAW/MEASUREITEM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-12 21:08:54 +00:00
Włodzimierz Skiba
373a5fb355 Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-07 13:36:41 +00:00
Włodzimierz Skiba
907173e51d Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:21:57 +00:00
Václav Slavík
0fe0275981 changes to make wxWindow::FindFocus work as expected with composite controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 14:34:28 +00:00
Ryan Norton
1751226cbf revert bad change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 22:46:16 +00:00
Vadim Zeitlin
ae177b45b2 set click coordinates to (-1, -1) if right mouse button event was generated from the keyboard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 20:52:10 +00:00
Ryan Norton
6be23c2a23 pass by reference, not value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 07:45:15 +00:00
Włodzimierz Skiba
d1d276f231 WXUNUSED_UNLESS_ODRAWN does not reflect wxUSE_MENUS_NATIVE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 06:20:42 +00:00
Vadim Zeitlin
93bfd481b7 fixes for harmless mingw32 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 18:50:48 +00:00
Włodzimierz Skiba
a4d1972da4 Warning fix (unused value assignment).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 16:44:30 +00:00
Vadim Zeitlin
4bc0f25ed7 fixed wxMaximizeEvent generation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-15 22:14:05 +00:00
Vadim Zeitlin
ed4780ea6e added As/DissociateHandle() and implemented it for MSW (modified patch 972356)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-11 22:17:22 +00:00
Włodzimierz Skiba
27d2dbbcca Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, !!/!IsEmpty(), TRUE/true. FALSE/false, tabs, whitespaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-07 11:11:05 +00:00
Włodzimierz Skiba
35bbb0c66b WinCE warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-23 10:56:16 +00:00
David Elliott
79099b80ad wxWindowMSW::OnInitDialog is only implemented for WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-28 19:34:19 +00:00
Julian Smart
d26e1ab206 Worked around static box opaqueness problem on WinCE by setting the
z-order in OnInitDialog


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-28 09:34:25 +00:00
Robin Dunn
c7aee86546 Also don't send set focus events when the window is being deleted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-22 20:23:46 +00:00
Włodzimierz Skiba
7010702f63 WinCE fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 11:11:46 +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
Włodzimierz Skiba
5cb598ae20 Fixes to warnings about assigning unused values.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-16 13:19:32 +00:00
Włodzimierz Skiba
f5dd1cf1eb Limited setup.h warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-15 06:23:31 +00:00
Włodzimierz Skiba
c57c2993ec Warning fix for assignment of unused value.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-12 14:49:37 +00:00
Václav Slavík
2d17baae34 BCC compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-02 19:38:13 +00:00