Commit Graph

542 Commits

Author SHA1 Message Date
Julian Smart
ed56a258b1 Reverted last two changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 10:16:50 +00:00
Julian Smart
27d2f680a7 Moved allocation of m_imData or key down gives seg fault
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 09:49:29 +00:00
Robin Dunn
21a7ac1820 Save the last key event so EVT_CHAR events can filled in with extra
data like mouse pos, timestamp, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 03:32:32 +00:00
Robin Dunn
bfeb1e5838 Don't add extra size to the height, it makes the combo way too big.
(Patch from Ricardo Pedroso.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-26 17:42:07 +00:00
Robert Roebling
7cb93e4565 Setting the background colour of a wxWindow or
wxScrolledWindow etc. should only affect the
    actual background, not the border (sunken)
    or the scrollbars etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 09:42:02 +00:00
Vadim Zeitlin
a67f1484e0 made Update() recursive under wxGTK2 (doesn't work for wxGTK1 because Refresh() is not recursive htere neither) and documented its behaviour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 13:54:09 +00:00
Vadim Zeitlin
28fad9e402 fixed unused function warning in GTK+ 2 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 23:46:58 +00:00
Vadim Zeitlin
865bb3251e GTK+ callbacks must have C linkage (patch 1157384)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 23:42:26 +00:00
Vadim Zeitlin
60d8e88654 iterator methods fixes (patch 1164808)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:19:13 +00:00
Robert Roebling
f893066ba1 Query for "default_border" not "default_outside_border" since
that is what is done in the gtk code.
  Correct wrong pos in scrolled window.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-13 18:57:10 +00:00
Robert Roebling
19874feb47 Reenable dead keys under GTK2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-10 23:06:48 +00:00
Robert Roebling
a90c0600bb Try to catch theme change on the fly in button in
order to resize buttons.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-04 23:23:05 +00:00
Robert Roebling
863e0817fe Trying to get default button placement and size right.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-04 19:14:24 +00:00
Vadim Zeitlin
cd5e74bad9 wxUniv compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-28 01:06:48 +00:00
Robert Roebling
c958d025fa The position (mouse pos) returned by wxKeyEvent sometimes
was wrong, as it reported the position relative to the
    TLW (this is what a bug report claims, in any case).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-27 17:47:57 +00:00
Julian Smart
aac97549ab Don't inherit background from parent if we're top-level
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-21 11:41:59 +00:00
Vadim Zeitlin
1b965a9cfb call gdk_flush() in Update() (see discussion of patch 1047642)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-21 01:24:22 +00:00
Robert Roebling
4adb6d28f7 Commited fix for wrong background colour in TLWs. I don't
know if this will play well with themes. Alternatively,
   one could change one of the few lines below to parent == this;


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-20 19:35:40 +00:00
Robert Roebling
024e9a4cea Better resizing code fro wxComboBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 23:19:32 +00:00
Robin Dunn
50b58dec17 Check accelerators before sending EVT_CHAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 17:02:57 +00:00
Robin Dunn
4d3ab2a036 Allow EVT_CHAR events in a wxGTK2 build for F-keys, and other
non-alphanumeric keys.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 16:23:27 +00:00
Robert Roebling
f127216013 Reorganized char and keydown event code, hoping
that Input Method handling is still not broken.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-05 15:25:32 +00:00
Robert Roebling
ad975781eb Fixed missing key down events (probably introduced
by IM patch.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 13:33:36 +00:00
Robert Roebling
fdfb84751f Committed Raise()Lower() fix.
Committed second part for Input Methode character fix.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 12:52:38 +00:00
Robert Roebling
001a26f974 I changed something, but I forgot what.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 13:04:05 +00:00
Robert Roebling
f6fca1f80e Applied IM patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 12:47:14 +00:00
Robert Roebling
4ecd9342fd One more place where we need to use connect_after
in order not to confuse GTK+. This fixes the
    wxTreeCtrl crash.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-29 12:02:35 +00:00
Robert Roebling
0bd3b8eca1 Enable UpdateUI events in wxTaskBarIcon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-23 22:39:03 +00:00
Kevin Hock
687706f5e7 Use event modifiers and accessors rather than m_ variables directly, which are now protected rather than public with 2.4 compatibility disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 15:08:15 +00:00
Robert Roebling
ac103441d1 Applied patch which solved conflicts between wxWidgets
and GTK+'s context menu code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-16 15:27:15 +00:00
Robin Dunn
cfa8c7d6cc Set the window id for key events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-05 21:33:11 +00:00
Włodzimierz Skiba
463c4d7193 wx/math.h integration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-14 21:10:15 +00:00
Kevin Hock
822cf31c27 Prevent GDK assertions when a window has a hidden (never shown) parent -- do not use wxRegionIterator over the parent if the parent is not mapped
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-05 19:40:01 +00:00
Robert Roebling
0b18767089 Applied patch to correct EVT-CHAR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-01 18:29:13 +00:00
Václav Slavík
c4d25c01ae fixed wxTextCtrl::EmulateKeyPress to work in Unicode build of wxGTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:19:39 +00:00
Robert Roebling
12ff822199 Forgot to commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 14:47:27 +00:00
Vadim Zeitlin
a752b8c4e0 always let GTK process focus_out events itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 23:46:08 +00:00
Robert Roebling
576f712776 Fixed missing focus problem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-05 16:17:21 +00:00
Robert Roebling
06fda9e808 Reworked TLW and app activation event code, also
moved it to toplevel.cpp where it belongs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 14:13:48 +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
Robert Roebling
59060b8cfa GTK1 compilo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 17:22:44 +00:00
Robert Roebling
eccd56020f Small fix for tabbing into wxListBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-22 20:57:09 +00:00
Václav Slavík
5bfaca1b32 MBCS and IM fixes (patch 1016292)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-03 21:20:59 +00:00
Julian Smart
de434621d8 Don't draw flat box unless background style is system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-29 13:55:13 +00:00
Julian Smart
c7382f913c SetBackgroundStyle(wxBG_STYLE_CUSTOM) can now be used to optimize
background erase on wxGTK (no-op on other platforms)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-29 13:32:45 +00:00
Václav Slavík
098937b044 fixed handlers registration in DoPopupMenu (patch 1009949)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-16 13:13:30 +00:00
Václav Slavík
6dd18972d5 invalidate best size cache when GTK style changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-15 11:49:42 +00:00
Václav Slavík
61721d057e reverted accidentally committed changes in previous revision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-14 22:54:11 +00:00
Václav Slavík
40bab631d2 attributes inheritance fix; apply style to both m_wxwindow and m_widget (patch 984858)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-14 22:42:23 +00:00
Vadim Zeitlin
fe51e08c27 generate EVT_CONTEXT_MENU when right mouse button is pressed, not released
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 22:13:04 +00:00