Commit Graph

114 Commits

Author SHA1 Message Date
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
Václav Slavík
e25c7537ff fixed transiency when the parent is MDI child frame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 19:38:32 +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
Julian Smart
9f4ccdd739 Early versions of GTK+2 don't have has_toplevel_focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 12:20:21 +00:00
Vadim Zeitlin
6b30a44ed0 renamed HasFocus() to IsActive() to avoid confusion with FindFocus(); documented it; avoid code duplication in GTK1 version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 14:32:09 +00:00
Robert Roebling
35ff90a0b3 Added wxTopLevelWindow::HasFocus() as discussed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-26 14:17:23 +00:00
Václav Slavík
87e53e2a94 use GTK+ API for setting icons instead of direct X11 calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-22 18:23:14 +00:00
Václav Slavík
d8e1fe80ad wxTLW::IsMaximized for wxGTK2 (patch 992743)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-17 16:53:28 +00:00
Vadim Zeitlin
387fd89d8c typo fix in Restore(): __GTK20__ -> __WXGTK20__ (patch 984852)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-04 11:13:23 +00:00
Václav Slavík
e74c05294a m_queuedFullRedraw is not used anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 10:02:05 +00:00
Václav Slavík
2be125e6fc implemented wxFRAME_NO_TASKBAR for wxGTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-28 21:47:54 +00:00
Václav Slavík
4d8d6490da create wxDialog with proper _NET_WM hint so that the WMs recognize it as a dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-28 21:37:33 +00:00
Václav Slavík
63c5efa344 allow classes derived from wxTopLevelWidnow to use other GTK widget than GtkWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-31 22:10:37 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Robin Dunn
82b978d70d Reverted last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-01 22:46:38 +00:00
Robin Dunn
abdb7725e1 In wxGTK2 the wxMessageDialog is not a real wxDialog so its m_widget
will always be NULL there will be a wxCHECK asserts triggered whenever
calling base class methods that are valid calls (or just ignored) on
other wx ports.  Added a set of macros to be used to test m_widget
that will bypass the wxFAIL if the window is a wxMessageDialog.  This
will silence those asserts if the window is a wxMessageDialog and will
let the method doing the check just be ignored in that case.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-01 21:29:35 +00:00
Robin Dunn
66202a7ee6 I keep running into situations where the old small default window size
was expected, and odd initial layouts resulted, so let's leave only
TLWs at the new 400x250 default size, and give all other windows the
old 20x20 default.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-13 20:41:09 +00:00
Robin Dunn
1111cedc6a TLWs can use the WidthDefault and HeightDefault methods too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-10 01:17:22 +00:00
Robert Roebling
62be94e1b1 make use of GPE feature
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-28 13:18:08 +00:00
Robert Roebling
ca06ee0df7 wxGPE updates to HEAD.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-15 15:31:39 +00:00
Václav Slavík
14f355c2b5 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Robin Dunn
819451b6c7 Reversed the meaning of black and white in wxRegion::ConvertToBitmap
so it matches the menaning of black and white in wxMask


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-03 17:56:30 +00:00
Robin Dunn
6a7e641161 Shaped window support for wxMac, plus a wxSTAY_ON_TOP fix from Egon
<e_lub@yahoo.com>   wxMac requires knowledge before Create that SetShape
will be called so I also added the wxFRAME_SHAPED style flag.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-30 00:39:15 +00:00
Robin Dunn
1542ea396a Added wxTLW::SetShape and implementations for wxGTK, wxMSW and an
empty stub for wxMac.
Added some generic helpers and a new ctor to wxRegion.
Added samples/shaped.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-28 23:05:05 +00:00
Václav Slavík
850c6ed46e wxCLOSE->wxCLOSE_BOX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-27 10:13:26 +00:00
Václav Slavík
c3d8ee42db added wxCLOSE and fixed wxSYSTEM_MENU on Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-26 19:24:19 +00:00
Václav Slavík
1cff04deb5 fixes to ShowFullScreen (KDE 3.1)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-03 23:23:05 +00:00
Robert Roebling
cba9ef7f73 Minor fix related to wxMiniFrame drawing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-05 22:56:57 +00:00
Václav Slavík
8166ab4343 added more robust wxTLW::ShowFullScreen implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-04 23:34:34 +00:00
Vadim Zeitlin
2b5f62a0b2 merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Robert Roebling
8805e15544 Implemented Maximize() etc for GTK 2.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 15:44:26 +00:00
Julian Smart
508196798b Applied patch [ 594717 ] Implements wxFRAME_FLOAT_ON_PARENT
By John Skiff


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-16 10:33:41 +00:00
Vadim Zeitlin
1cbee0b42c the app doesn't exit any more if a dialog is shown (and destroyed) while
the flow of control is still in OnInit()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-15 20:42:07 +00:00
Václav Slavík
83afe21166 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 23:09:33 +00:00
Robert Roebling
fab591c5cc Lots of updates for Unicode and GTK 2.0 support.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-05 17:59:20 +00:00
Robert Roebling
8a9650eaaf New implementation of ShowFullScreen(). It works
so well, it is hard to believe.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-28 16:23:25 +00:00
Robert Roebling
d44c23ceb6 Changed wxGTK's notion of SetSize() to never allow setting
the width and height to -1 even if the wxALLOW_MINUS_ONE
flag is set.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-23 20:51:42 +00:00
Ron Lee
801225c191 Fix for the irksome, 'Details' sizing bug. Or at least a patch on a hornet's
nest.  Thanks to jill@emeraldgate.com for tracking this one (and the previous
StatusBar patch too).

There's more work here if someone wants it..  :-)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-01 10:27:29 +00:00
Julian Smart
5152b0e59a Added AddGrab, RemoveGrab, IsGrabbed to wxTopLevelWindowGTK
and AddGrabIfNeeded to wxHtmlHelpController, to assist with
showing the help window from a modal dialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-18 21:46:42 +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
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
Vadim Zeitlin
73847506eb removed unused OnSetFocus()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-22 15:44:36 +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
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
Vadim Zeitlin
52d6235db0 compilation warning fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-02 16:24:31 +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
Mattia Barbon
7efaed4de4 Fixed problems with wxFrame::SetIcons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-28 20:51:55 +00:00
Mattia Barbon
f618020a15 wxIconBundle implementation.
wxTLW::SetIcons() properly implemented for wxMotif, wxGTK, wxMSW, wxX11, wxUniversal
Placeholders that just call SetIcon for wxOS2 and wxMac.
Regenerated makefiles.
Added hardwired wxSYS_ICON_X/Y = 32 for wxGTK.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-26 21:54:23 +00:00
Vadim Zeitlin
710968c3aa fixed GTK critical warning when closing MDI child (patch 529369)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-19 15:04:53 +00:00