Commit Graph

181 Commits

Author SHA1 Message Date
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
4e09fc9c2c cocoa: CocoaTabControl implement mouse events. #32982
git-svn-id: trunk@57020 -
2018-01-09 04:17:08 +00:00
dmitry
cb31fbad0e cocoa: preventing call of keyup for textfield, in case the callback was cleared
git-svn-id: trunk@57018 -
2018-01-09 03:07:46 +00:00
dmitry
30c34b43dc cocoa: update the rule of selecting a parent view. all children should be added to lclContentView
git-svn-id: trunk@57008 -
2018-01-08 03:28:54 +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
789abf9d79 cocoa: replacing instance call with class method call when scrollbar frames. #32966
git-svn-id: trunk@57003 -
2018-01-07 15:51:43 +00:00
dmitry
611c971eaf cocoa: improved implementation of TCocoaScrollBar - keeping track of the actual ranges and position of as scroll bar (that's critical for all custom controls using scrollbars heavily: TreeView #32931, SynEdit #32929, Grids #32932, #32767 ). Simplified ScrollWindowEx to just a complete invalidation of control content.
git-svn-id: trunk@56961 -
2018-01-05 05:17:04 +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
8ad44212f9 cocoa: fix window resize/move message to report the accurate coordinates
git-svn-id: trunk@56928 -
2018-01-03 05:17:36 +00:00
dmitry
dbb96b2de8 cocoa: introducing lclContentView method (see wiki for the description) to be used when invalidating a control. #32147
git-svn-id: trunk@56927 -
2018-01-03 00:28:39 +00:00
dmitry
6958bb4494 cocoa: cleaning up compiler warnings in cocoaprivate
git-svn-id: trunk@56922 -
2018-01-02 11:31:08 +00:00
dmitry
089d2c7493 cocoa: fix the bounds rect returned for TForm from WS. returning an invalid bounds rect was causing the client rects to be invalidates for children controls. #32886
git-svn-id: trunk@56906 -
2018-01-01 19:42:35 +00:00
dmitry
de4c41e457 cocoa: returning proper client rect for tabview
git-svn-id: trunk@56898 -
2018-01-01 15:57:57 +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
dd5f953aae cocoa: adding the code to compensate for Cocoa feature, of mouseUp even not being called for Windows title
git-svn-id: trunk@56891 -
2017-12-31 06:54:52 +00:00
dmitry
a67f8825a2 cocoa: adding support for TMemo alignment and background color. #32796
git-svn-id: trunk@56877 -
2017-12-30 17:50:36 +00:00
dmitry
04f1929c96 cocoa: firing onChange events due to programmatical text changes in TMemo
git-svn-id: trunk@56876 -
2017-12-30 17:05:44 +00:00
dmitry
225ccb4218 cocoa: TMemo change event
git-svn-id: trunk@56875 -
2017-12-30 16:48:32 +00:00
dmitry
6f0194962a cocoa: update RectToViewCoord to take into consideration if NSView has flipped coordinate system. #32884
git-svn-id: trunk@56853 -
2017-12-27 02:53:20 +00:00
dmitry
3d93781649 cocoa: reverted a portion of #32363 patch, applied in r55824 #0af5c2d943. Overriding of NSScrollView.addSubview method, caused visual and user experience issues with TListBox (and presumably TMemo) scrollbar controls in macOS 10.12.1 (Sierra)
git-svn-id: trunk@56849 -
2017-12-25 23:21:21 +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
dmitry
f4b0bd18fb cocoa: checklistbox to have separate columns for the checkbox and checkbox title. #32845
git-svn-id: trunk@56828 -
2017-12-23 16:02:09 +00:00
dmitry
2b1a77d9af cocoa: #32829, a patch by David Jenkins, to get a notifications about keys pressed in combobox control
git-svn-id: trunk@56822 -
2017-12-23 05:31:42 +00:00
dmitry
8d9100d064 cocoa: fix for custom rect draw - only perform it, if custom drawing is requested via LCL control style. Fix for #32845
git-svn-id: trunk@56821 -
2017-12-23 05:19:29 +00:00
dmitry
0dd3a93373 cocoa: adjusting controlSize for a smaller height of a button. #30577
git-svn-id: trunk@56773 -
2017-12-18 03:41:09 +00:00
dmitry
ffe886c60f cocoa: using RoundedBezel for Tbutton and RegularSquarBezel for TBitBtn. #32174
git-svn-id: trunk@56760 -
2017-12-17 04:22:43 +00:00
dmitry
139b008b0f cocoa: not flipping NSRect vertical coordinates if the super view is already flipped. Came as a part of a patch by David Jenkins for #32828. However, being applied to resolve #32176
git-svn-id: trunk@56759 -
2017-12-16 22:59:17 +00:00
dmitry
019a0dc40b cocoa: cleanup warnings with tab control
git-svn-id: trunk@56758 -
2017-12-16 05:31:27 +00:00
dmitry
84920379fa cocoa: patch by Davin Jenkins #32828. partially applied - textDidChange() and custom item draw for CocoaListBox
git-svn-id: trunk@56755 -
2017-12-16 03:48:05 +00:00
dmitry
6cb727545e cocoa: implemenating a storage of stringValue for a custom control (in order to keep text of the control for TPanels). related to #30801
git-svn-id: trunk@56589 -
2017-12-03 05:44:09 +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
sekelsenmat
9b0908abc4 cocoa: Fixes bug #31914: TPageControl problems with Cocoa
git-svn-id: trunk@55333 -
2017-06-12 11:15:30 +00:00
sekelsenmat
ff26552571 Cocoa: Fixes bug #30847: TComboBox with ReadOnly=True cant show repeated items
git-svn-id: trunk@54947 -
2017-05-17 09:40:15 +00:00
sekelsenmat
3fc7fc4a5d cocoa: Fixes bug #31192, unable to type multi-digit value in float spin edit
git-svn-id: trunk@54391 -
2017-03-12 20:49:34 +00:00
sekelsenmat
29ffe756ca cocoa: Patch from bug #30796 Custom Draw functionality for TCocoaButton
git-svn-id: trunk@53242 -
2016-10-27 19:36:23 +00:00
sekelsenmat
0428e3cab5 cocoa: Fixes crash due to cyclic calls to CreateHandle in modal forms, bug #30527
git-svn-id: trunk@52998 -
2016-09-20 07:25:18 +00:00
sekelsenmat
1775e611f6 cocoa - bug #30297 - fix TListBox clicking
git-svn-id: trunk@52533 -
2016-06-20 19:58:37 +00:00
sekelsenmat
f62aa7b77d cocoa - patch #30126 - support process synchronize on cocoa
git-svn-id: trunk@52526 -
2016-06-19 20:37:34 +00:00
sekelsenmat
801f392c8d cocoa: Fixes TButton clicking
git-svn-id: trunk@52517 -
2016-06-18 07:47:05 +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
mattias
db2c382331 lcl: less with-blocks for FPC 3.1.1
git-svn-id: trunk@50304 -
2015-11-11 14:49:03 +00:00
mattias
0065a10670 lcl: less with-blocks for FPC 3.1.1
git-svn-id: trunk@50295 -
2015-11-11 13:39:36 +00:00
sekelsenmat
e36458af79 cocoa: Fixes regression which broke letter typing in TMemo
git-svn-id: trunk@49822 -
2015-09-14 04:52:18 +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
b690381ab0 cocoa: Redesigns the blocking of events during modal to use lclIsEnabled
git-svn-id: trunk@49815 -
2015-09-11 05:16:36 +00:00
sekelsenmat
019aa71ce3 cocoa: Implements the new blocking mechanism for disabling controls due to modal
git-svn-id: trunk@49782 -
2015-09-08 07:41:15 +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
83d51bb80f cocoa: Implements support for receiving dropped files into forms
git-svn-id: trunk@49725 -
2015-08-29 07:27:27 +00:00