Commit Graph

1830 Commits

Author SHA1 Message Date
Robert Roebling
fb3ed106d1 Compile fixes for ANSI mode.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-17 17:03:01 +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
Robert Roebling
2e1d710482 Further UNicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-15 20:45:58 +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
Vadim Zeitlin
57f2b902bc fixed (and slightly cleant up) wxGTK compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-15 17:55:03 +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
b15ed74753 New GTK 2.0 Update() code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 20:59:05 +00:00
Robert Roebling
6c2019b942 Minor correction to GetTextExtent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 20:56:40 +00:00
Robert Roebling
02c0348e97 Forgot Unicode conversion in wxStaticText.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 20:37:00 +00:00
Vadim Zeitlin
982f23fd00 better use strncpy() than strncat() with uninitialized buffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 19:40:41 +00:00
Robert Roebling
48d011c896 Implemented GetTextExtent() for GTK 2.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-13 17:23:20 +00:00
Robert Roebling
a732ef9150 Same typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-11 19:39:51 +00:00
Robert Roebling
b1ac3b56e6 Added wxString::FromAscii() wxString::ToAscii().
Removed wxConvFile, made it a define wxConvLocal.
  Exchanged some wxConvLibc to wxConvLocal calls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-11 13:09:57 +00:00
Robert Roebling
f341e39bdf Compile fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 18:26:02 +00:00
Julian Smart
b318dc4237 Applied patch [ 579219 ] wxNotebook:SetPadding added
This allows changing the padding of the icons and text
in the tab of a wxNotebook for wxGTK.

Since the container in the tab is only a horizontal
container only the width component is used. Negative
values are acceptable so no checks were made.

It now defaults to a padding of 0 on the sides and 1 in
between the icon and label, looks good for a few
"themes" I tried.

Note: Unfortunately there is no function to set the
padding on the left or right side of a widget.
gtk_box_set_child_packing sets padding on BOTH sides of
a widget so you'd get double the spacing between an
icon and the label. To get around this, the icon (if
there was one) is removed and added back. That way the
icon will provide the padding on the left and the label
will provide the padding between and to the right. It
looks nice for all sizes. The
gtk_container_set_border_width unforuntately only adds
borders to ALL sides equally.

A simple check is to add m_notebook->SetPadding in one
in the spinctrl callback in the controls sample. (set
appropriate range too -10,20). Note that the tab sizes
change to fit the width of the panel, if appropriate,
and so the spacing between the icon and label changes
accordingly. This isn't a bug, but it does look weird
as you scan up and down the spacing (which nobody would
normally do).

I also changed all wxGtkNotebookPage variables to
nb_page so that "int page" would be used to mean the
page number. Just cosmetic for consistency with the
rest of the functions that were already like that.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 10:11:32 +00:00
Julian Smart
a57a1fb7e0 Applied patch [ 588140 ] User Scaling of Rotated Text on wxGTK
The effect of wxDC::SetUserScale() on
wxDC::DrawRotatedText() is to scale the text **twice**.
The code is in src/gtk/dcclient.cpp

The first scaling operation occurs when choosing the
GTK font size (as happens for wxDC::DrawText()). The
rotated text is scaled a second time when blitting the
rotated text bitmap to the DC, in the functions
XLOG2DEV(x + dstX) and YLOG2DEV(y + dstY).

The supplied patch moves the rotated bitmap co-ords
(dstX, dstY) outside of the LOG2DEV functions.

bryan cole (bryancole)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 10:00:50 +00:00
Julian Smart
91b167ddeb Applied patch [ 590031 ] Slider: Events must be enabled earlier
The current wxSlider - implementation gives a gtk-warning
about not being able to find an event handler. This is
because the first call of GtkEnableEvents has to happen a
few lines earlier. The patch fixes this.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 09:24:38 +00:00
Robert Roebling
f7c22a2874 Compile fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-06 19:14:44 +00:00
Robert Roebling
46eed000d6 Further code for Pango fonts (work now) and
some code for Pango prining. Doesn't work..


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-06 18:58:19 +00:00
Robert Roebling
db16cab461 Lots of work to set PangoFontDescription as the
native font info data. WIP.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-06 16:41:31 +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
b03f81b778 Miserable hack around problem when shrinking
a scrolled window with child windows when
    it was maxiamally scrolled.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-05 17:56:06 +00:00
Mattia Barbon
81001ff133 Regenerated files.lst after addition of listbase.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-31 20:40:46 +00:00
Ron Lee
007c77ab4d The world should not end if a server has no peer. Let's return FALSE instead.
GAddress_copy should copy truthfully, not mangle the result if things are
going badly.  An earlier incarnation of the above.
Disable events before closing the socket, though just disabling them at all
will do.  This was the cause of the nasty 'crash on fail to bind' behaviour
that people have been seeing.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-29 04:13:25 +00:00
Václav Slavík
4e9cbd33d0 ported characters escaping in menus to GTK+ 2.0
(it is now possible to have / in menu entries, unlike in case of GTK+ 1.2;
and \ was fixed to work in 2.0)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-28 18:48:36 +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
Mattia Barbon
dc0e23b8fb Updated Makefiles for all but Motif; there is either a lock or a CVS problem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-24 19:46:48 +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
Julian Smart
94a6f0f8d6 Possibly cured the assertion message dialog paint problem,
by explicitly calling OnInternalIdle if it's a message dialog
within an assertion.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-23 16:27:14 +00:00
Vadim Zeitlin
fa2540e305 fix to not show ampersands in the static box title (needed after the previous change)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-23 14:09:32 +00:00
Robert Roebling
62cb3cd8a1 Tried to fix update/refresh again. The code erronously
cleared the updated area if the area to be cleared
    was empty (such as after a call to Refresh(FALSE)).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-12 20:27:44 +00:00
Robert Roebling
e1b93ccbdc Don't let wxSlider send events when programmatically changing
the controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-09 21:01:04 +00:00
Ron Lee
92aff599b5 Update Layout more correctly in DoSetVirtualSize.
fixed format string typo.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-07 03:16:35 +00:00
Robert Roebling
3013a903c1 Cosmetic change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-06 14:36:39 +00:00
Vadim Zeitlin
7b4c2a061b fixed bug introduced by my previous GtkUpdateSize() commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-06 13:14:27 +00:00
Vadim Zeitlin
b8b7f03cef use GtkUpdateSize() for consitency everywhere instead of directly setting m_sizeSet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-05 13:24:49 +00:00
Vadim Zeitlin
94f1450956 fixed SetToolBar(NULL) behaviour -- don't leave a hole from toolbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-05 13:20:54 +00:00
Julian Smart
f6116855f0 Corrected my wrong application of patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-04 19:08:39 +00:00
Julian Smart
696f36b70d Applied patch from Mark Armstrong <marka@availsolutions.com>
Allows GC pool to grow dynamically.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-04 09:05:18 +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
Ron Lee
ada7d2c0e7 arg type warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-22 15:58: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
Julian Smart
5869f93fc8 Moved flicker-removal to GTK+ code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-18 15:57:39 +00:00
Julian Smart
eb411b9eea Set the clear region to be the update region if the update
region is non-empty but the clear region is empty, because
otherwise we're going to clear more than we repaint


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-18 08:29:34 +00:00
Vadim Zeitlin
edc1d330a5 init the event id and timestamp fields for the mouse events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-17 13:09:36 +00:00
Robin Dunn
be88a6ade9 Fixed wxApp::OnAssert signature.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-15 01:43:03 +00:00
Vadim Zeitlin
63fd5f0b27 added missing semicolons after asserts (patch 567853)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-12 15:26:35 +00:00
Vadim Zeitlin
fa1fcc6642 fixed infinite loop in wxCursor(wxImage) ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-12 14:12:19 +00:00
Vadim Zeitlin
1a685a59a0 fixed a warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-12 14:12:00 +00:00
Robert Roebling
1ec3a9848a Moved wxCharhookEvent so that it sends the same
keycode as wxCharEvent.
  Removed wxDestroyWindowEvent as it crashes all
   the time.
  Corrcted wxTreeCtrl's interception of wxCharEvents
   as it misinterpreted "F5" for "Z" e.g.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-09 23:02:58 +00:00