Commit Graph

391 Commits

Author SHA1 Message Date
Robert Roebling
af3653ddfa Another typo fixed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-02 19:30:43 +00:00
Robert Roebling
7d4909b275 Probably fixed mouse event bug introduced recently.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-02 18:02:54 +00:00
Robert Roebling
2dde25b981 Implemented CharHook events.
Implemented Destroy events.
    (both as per SF patches).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-02 14:17:39 +00:00
Vadim Zeitlin
03b444f6af removed unused wxWindowGTK::m_isFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:18:34 +00:00
Vadim Zeitlin
2b4f3c9f76 replaced m_isRadioButton with a virtual function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:17:23 +00:00
Vadim Zeitlin
d1f2ac459a replaced wxWindowGTK::m_isStaticBox with a virtual function and replaced 3 occurences of the code finding the window for the mouse events with one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:13:17 +00:00
Vadim Zeitlin
3ae4c570c4 replaced wxWindowGTK::m_isListBox with a virtual function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 14:00:01 +00:00
Vadim Zeitlin
6cad4f1b21 fixes for the focus handling: don't set back to back set/kill focus events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-31 13:51:43 +00:00
Julian Smart
d665f50b8c In an expose event, the m_clearRegion is also updated as well
as m_updateRegion because otherwise in a scroll or resize,
a custom OnEraseBackground method will draw over more window than
OnPaint will redraw -- clearly not what's wanted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-14 20:38:22 +00:00
Mattia Barbon
cc06fe74c4 Make Univ/GTK compile again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-23 20:16:40 +00:00
Ron Lee
6728fb611b buggy cast == buggy scrolling in Life!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-22 21:25:48 +00:00
Vadim Zeitlin
3e679f0190 reset g_delayedFocus when the window is deleted to avoid crashes when using it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-22 15:44:55 +00:00
Robert Roebling
f90566f5c3 Bunch of GTK theme changes.
Make wxStatusBar use themes.
  SetStatusText() now uses Refresh() since I don't
    know why it shouldn't.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-21 16:43:15 +00:00
Vadim Zeitlin
6aeb6f2a58 fixed initial focus handling in the dialog and made SetFocus() send the focus
events as under wxMSW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-20 13:53:11 +00:00
Robert Roebling
010afced51 Updated makefile for mobile sample.
Updated changes.txt.
  Moved contents of ::Update() to ::GtkUpdate()
  Moved internal idle functions in wxApp to
    its own function.
  Tried to fix themed background redraw problem
    (probably same bug in wxNotebook and in
     wxStatusBar and others).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-19 17:39:49 +00:00
Robert Roebling
d7fa7eaa2d Various changes to focus handling when TLW start.
Changed wxWindow::Clear() to use m_clearRegion.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-17 22:44:31 +00:00
Robert Roebling
ea323db37d Fix wxListCtrl bakground colour bug Part II.
Make wxWindow::Refresh() wake up idle.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-13 19:02:55 +00:00
Vadim Zeitlin
0a62b1978c added a few debugging messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 14:00:19 +00:00
Vadim Zeitlin
486ac2444d fix for non-US keyboards: the ASCII chars must be unsigned
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 13:35:05 +00:00
Vadim Zeitlin
1c6896d711 wxGTK keyboard handling now behaves (mostly) like wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 13:24:50 +00:00
Vadim Zeitlin
747106015b some kbd processing code cleanup, no real changes yet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 11:36:46 +00:00
Vadim Zeitlin
9c7df356f9 added raw key code and flags support (based on patch from Bryce Denney)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-07 21:06:59 +00:00
Robert Roebling
994bc575d8 Fixed the background colour bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-05 20:39:08 +00:00
Robert Roebling
8ac795151e Small typo, big effect.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-03 14:39:45 +00:00
Vadim Zeitlin
0fc5dbf52a compilation warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-02 09:59:22 +00:00
Robert Roebling
b5a49d4c52 A bit of scrolling works under GTK 2.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-29 18:01:50 +00:00
Robert Roebling
af1d24da23 Make scrollbars appear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-29 17:34:10 +00:00
Robert Roebling
eb9e6a00be Wrong #ifdef for GTK 1.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-29 13:52:42 +00:00
Robert Roebling
67d7821742 More work on GTK 2.0 drawing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-29 13:05:21 +00:00
Robert Roebling
4e5a4c69c5 Put some life into GTK 2.0 drawing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-28 23:56:36 +00:00
Vadim Zeitlin
9e691f46b2 changes to make wxGTK compile with GTK+ 2.0: now it does but the minimal
sample crashes on startup


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-12 19:24:30 +00:00
Robert Roebling
afbe906abd Some work on GTK focus handling and events.
Removed some code #ifdeffed for GTK from
    wxListCtrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-23 18:59:46 +00:00
Robert Roebling
2e09dc2dc8 Always send an erase event to satisfy some users...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-20 21:50:17 +00:00
Robert Roebling
2b328fc942 Added test for default action (button normally)
to combo box when hittinh return. In a normal
    Find&Replace dialog, hitting enter in one of
    the two fields will usually mean "OK".
  Corrected the same test in wxTextCtrl.
  Removed some debug code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-19 21:48:03 +00:00
Robert Roebling
7e4501ee3c wxX11:
Corrected TLW positiong.
    Added experimental code for synthesizing focus events.
    Minor clean-ups.
    Added for-now unused code for default/focus widget.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-17 21:09:04 +00:00
Václav Slavík
e7dda1ffa3 respect minimal wxTLW size in wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-10 19:08:54 +00:00
Robert Roebling
8f3e7ecc5d More refreshes are deferred to idle time.
Corrected redraw areas of native widgets
    if underlying wxWindows have been exposed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-08 23:43:35 +00:00
Robert Roebling
c89f5c02b1 Added missing test in wxObject::Ref() for already
equal objects (same m_refData).
  Implemented new ref counting for wxBrush, wxPen
    and wxColour (in addition to wxRegion). Also
    inlined some more functions and implemented
    real comparisons.
  Corrected refresh code to update GTK's window-less
    widgets if overdrawn after a wxWindow::Refresh().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-04 18:01:21 +00:00
Robert Roebling
3bcc8d1581 Now updating and clearing are done in a delayed fashion.
The m_updateRegion gets updated and the (often much
    smaller) m_clearRegion gets cleared. This removes the
    flicker introduced by having delayed updates and
    immediate clearings.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-04 14:05:28 +00:00
Václav Slavík
ca50a0771a compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-01 20:22:17 +00:00
Robert Roebling
35917d228a Added wxRegion::Offset(x,y)
Go to plan B: wxWindow::Scroll() now moved the
    m_updateRegion for later processing.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-30 17:25:18 +00:00
Robert Roebling
f47ae6e7e9 Added various calls to wxWindow::Update() to
wxScrolledWindow. This is ONE solution to
    the redraw problem of the new delayed refresh
    code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-30 16:01:34 +00:00
Robert Roebling
23716407e1 New Refresh()/Update() behaviour. As expected, scrolling
messes up the display.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-30 15:26:49 +00:00
Robert Roebling
beab25bde3 Some changes for new Update/Refresh behaviour. This
commit actually doesn't change anything. I just cleared
some code and added the new interface. I want this to
be seperate from the commit (if any) that introduces the
new behaviour.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-30 13:23:10 +00:00
Václav Slavík
c43430bbac make sure gs_captureWindow is always set to NULL in DoReleaseMouse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-20 11:28:07 +00:00
Vadim Zeitlin
94633ad9f1 maintaint the mouse capture stack in all ports, not just wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-19 19:31:19 +00:00
Vadim Zeitlin
295272bdcd more Sun C++ compiler warning fixes: in particular, added an ugly but
necessary workaround for avoiding warning in the .xpm files


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-11 19:33:37 +00:00
Vadim Zeitlin
903506828b fixes for the compilation warnings with Sun CC:
1. some fixes for "String literal to char * conversion" warnings (many
   more left in the *.xpm files)
2. fixes for "assignment of function to extern "C" function"
3. a few other miscellaneous ones


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-09 12:49:12 +00:00
Václav Slavík
a756f21001 use the new wxSystemSettings API everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-08 23:53:01 +00:00
Robert Roebling
780bb8744b Tries to fix wxListBox focus problems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-22 11:38:56 +00:00