Włodzimierz Skiba
a290fa5a7d
Cleaning of sources (Univ related files). -1/TRUE/FALSE/wxIDY_ANY/wxDefaultCoord/whitespaces/!! issues.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-10 13:08:43 +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
David Elliott
4224f05975
Instead of m_menuBar use GetMenuBar() which will be modified (with next patch)
...
to traverse up the menu hierarchy to return the menu bar.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-30 00:43:16 +00:00
Julian Smart
dba6b4f880
Applied patch [ 892543 ] wxUniversal: Bitmaps in disabled menu items
...
Christian Sturmlechner
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 12:38:31 +00:00
Robin Dunn
9add93670b
wxMenu::Append (and similar) now return a pointer to the wxMenuItem
...
that was added. Checked on MSW, GTK, and Mac, other port authors
please double check changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-23 18:46:05 +00:00
Vadim Zeitlin
e441e1f4e8
made wxNO_FULL_REPAINT_ON_RESIZE default, added wxFULL_REPAINT_ON_RESIZE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:26:40 +00:00
Julian Smart
8a39593ebe
Applied patch [ 808050 ] fixes for WXUNIVERSAL and UNICODE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 14:03:09 +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
Mattia Barbon
ac32ba44a1
wxX11 and wxMotif STL-ification, part 1. it does not compile.
...
yet, but keeps the diff between my local copy and HEAD < 4000
lines...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 20:00:38 +00:00
Julian Smart
e39af974ef
- Moved wxApp::SendIdleEvents and wxApp::ProcessIdle into common code.
...
- wxWindow::OnInternalIdle is now used in all ports, and ensures that
user OnIdle events do not interfere with crucial internal processing.
- wxWindow::UpdateWindowUI is now a documented function that
sends wxUpdateUIEvents, and can be overridden. It has a helper function
DoUpdateWindowUI for taking appropriate wxUpdateUIEvent action.
- Added functions to wxUpdateUIEvent: Set/GetMode, Set/GetUpdateInterval,
CanUpdate, to assist with optimising update event frequency.
- Added functions to wxIdleEvent: Set/GetMode, CanSend, to
determine whether a window should receive idle events.
- Added wxWS_EX_PROCESS_IDLE, wxWS_EX_PROCESS_UI_UPDATES window
styles for use with conservative idle and update event modes.
- wxMSW and wxGTK now send menu update events only when a menu is
about to be used.
- Added WM_INITMENU processing instead of WM_ENTERMENULOOP, or
accelerators don't always get called since menu items may still
be disabled.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 10:15:21 +00:00
Julian Smart
6aa89a22b8
Fixed copyrights and licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:55:54 +00:00
Julian Smart
6f7c5199ed
Applied patch [ 677730 ] Menus with radio items (wxUniv)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-02 14:50:05 +00:00
Julian Smart
90b18154c8
Applied patch [ 597320 ] Return wxNotebook::SetSelection value
...
By Hans Van Leemputten (hansvl)
According to the documentation
wxNotebook::SetSelection() should return the previous
selection... (Like wxMSW does) but the wxUniv version
returns the currently selected selection.
Patch was tested with wxX11.
Applied patch [ 597313 ] Popup menu still used after deletion
By Hans Van Leemputten (hansvl)
- This patch exists out of 2 parts;
Part 1 is a patch to show the problem with the menu
sample (this part is just to show the problem and should
not be put into CVS!).
Part 2 is the fix and should be put in CVS.
(src/univ/menu.cpp)
- Instructions to reproduce the problem with the menu
sample:
1. Apply part 1 of the patch only.
2. Run the sample after recompiling it.
3. Press "Close Test" -> "Close", this will basically
remove the current menu bar and recreate it again and
re-use the menu item "Close test" from the old menu
bar...
4. Again press "Close Test", doing this will already
crash the sample.
- The cause of the problem is that the m_popupMenu in
wxMenu is deleted because it is a child of the old menu
bar (Note: it does not get destroyed by the wxMenu
destructor, but by DestroyChildren()) and m_popupMenu
is not put back to NULL when this happens...
- This patch was tested only with wxX11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 08:34:05 +00:00
Julian Smart
8601b2e15b
Modifications to get wxNanoX compiling again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-01 14:09:44 +00:00
Robert Roebling
c2c0dabfa6
More changes for better redraw flow under X11.
...
Probably fixed problem with TLW appearing wrong.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-28 18:57:50 +00:00
Vadim Zeitlin
e4052bd3e6
compilation fix after wxMenuItem changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-19 16:13:43 +00:00
Vadim Zeitlin
d65c269b3f
1. implemented radio menu items for wxGTK
...
2. changed (in most cases blindly) code for all the others
3. added wx/features.h
4. update wxMenu[Item] docs
----------------------------------------------------------------------
Committing in .
Modified Files:
distrib/msw/tmake/filelist.txt docs/changes.txt
docs/latex/wx/menu.tex docs/latex/wx/menuitem.tex
include/wx/defs.h include/wx/menu.h include/wx/menuitem.h
include/wx/gtk/menu.h include/wx/gtk/menuitem.h
include/wx/mac/menuitem.h include/wx/motif/menuitem.h
include/wx/msw/menuitem.h include/wx/os2/MENUITEM.H
include/wx/univ/menuitem.h samples/menu/menu.cpp
src/common/menucmn.cpp src/gtk/menu.cpp src/mac/menuitem.cpp
src/motif/menuitem.cpp src/msw/menuitem.cpp
src/os2/MENUITEM.CPP src/univ/menu.cpp
Added Files:
include/wx/features.h
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-18 19:41:35 +00:00
Robert Roebling
2f12683e40
New attempt to implement wxNO_FULL_REDRAW_ON_REPAINT.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-17 14:31:31 +00:00
Robert Roebling
ee3510132b
Various changes to make pop up menus work
...
under X11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-09 20:22:44 +00:00
Robert Roebling
ea1ad04b43
Lots of things to make menus and submenus work.
...
Also added wxPopTransientWindow::CanDismiss() which will
be needed for pop-up menus, although that actually
still has to be done...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-28 22:42:14 +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
Václav Slavík
5a750e5a17
use wxLogTrace, not wxLogDebug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-13 00:35:47 +00:00
Julian Smart
7edcafa467
Removed some debug code from window headers; added some debug
...
code to try to figure out capture problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-12 18:15:20 +00:00
Vadim Zeitlin
86171954ec
don't skip first/last node when pressing down/up arrow after opening the menu with the mouse
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-04 15:40:34 +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
Václav Slavík
a9a05059b9
oops, segfault
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-15 22:53:37 +00:00
Václav Slavík
a9f994d915
fixed mouse capture release code -- it previously released capture of window that didn't gain it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-13 22:49:09 +00:00
Vadim Zeitlin
02cbc27a34
fix menubar sizing (at least under windows)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-08 01:03:52 +00:00
Václav Slavík
a08afcce1c
reverted my previous check in, it was nonsense
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-07 09:46:07 +00:00
Václav Slavík
a26e0bc1fd
wxUniv tries to release mouse capture from menu bar instead of menu
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-06 22:46:06 +00:00
Vadim Zeitlin
23d8bb2c66
fixed wxUniv menus under wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-24 18:46:54 +00:00
Vadim Zeitlin
4087064a38
don't try to refresh the menu bar before showing it, fixes crash on startup with wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-13 14:59:08 +00:00
Vadim Zeitlin
6522713c75
wxUniv compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-10 12:25:46 +00:00
Julian Smart
1f752a2282
Released menubar capture before menu popup was captured.
...
Process menu command AFTER menu is dismissed (or it stays there).
Still some problems but menus and message box beginning to work in MicroWindows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-05 15:49:18 +00:00
Julian Smart
54800df8d8
Misc fixes, now menus are almost working on MicroWindows
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-05 13:35:53 +00:00
Vadim Zeitlin
a3870b2ff5
reverted Julians changes to the pragmas
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-04 18:07:15 +00:00
Julian Smart
7190821305
Changed the pragmas to allow debugging under Linux
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-04 17:12:37 +00:00
Vadim Zeitlin
442b35b53b
changed copyright to SciTech one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-02 19:42:27 +00:00
Julian Smart
8cb172b4f1
Various wxUniversal/wxMicroWindows fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-02 13:22:19 +00:00
Vadim Zeitlin
1e6feb95a7
first pass of wxUniv merge - nothing works, most parts don't even compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-26 20:59:19 +00:00