Commit Graph

139 Commits

Author SHA1 Message Date
dmitry
fc6c0627a4 cocoa: moved backingScaleFactor to cocoa_extra unit into NSWindowFix category. Removed conflicting (and hacky) NSWindow redeclaration
git-svn-id: trunk@57677 -
2018-04-20 00:42:27 +00:00
dmitry
a312e5d857 cocoa: fix the usage of hidden flag for EmbedInScrollView functions. hidden should be resused from the embedded viewm, rather than its parent
git-svn-id: trunk@57625 -
2018-04-08 16:09:41 +00:00
dmitry
b32721218e cocoa: proper fix for #33172 (groupbox components should use the same callback) and fix for #33579 (revert extra resize notification)
git-svn-id: trunk@57619 -
2018-04-07 18:13:41 +00:00
dmitry
1a38dc5407 cocoa: sending LCL bounds change notifications only if bounds have actually changed, to prevent WM_Size loops
git-svn-id: trunk@57616 -
2018-04-07 03:48:22 +00:00
dmitry
ea840fc089 cocoa: sending change bounds notification on direct setBounds call, to update LCL bounds (boundsrect and clientsrect) information. #33172
git-svn-id: trunk@57615 -
2018-04-07 03:12:05 +00:00
juha
a5ca0547dd Cocoa: Prevent crash on non-existing cursor. Issue #33478, patch from Anton Kavalenka.
git-svn-id: trunk@57551 -
2018-03-22 13:03:34 +00:00
dmitry
9914d0ef99 cocoa: mouse events for field editor. #33158
git-svn-id: trunk@57285 -
2018-02-12 04:00:12 +00:00
dmitry
cb73fccb63 cocoa: updating key handling to allow LCL override the key character
git-svn-id: trunk@57282 -
2018-02-11 08:12:51 +00:00
ondrej
13bd2be93a Cocoa: simplify GetCanvasScaleFactor
git-svn-id: trunk@57245 -
2018-02-04 00:56:11 +00:00
ondrej
8ec39ecc46 Cocoa: simplify GetCanvasScaleFactor
git-svn-id: trunk@57244 -
2018-02-04 00:53:25 +00:00
ondrej
557b843294 LCL: high-dpi image list: support retina (for now Cocoa only)
git-svn-id: trunk@57240 -
2018-02-03 22:58:50 +00:00
dmitry
7b2be45ba9 cocoa: updating in mouse handling events. Restrict Cocoa from handling events for design-time, but always allow in other cases
git-svn-id: trunk@57084 -
2018-01-14 06:44:26 +00:00
dmitry
5c58ede9d0 cocoa: implementation of DesignDC for forms
git-svn-id: trunk@57083 -
2018-01-14 06:14:12 +00:00
dmitry
ab151dba5a cocoa: propagating enabled state accross controls hierarchy #28700,#32259
git-svn-id: trunk@57080 -
2018-01-14 01:00:22 +00:00
dmitry
658165c03f cocoa: adding MouseOffset support for scrolled components. #32993
git-svn-id: trunk@57076 -
2018-01-13 19:57:24 +00:00
dmitry
b5a54b56f0 cocoa: update in Get-SetScrollInfo for CocoaScrollView - making it documentViewRect based. Processing LMScroll messages whenever user scrolls. Removed implementation of ScrollBy in basic CocoaWSWinControl
git-svn-id: trunk@57074 -
2018-01-13 15:35:25 +00:00
dmitry
db4dc7c254 cocoa: adding a basis to implement sorting of controls, whenever a z-order changes. should not be used rightaway due to slow performance, compared to remove add-related approach
git-svn-id: trunk@57044 -
2018-01-11 04:11:46 +00:00
dmitry
350709605d cocoa: additional checks to prevent doublicating messages about control resizes. (check for client rect changed vs frame rect changed). Added check for a failed draw (an event, whenever a control frame changed while processing Draw()). Forcing repaint #32970. Additional check for scrollbars - preventing dormant resize events
git-svn-id: trunk@57007 -
2018-01-08 00:34:26 +00:00
dmitry
9afa5bf6b8 cocoa: additional key code mapping
git-svn-id: trunk@57000 -
2018-01-07 07:03:03 +00:00
dmitry
2f120dcde2 cocoa: accurate reporting of modifier key changes
git-svn-id: trunk@56999 -
2018-01-07 05:45:53 +00:00
dmitry
98712b414a cocoa: rework TCocoaScrollBar implementation - removed direct binding to LCL control. Initial implementation of ScrollWindowsEx. added scrolling messages for TCocoaManualScrollView
git-svn-id: trunk@56944 -
2018-01-04 02:54:59 +00:00
dmitry
edee7ec8ef cocoa: remove isAllowCustomScroll from TCocoaScrollView. Instead, introducing TCocoaManualScrollView to support non-control size based ScrollInfo api
git-svn-id: trunk@56943 -
2018-01-04 00:49:03 +00:00
dmitry
8557db7ed1 cocoa: prevent mouse events on window's non-client area for consistency with other widgetsets
git-svn-id: trunk@56895 -
2017-12-31 21:36:30 +00:00
dmitry
c31964a7b0 cocoa: inverting mouse pos, only if coordinate system of control needs it
git-svn-id: trunk@56894 -
2017-12-31 16:53:22 +00:00
dmitry
6e53952a43 cocoa: correct (control vs client) bounds information retrieval. #32227
git-svn-id: trunk@56837 -
2017-12-23 23:06:24 +00:00
juha
a3649ec49b LCL: Extend horizontal mouse wheel messages for Carbon and Cocoa. Remove ssHyper. Issue #32753, patch from AlexeyT.
git-svn-id: trunk@56659 -
2017-12-07 14:58:36 +00:00
dmitry
6273cd1d79 cocoa: implementing SetChildZPosition for CocoaWSCommon, allowing run-time Z-order change, related #32722 and #32740
git-svn-id: trunk@56588 -
2017-12-03 04:24:14 +00:00
sekelsenmat
8387b30537 Fixes compilation of lcl-carbon and lcl-cocoa in fpc 2.6
git-svn-id: trunk@55825 -
2017-09-09 09:14:31 +00:00
sekelsenmat
0af5c2d943 cocoa: Patch for scrollby from bug #32363
git-svn-id: trunk@55824 -
2017-09-09 08:46:59 +00:00
freq
0b5d2d5ef5 cocoa: fix mouse move bug
git-svn-id: trunk@54617 -
2017-04-13 04:37:10 +00:00
freq
437e9605f2 cocoa: fix crash on mouse click
git-svn-id: trunk@53942 -
2017-01-14 15:10:08 +00:00
sekelsenmat
b2399e3114 cocoa - patch #30129 - support Alt key in cocoa
git-svn-id: trunk@52523 -
2016-06-19 20:19:10 +00:00
ondrej
aa7d1d4437 carbon, cocoa: add WinHandle check into CheckMouseButtonDownUp in case AWinControl is nil. Issue #29769
git-svn-id: trunk@51805 -
2016-03-02 14:51:07 +00:00
ondrej
af575ea5ea cocoa: use unified multiclick mouse message handling
git-svn-id: trunk@51738 -
2016-02-28 07:09:10 +00:00
ondrej
132fb04646 cocoa: fix mouse messages sent twice to LCL
git-svn-id: trunk@51737 -
2016-02-28 06:54:43 +00:00
juha
6bb18f6fbd LCL: Implement TCustomMemo.ScrollBy. Refactor widgetset ScrollBy from ScrollingWinControl to WinControl. Solves issue #29067.
git-svn-id: trunk@50523 -
2015-11-29 18:45:53 +00:00
sekelsenmat
1950d6e64d cocoa: Implements work around to support TMemo.OnClick
git-svn-id: trunk@50335 -
2015-11-15 20:00:10 +00:00
sekelsenmat
52234a77bd cocoa: Fixes bug #28655, groupbox click issues
git-svn-id: trunk@49826 -
2015-09-14 20:19:26 +00:00
sekelsenmat
1fc9cadb0e cocoa: Attempt at fixing event issues in GroupBox, not yet fully working
git-svn-id: trunk@49821 -
2015-09-14 04:46:02 +00:00
sekelsenmat
0d1f9bd856 cocoa: Implements key up/pressed/down for TEdit, but only keyDown is not ideal due to cocoa limitations
git-svn-id: trunk@49817 -
2015-09-12 07:37:40 +00:00
sekelsenmat
3c0233d4ed cocoa: Moves all menu code to CocoaWSMenus to have more related code together
git-svn-id: trunk@49729 -
2015-08-31 06:23:13 +00:00
sekelsenmat
6f9a817ae1 cocoa: Fixes drawing of labels inside groupbox
git-svn-id: trunk@49700 -
2015-08-23 07:45:01 +00:00
sekelsenmat
491e74c6e9 cocoa: identation fix
git-svn-id: trunk@49668 -
2015-08-14 19:38:13 +00:00
sekelsenmat
79e2da2c5e cocoa: Rewrites modal form support to fix bugs #28499 and #28490
git-svn-id: trunk@49657 -
2015-08-12 19:25:48 +00:00
sekelsenmat
3560b2d25d cocoa: Fixes empty mouse wheel events (bug #28491) and starts improving the apple menu
git-svn-id: trunk@49628 -
2015-08-10 18:12:18 +00:00
sekelsenmat
2bd8349602 cocoa: Fixes tab sheet positioning (bug #28489) and starts improving main menu code
git-svn-id: trunk@49626 -
2015-08-10 05:12:52 +00:00
sekelsenmat
77e8b6e2d1 cocoa: Fixes crash due to ReleaseDC freeing wrongly control DCs
git-svn-id: trunk@49602 -
2015-08-06 06:43:36 +00:00
sekelsenmat
29edd0c013 cocoa: Implements spinedit.OnChange
git-svn-id: trunk@49588 -
2015-08-03 06:17:42 +00:00
sekelsenmat
e81da26d56 cocoa: Protects calls to fittingSize to support 10.6
git-svn-id: trunk@49090 -
2015-05-18 20:35:41 +00:00
sekelsenmat
5973d8ebed cocoa: Fixes mouse wheel delta
git-svn-id: trunk@49043 -
2015-05-16 09:00:42 +00:00