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
Václav Slavík
e0aeebed0a
fixed previous revision: call wxControl's, not wxButton's DoGetBestSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 13:13:39 +00:00
Václav Slavík
b2b4469be1
wxBitmapButton doesn't need own DoGetBestSize, wxControl's one works (fixes sizing bug)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 12:38:21 +00:00
Vadim Zeitlin
3db7220e05
unused params warnings (patch 1048431)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-16 19:41:18 +00:00
Julian Smart
d2b1753d16
Applied patch [ 1039940 ] Prevent redefinition of MM_xxx mapping mode constants
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-07 16:42:11 +00:00
Václav Slavík
571f6981e2
moved wxWindow::GetBestSize implementation into DoGetBestSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 16:37:58 +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
Vadim Zeitlin
e1ff932979
fix for crash on 64 bit platforms (patch 1028942)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 22:34:09 +00:00
Václav Slavík
5f7bcb48fd
new stock buttons API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-30 14:42:51 +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
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
feac79373c
added alpha channel support to wxGTK2's wxBitmap
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-21 22:42:06 +00:00
Václav Slavík
4fab71288e
1. added support for bitmaps with alpha channel
...
2. use GtkImage instead of deprecated GtkPixmap with GTK2
3. create bogus pixmap instead of GtkLabel in wxStaticBitmap with invalid bitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-21 22:41:04 +00:00
Václav Slavík
401e3b6e5f
added stock buttons support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-15 15:56:56 +00:00
Václav Slavík
718e35a651
gtk notebook page style fixes (patch 984864)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-15 07:51:56 +00:00
Vadim Zeitlin
acb69c1342
invalidate m_selection in DoRemovePage(), not in DeletePage() (replaces patch 998984)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-30 23:38:36 +00:00
Vadim Zeitlin
db4c39a9e8
fixed header include guard position (patch 992443)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 16:36:51 +00:00
Robin Dunn
4aae4a085c
Fix for unhiding the other version of the base class HitTest
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 20:26:25 +00:00
Vadim Zeitlin
c04ec49657
fixed inserting styled text into an empty control under GTK+ 2.0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 19:59:00 +00:00
Robin Dunn
fe5ddd9250
DoPrepareDC needs the dc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 18:13:12 +00:00
Vadim Zeitlin
5de9f492ec
added DoPrepareDC()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 16:30:22 +00:00
Václav Slavík
73a7e9399f
HAVE_XIM is disabled in GTK2 build, don't include useless member variables
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-18 17:11:02 +00:00
Stefan Csomor
5ac2e80ca2
making getter const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-14 16:33:17 +00:00
Václav Slavík
7545e13206
a better way of applying style changes to label_widget
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 16:58:10 +00:00
Robert Roebling
e37168448f
Not sure how important that is, but now you
...
can set the font of a static box.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 16:28:22 +00:00
Václav Slavík
a589495eeb
implemented tab order in wxGTK2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-03 11:16:03 +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
66bd83b4ec
fixed setting colour of wxStaticText in case the label contains XML special characters
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-27 13:42:17 +00:00
Václav Slavík
4dcccda66b
implemented 3state checkboxes in wxGTK with GTK2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-26 15:53:22 +00:00
Václav Slavík
a3c15d892d
more fixes to keypress handling in wxGTK:
...
1. don't eat unprocessed events originating from child widgets
2. tell IM context about focus changes
3. set wxKeyEvent modifiers information from last GdkEventKey leading to IM's commit signal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-26 15:25:39 +00:00
Václav Slavík
da21012040
use GtkIMContext variable, not GtkIMMulticontext, we don't use functions that take the latter as their argument
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 17:54:08 +00:00
Robin Dunn
c0e6c05138
reverted m_adjustMinSize change prepatory for a new approach to fix
...
the problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-21 22:58:13 +00:00
Václav Slavík
7074ce3577
moved DoApplyWidgetStyle to wxWindowGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 17:49:26 +00:00
Robin Dunn
fe161a2685
Controls will readjust their size and minsize when SetLabel or SetFont
...
are called. Fixed up wxStaticText to blend the wxST_NO_AUTOSIZE with
this new functionality. Made SetBestSize public under the
SetBestFittingSize name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-19 01:35:10 +00:00
Václav Slavík
5edef14ec8
reset fg/bg colour and font to default if set to wxNullColour/Font
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-18 08:02:01 +00:00
Václav Slavík
f40fdaa339
fixed GTK styles handling:
...
1. don't modify the style unless something changed
2. use gtk_widget_modify_style instead of gtk_widget_set_style, the latter is not recommended by GTK+ developers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-14 17:34:00 +00:00
Václav Slavík
1543645813
respect GTK+'s theme tooltip colour settings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-14 13:27:26 +00:00
Dimitri Schoolwerth
dabbc6a5a1
removed SetAutoLayout(true) calls when a corresponding SetSizer() was also called (the latter already calls SetAutoLayout(true) in case of a non-NULL window); usual cleanup: removing tabs and end of line whitespace, TRUE->true, FALSE->false, -1->wxID_ANY, Enable(false)->Disable(), ""->wxEmptyString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-12 23:44:08 +00:00
Václav Slavík
274ad000d2
added native wxColourDialog for GTK2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-04 16:02:14 +00:00
Václav Slavík
85f6b408df
split wxRegion(wxBitmap) ctor into two ctors with clearer semantics
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-03 21:13:52 +00:00
Václav Slavík
33d4eef0b9
implemented freedesktop.org spec support for GTK version of wxTaskBarIcon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-31 22:17:09 +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
9d522606d0
Get(Class)DefaultAttributes() for wxGTK controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 17:26:25 +00:00
Vadim Zeitlin
d16b634fa3
use ResetClipping() instead of simply setting m_clipping to false; added call to it to wxDCBase::DestroyClippingRegion() so that some ports don't have to define their own version of it at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-05 22:43:57 +00:00
Robin Dunn
abdeb9e700
Added wxControl::PostCreation for wxGTK. Moved calls to
...
InheritAttributes and ApplyWidgetStyle there, and added a call to
SetInitialBestSize. Also removed calls to Show from Create since
PostCreation already does it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-04 07:09:32 +00:00
Robin Dunn
b2ce5e1b27
Implement some base class virtuals to avoid errors related to this not
...
being a true wxDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-02 01:55:29 +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