Commit Graph

165 Commits

Author SHA1 Message Date
Matthew Flatt
60c5ad33e3 cocoa: make grow-box-spacer zero-width for 10.7
original commit: 3941a5d04f71a7d17f9ad341b30e2d6acde098c8
2011-10-04 12:59:18 -06:00
Matthew Flatt
6c3d889b93 fix keyboard navigation (all platforms)
Also, fix `set-selection' in `list-box%' to not invoke the
tab panel's callback function (cocoa & gtk).

original commit: 4535f5d8cc0fe4d0c3c360d7527980b1c3b7e39a
2011-09-30 13:44:24 -06:00
Matthew Flatt
fd8c7242d1 win32: fix `get-file-list' with a single file result
original commit: 2bd461de50a7eae9bf2d9b2ad523443aae9843ba
2011-09-10 14:56:53 -06:00
Matthew Flatt
cf84b6b496 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.

original commit: ce4705cedce9dc6f1658e93245d07f739e26a19b
2011-09-09 17:03:17 -06:00
Matthew Flatt
7557fb70af 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

original commit: f5e534fd87e1e4e278e835c9237c2efa5ed27bc2
2011-09-02 08:27:49 -06:00
Matthew Flatt
556a322e3c implement 'border style for `panel%'
original commit: 461af202c5cfa17351ff3758ab29f9eda61cf38d
2011-08-13 07:00:51 -06:00
Matthew Flatt
ce6879c013 fix refresh' on window<%>'s other than `canvas%'s
original commit: 456e9befd3959cfab1e74943fb99eb4552c97313
2011-08-12 17:03:28 -06:00
Matthew Flatt
26d947d5eb work around win64 drawing problem
Merge to 5.1.2

original commit: 8711aa6c5d819899fce1ff06f5bf60fe01cc10cb
2011-07-22 07:51:01 -06:00
Matthew Flatt
eb2aca3480 win32: fix is-maximized' in frame%'
Merge to 5.1.2

original commit: 255549c8c8fb751a2128478179cb078a70218f3b
2011-07-19 08:55:33 -06:00
Matthew Flatt
15bfdb93aa add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow

original commit: 23a2a075eaa636b27ec0700a054d49989ae53a0e
2011-07-18 20:15:15 -06:00
Eli Barzilay
950c968e77 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Matthew Flatt
371f2ca494 add ffi/winapi; use it in mzlib/os
Closes PR 12007

original commit: 59731368fc7d90c1177c60ade3ec1f8c4fb0a4ae
2011-07-01 10:42:17 -06:00
Matthew Flatt
da5518081d win32: fix checkable menu item to toggle on selection
Closes PR 11985

original commit: 6f42c6ed5e2682e6d43a01d9b3c486df9e6027ef
2011-06-17 16:02:49 -06:00
Matthew Flatt
c91f9950cc win32: fix window-enabling problems
Closes PR 11769

original commit: cae005a6a2e052d1867c63694dca059a39b5dd40
2011-04-14 14:50:44 -06:00
Matthew Flatt
cc9dc765c3 gtk: fix over-eager attempt at alt- menu activation
Closes PR 11843

original commit: aabd5f7bd2e0b71ad218f9f0475abcd64e4b9afa
2011-04-11 07:39:40 -06:00
Matthew Flatt
ca0ee2dd53 gtk, cocoa: fix auto-sizing of text `message%'s
original commit: 71df6ddc051414540ff4e80503b5b4f7aec78ee9
2011-04-08 14:22:17 -06:00
Matthew Flatt
d2ecb2bcc6 win32: another try for horizontal wheel events
original commit: 37f9363b9069bca5bbc76a80b89e34cd66b2acc0
2011-04-03 16:09:11 -06:00
Matthew Flatt
cca9680f76 win32: ignore inapplicable WM_HSCROLL and WM_VSCROLL events
original commit: 342964b10a7fe95f648f2d652518786b4ebf5ddb
2011-04-03 15:17:10 -06:00
Matthew Flatt
9722fe9427 add 'wheel-left and 'wheel-right events
original commit: b0115ee3605259d0e79c369e4bc11203e417c32d
2011-04-03 09:49:56 -06:00
Matthew Flatt
3b16f7a8e2 win32: clipboard fix
original commit: 4e7281768818743ef9c9b779affef23448dff344
2011-03-27 11:22:15 -06:00
Matthew Flatt
9f4be33c93 fix support for a string result from get-data' of clipboard-client%'
and properly report an error when the result from `get-data' is not
  allowed
 Closes PR 11821

original commit: d77c92d0878384024a3b00f6bfaa7fe3214493f6
2011-03-27 10:51:46 -06:00
Matthew Flatt
88e3498216 win32: fix `play-sound'
by fixing path handling and preventing non-async
 play from blocking all Racket threads

original commit: 968bf81990a63607ff4a0a52f972ba21deb85347
2011-03-10 07:35:51 -07:00
Matthew Flatt
851c476430 racket/gui: scrollbar support panels
original commit: 93e1467b8bc8a6045233f8f8e79a1fb0ac15a091
2011-02-24 13:23:51 -07:00
Matthew Flatt
aaf5c41566 multi-column support in list-box%
original commit: 137d96c08917ad5dd636a26d2d32c746f5c7e7b0
2011-02-21 13:58:57 -07:00
Matthew Flatt
e59e323428 gtk: smoother editor-canvas resize
- call `on-size' on setting the canvas size, like Win32 and Cocoa,
   which mainly shows/hides auto-shown scrollbars more on time
   (e.g., DrRacket doesn't start with horizontal scrollbars that
   immediately disappear)
 - switch mouse tracking to "hint" mode, instead of catching every
   single mouse position
 - when queueing `on-size' methos in response to client-size changes,
   cancel and queued but undelivered calls; in the case of editor
   canvases, this doesn't really have an effect, due to the other
   `on-size' call
 Closes PR 11369, hopefully

original commit: 85951bf665207db4539fe97cd86b7f924c83eac5
2011-02-19 16:10:00 -07:00
Matthew Flatt
704e5a0529 win32: fix some key events
Closes PR 11757

original commit: 5754269ae10ecb22c406b15f08ced4cfddc782ed
2011-02-19 08:36:17 -07:00
Matthew Flatt
63b8d54322 win32: fix ALT-space to pop up system menu
Closes PR 11754

original commit: ce82c74b758150a7fa35e6a79b2f00409196b1a0
2011-02-19 06:39:33 -07:00
Matthew Flatt
f5eb37ea09 win32: fix parent HWND of canvas%
Merge to 5.1

original commit: 6b1112a9adad14b4bb4fd49431697a493b781622
2011-02-09 12:26:50 -07:00
Matthew Flatt
ebaef0c71b fix `set-icon' in frame% to make mask argument optional
Merge to 5.1

original commit: f4a881f0e37f291c604ae40ab52d2e36ca411609
2011-02-09 09:01:34 -07:00
Matthew Flatt
c16fdbac60 win32: fix horizontal `radio-box%'
Merge to 5.1

original commit: 8f404a46187da3c21dcf52185d0912abdf3ba85f
2011-02-04 09:20:49 -07:00
David Van Horn
5007d739fc Fixed various spelling errors.
original commit: c9519fd11300b07292df8619e86f48533eff6e4d
2011-02-03 17:42:33 -05:00
Matthew Flatt
dd3cb0f4a9 win32: fix printing bug related to clipping
original commit: d34deeba91c8ca6af4403a2f7ecf2eac9a2cda84
2011-01-27 12:26:23 -07:00
Matthew Flatt
755d01d17a finish implementing display of menu shortcuts
that involve non-chars shortcuts and alternate prefixes

original commit: 69859850f39b4dfeb48b30e742434e3f730ddf25
2011-01-22 10:15:14 -07:00
Matthew Flatt
299e85b30a add reparent' to subwindow<%>'
original commit: b112fd76df4305b178a7e761fe0d29214a37c518
2011-01-21 20:21:21 -07:00
Matthew Flatt
74f7864819 win32: fix canvas-refresh problem when a canvas is shown
and when it has been drawn onto outside of `on-paint';
 also, try to prep the content of all canvases within a
 top-level window before the window is shown (as on other
 platforms)

original commit: 8228ce92cfdf09611373a3c4bee7d4438f3b4ed0
2011-01-21 09:09:05 -07:00
Matthew Flatt
d878626449 win32: fix dialog centering
original commit: 4529fbe5e6d47ff4b067deefbb53f31dac14478e
2011-01-20 16:47:14 -07:00
Matthew Flatt
b7aac0d234 win32: printing page size
original commit: 676066f10338723d55c57db4f3e4aee32d502237
2011-01-19 06:32:29 -07:00
Matthew Flatt
dcdd232176 win32: allow GetCursorPos to fail
in case the current desktop isn't the input desktop

original commit: d1dc1303c296ae86fea307134185e6a8f2e8d47b
2011-01-15 16:46:35 -07:00
Matthew Flatt
956237b041 restore doc & page checking for `post-script-dc%' et al.
and also fix up wiring of `printer-dc%' in `editor<%>' so
 that `is-a?' tests works as expected

original commit: a9dd80110a4aa750b60de71bc9432e51f070c6b1
2011-01-14 20:30:51 -07:00
Matthew Flatt
3dd7744f44 win32: connect print dialog to given parent (if any)
which causes a different style dialog to be used

original commit: f69e89c0232af601b9c07296e355d96bd81e68e8
2011-01-14 18:54:02 -07:00
Matthew Flatt
27e115b603 fix problem with mm printer measurements
original commit: 06e5d7d6c85ced44dfc3e7c255adb262aef0e233
2011-01-14 15:51:41 -07:00
Matthew Flatt
4a5dc5b76b win32: adjust printing-dc% scale to simulate screen DPI
This is questionable; it might be better to set up a printing
 context with 72 DPI and adjust the resolution of the Pango
 font map associated with the DC to be 72 DPI; matching the
 screen is easier, and it provides the benefit that font metrics
 (based on fonts with point sizes rather than pixel sizes) are
 consistent across drawing contexts

original commit: 0d36dbefb8a5fed1d1b69cabdd1aa039566553c9
2011-01-13 20:08:57 -07:00
Matthew Flatt
bdc443ab33 win32: tell Cairo when drawing to a printing context
original commit: 559f7563749e96842c1e725b346a6e5a8a85d2cc
2011-01-13 20:08:56 -07:00
Matthew Flatt
6c9eea1287 win64: fix PrintDlg alignment
original commit: 4f292a95c5fd8c2d63efb6a541cc84061af8a53c
2011-01-13 20:08:55 -07:00
Matthew Flatt
dff79375e6 win32: don't handle frame non-content mouse events
original commit: e9a4650f0904b4bd7f66921a1a33de0fa3341156
2011-01-12 07:46:55 -07:00
Matthew Flatt
407d2c5d43 win32: handle control font failure
original commit: 1ce430faf70d2ab5c4dcf8ea991afb74d4684742
2011-01-11 19:47:15 -07:00
Matthew Flatt
53db50dc93 win32: fix screen-glyph reporting for label mode
because XP doesn't substitute fonts in control labels

original commit: 6defe0ea09368b38f6015cd27caed599fdcf875f
2011-01-11 19:47:04 -07:00
Matthew Flatt
bc097d0606 win32: no multisample for offscreen gl
because it interferes with multisample setup for
 canvases and seems unlikely to be supported or useful

original commit: 68e647ae911cc5d34a8b443c9c115bcf0336bd3a
2011-01-11 14:35:54 -07:00
Matthew Flatt
148d98d5a5 win32: support gl multisampling
original commit: 640fa15d32e5b16640355fc84e4366a3c181d142
2011-01-11 13:13:19 -07:00
Matthew Flatt
27fffc48aa win32: let default handlers see WM_MOUSELEAVE
This fixes a problem where mousing over a button
 in Win7 leaves the button blue instead of fading
 back to normal color

original commit: afdfafa66a6b45feb194efcc39964eef16b3058a
2011-01-10 17:16:50 -07:00