Robby Findler
3f9e60a908
add display-changed method
2012-12-21 19:22:59 -06:00
Matthew Flatt
5b016b4c32
win32: support MinGW build
...
A MinGW build is the same shape as a MSVC build (but without
MzCOM), unlike a Cygwin build.
2012-12-09 11:26:02 -07:00
Matthew Flatt
7b04571fac
racket/gui: add `get-current-mouse-state'
2012-11-07 14:37:39 -07:00
Eli Barzilay
672910f27b
Lots of bad TAB eliminations.
...
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.
If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces. For example, to see
per-line authors, use "git blame -w <file>". Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Matthew Flatt
068240e9fe
racket/gui: fix problems with control labels and client/global positions
...
Closes PR 13232
2012-11-04 08:47:50 -07:00
Matthew Flatt
0c82f54912
racket/gui: add delete' to
choice%' and `list-control<%>'
...
Closes PR 13230
2012-11-04 08:25:43 -07:00
Matthew Flatt
ebe0b64d47
racket/gui win32: fix drag-and-drop onto frame
...
Closes PR 13109
Merge to v5.3.1
2012-10-09 21:13:34 -06:00
Matthew Flatt
75008f14d7
win32: fix combo-field% click handling
...
Closes PR 13173
Merge to v5.3.1
2012-10-09 20:05:47 -06:00
Matthew Flatt
7ddd99cf52
racket/gui win32: fix duplicate pre- events for controls
2012-10-02 07:26:25 -06:00
Matthew Flatt
a5d7812732
racket/gui: skip some redundant 'enter & 'leave events
2012-10-02 07:26:25 -06:00
Matthew Flatt
efcad101d1
win32: fix coordinates of non-client mouse events
...
Closes PR 13141
2012-10-01 13:08:24 -06:00
Matthew Flatt
c16b696272
win32: fix for clipboard bitmap decoding
...
Closes PR 13119
2012-09-19 09:12:57 -06:00
Matthew Flatt
4f75350bf3
win32: fix(?) printing page-size calculation when in 100*mm
...
Windows provide page metrics in either 1000ths of inches or
100ths of millimeters. I think Racket's calculation was wrong
in the mm case.
2012-09-19 08:40:24 -06:00
Matthew Flatt
7291e1a24d
racket/gui win32: atomicity repair
2012-08-29 17:45:59 -06:00
Matthew Flatt
d9784aa7eb
win32 racket/gui: fix decoding of system font name
...
Closes PR 12997
2012-08-23 08:16:23 -06:00
Matthew Flatt
0648556bea
racket/gui: internal cleanup
...
As suggested by Robby.
2012-08-13 17:11:20 -06:00
Matthew Flatt
1800680c6b
racket/gui: fix access of scrollbar values for canvas without a scrollbar
2012-08-12 20:17:29 -06:00
Matthew Flatt
d5024f0f20
win64 racket/gui: another work around for Cairo clipping issues
...
Cairo doesn't seem to deal correctly with an HDC produced
by BeginPaint() that has a clipping region. The problem affects
only Win64. Work around the problem by drawing to a separate
HDC and copying to/from the screen. (To see the problem before
this patch, draw the DrRacket window to the edge of the screen
and back, and observe tha the toolbar doesn't update correctly.)
This change could affect performance, but it should mostly
be limited to refresh when a window moves.
2012-08-08 09:56:44 -06:00
Matthew Flatt
c7d181c2a9
racket/gui, win32: fix problem with mimize for fixed-size window
2012-06-23 04:15:28 -06:00
Matthew Flatt
7a9c8e5d40
racket/gui win32: fix East Asian font problem
...
When the theme-specified default font has a localized name,
using it as a Pango faily name doesn't work, with the result that
text on controls could be truncated. Get a Pango-friendly
name by converting a LOGFONT to a Pango font description and
getting the name from the font description.
2012-06-06 13:25:14 +08:00
Matthew Flatt
58db5f8b46
racket/gui: implement set-clipboard-bitmap' in
clipboard<%>'
...
Closes PR 12689
Cocoa implementation provided by Jens Axel Søgaard
2012-05-26 19:42:48 -06:00
Matthew Flatt
5b80fd37c7
racket/gui win32: fix screen info to not assume main is first
...
Thanks to Kieron Hardy for tracking down the problem.
2012-05-26 07:38:24 -06:00
Matthew Flatt
9c025210aa
racket/gui win32: font fallback for labels
...
When the requested font isn't available, fall back to
the default font at the requested size and style
2012-04-25 19:17:16 -06:00
Eli Barzilay
2b76d9e5b0
A bunch of scheme' ->
racket' conversions.
...
I think that there are no user-visible changes from these changes.
2012-04-19 16:02:03 -04:00
Matthew Flatt
9d563c786a
racket/gui, win32: fix problem with modal dialogs
...
Although most events in other frames were blocked, it was
possible to bring other frames to the front and to select
menu items in other frames.
2012-04-05 06:58:53 -06:00
Matthew Flatt
d74793a5f9
fix race condition on GetLastError() call
2012-03-09 10:34:56 -07:00
Robby Findler
d476d3f21a
fix a bug I thought I'd fixed a while back...?
2012-02-22 16:51:48 -06:00
Robby Findler
1945ff2709
add make-platform-bitmap
...
also: use it in pict's rendering and
remove redex's platform-specific font choice
(going back to using 'modern on all platforms)
closes PR 12554
2012-02-21 16:19:45 -06:00
Matthew Flatt
af62391c8c
win32: fix canvas% control border drawing
...
Use the system-supplied region to intersect with the
window region, so that drawng the border doesn't replace
the window content.
See also Kieron Hardy's post on the users' list, 2/7/12.
2012-02-11 08:45:32 -07:00
Matthew Flatt
01dce00271
racket/gui: correct some casts in GUI bindings
2012-01-23 11:20:21 -07:00
Matthew Flatt
f93c94f6ff
add 'shift, 'control, 'rshift, and 'rcontrol events
2011-12-08 15:05:41 -07:00
Matthew Flatt
63f3a51ae6
win32: get default frame icon from application
...
Also, clean up icon- and cursor-loading code
2011-11-16 14:45:32 -07:00
Matthew Flatt
7ad81e7560
win32: enable live resize of frames
2011-11-15 12:44:26 -07:00
Matthew Flatt
2d70017091
win32: avoid line-wrap in `meesage%' display
...
Also, adjust text measuring to ensure that it is as close
as possible to measurements for a control.
2011-11-08 06:55:40 -07:00
Matthew Flatt
3941a5d04f
cocoa: make grow-box-spacer zero-width for 10.7
2011-10-04 12:59:18 -06:00
Matthew Flatt
4535f5d8cc
fix keyboard navigation (all platforms)
...
Also, fix `set-selection' in `list-box%' to not invoke the
tab panel's callback function (cocoa & gtk).
2011-09-30 13:44:24 -06:00
Matthew Flatt
2bd461de50
win32: fix `get-file-list' with a single file result
2011-09-10 14:56:53 -06:00
Matthew Flatt
ce4705cedc
get-diplay-size' and
get-display-left-top-inset' use #f for failure
...
Since the number of monitors can change at any time, reliable
use of these functions requires handling failure in some way.
Handling #f results is easier (and less likely to mask other
problems) than catching exceptions.
2011-09-09 17:03:17 -06:00
Matthew Flatt
f5e534fd87
win32: fix canvas refresh
...
Refresh was wrong in the case that a canvas had been "reset"
in certain ways, such as showing and hiding, and the canvas is
drawn on before a Win32-level refresh event was processed. In
that case `on-paint' wasn't called, and it should have been.
Closes PR 12152
2011-09-02 08:27:49 -06:00
Matthew Flatt
461af202c5
implement 'border style for `panel%'
2011-08-13 07:00:51 -06:00
Matthew Flatt
456e9befd3
fix refresh' on
window<%>'s other than `canvas%'s
2011-08-12 17:03:28 -06:00
Matthew Flatt
8711aa6c5d
work around win64 drawing problem
...
Merge to 5.1.2
2011-07-22 07:51:01 -06:00
Matthew Flatt
255549c8c8
win32: fix is-maximized' in
frame%'
...
Merge to 5.1.2
2011-07-19 08:55:33 -06:00
Matthew Flatt
23a2a075ea
add get-display-count' and #:screen argument to
get-display-size'
...
and to `get-display-left-top-inset'
add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Matthew Flatt
59731368fc
add ffi/winapi; use it in mzlib/os
...
Closes PR 12007
2011-07-01 10:42:17 -06:00
Matthew Flatt
6f42c6ed5e
win32: fix checkable menu item to toggle on selection
...
Closes PR 11985
2011-06-17 16:02:49 -06:00
Matthew Flatt
cae005a6a2
win32: fix window-enabling problems
...
Closes PR 11769
2011-04-14 14:50:44 -06:00
Matthew Flatt
aabd5f7bd2
gtk: fix over-eager attempt at alt- menu activation
...
Closes PR 11843
2011-04-11 07:39:40 -06:00
Matthew Flatt
71df6ddc05
gtk, cocoa: fix auto-sizing of text `message%'s
2011-04-08 14:22:17 -06:00