Commit Graph

546 Commits

Author SHA1 Message Date
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
13353610a6 cocoa: imlementing SetScrollInfo, GetScrollInfo and GetScrollBarSize via NSScrollView, where applicable
git-svn-id: trunk@56874 -
2017-12-30 16:23:34 +00:00
dmitry
3374ff6e7d cocoa: reimplemented line Insert for TCocoaMemoStrings, using NSTextView selection to make TMemo act like an other widgetset (by scrolling into the position where the text was inserted) #32221. Removed lineFragmentPadding (set to zero) to prevent weird rescrolling, whenever adding a new line to the end of the text file
git-svn-id: trunk@56866 -
2017-12-29 04:29:09 +00:00
dmitry
f8e5e1d05f cocoa: defaulting TMemo font to a system default font, that's used by other (button, edit) controls to be consistent across widgetsets
git-svn-id: trunk@56865 -
2017-12-29 01:50:21 +00:00
dmitry
6001e4b474 cocoa: revise word-wrap implementation. switching to automatic resizing on scrollView changing size (that should prevent undesired crashes). Horizontal scroll bar should now be more consistent in its behaviour. #32225
git-svn-id: trunk@56862 -
2017-12-28 05:46:58 +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
a759a66772 cocoa: remove NSIndexSet release, as it should not be happening due to Cocoa Memory Management rules
git-svn-id: trunk@56843 -
2017-12-25 02:14:25 +00:00
dmitry
f743caba81 cocoa: restoring autorelease pool for each event processed (as this is what Cocoa default event loop is doing as well)
git-svn-id: trunk@56842 -
2017-12-25 02:11:27 +00:00
dmitry
cf88ae9f44 cocoa: removing per event autorelease pool. It could potentially lead to mem leaks. But as of right now it's causing access violation, if a control is created dynamically (because most of controls are initialized with .autorelease and a destroyed once the event handling is finished)
git-svn-id: trunk@56841 -
2017-12-24 19:58:05 +00:00
dmitry
2915735a88 cocoa: fix TCocoaTextView initialization that could cause a crash with 'Frame containing non-finite values' error
git-svn-id: trunk@56840 -
2017-12-24 17:22:27 +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
8474c9858e cocoa: converting font pixel-height into point size, used by NSFont. #32175
git-svn-id: trunk@56761 -
2017-12-17 05:30:20 +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
03adf6aeb2 cocoa: cleanup warning in CocoaWSStdCtlrs
git-svn-id: trunk@56757 -
2017-12-16 05:30:47 +00:00
dmitry
7e51c62172 cocoa: cleaning up warnings in CocoaWSMenus
git-svn-id: trunk@56756 -
2017-12-16 05:29:56 +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
b261873d98 cocoa: replacing deprecated selectRow:byExtendingSelection with selectRowIndexes method
git-svn-id: trunk@56754 -
2017-12-16 00:13:49 +00:00
dmitry
eda7fd2cd0 cocoa: #32749. invalidating (and discarding) the original non-premultiplied data, if it has been modified by NSBitmapContext in NSImageRep. Changing bitmap handle recreation prior to drawing the bitmap. The change has been tested with samples from #28692 and #28102.
git-svn-id: trunk@56715 -
2017-12-14 06:44:51 +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
8b8d868ac1 cocoa: updating custom scroll position and page sizing, related to #32777. The patch by Davin Jenkins
git-svn-id: trunk@56656 -
2017-12-07 04:18:26 +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
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
7f491d80fb cocoa: Implements support for wsFullscreen
git-svn-id: trunk@55839 -
2017-09-11 19:00:32 +00:00
sekelsenmat
75a7416c5d cocoa: Fixes bug #32226, changing TGroupBox.Caption at runtime
git-svn-id: trunk@55838 -
2017-09-11 18:27:31 +00:00
sekelsenmat
0a739a97c9 cocoa: Fixes bug #32042, adds support for custom apple menu
git-svn-id: trunk@55837 -
2017-09-11 17:15:09 +00:00
sekelsenmat
538f648aec cocoa: Fixes bug #32042, lack of Apple menu in TMainMenu when no menu item has apple title, part 2
git-svn-id: trunk@55836 -
2017-09-11 17:08:23 +00:00
sekelsenmat
3df17e4496 cocoa: Fixes bug #32042, lack of Apple menu in TMainMenu when no menu item has apple title
git-svn-id: trunk@55835 -
2017-09-11 16:21:57 +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
9c4e00108a cocoa: bug #32148 Quit from application menu does not close main form
git-svn-id: trunk@55597 -
2017-07-27 06:28:35 +00:00
dmitry
f712709636 cocoa: support for R2_NOTXORPEN flag in gdi objects
git-svn-id: trunk@55543 -
2017-07-20 01:41:51 +00:00
sekelsenmat
a2fecca799 cocoa: Restricts reloading the NSPanel Browser only for Mac OS X versions that are affected by the Mac bug, while adding an utility function to get the OS version also refactored the two utility units into one
git-svn-id: trunk@55407 -
2017-06-27 20:51:24 +00:00
sekelsenmat
6d823303bd cocoa: bug #28687 implement File Format filter in TOpen/SaveDialog
git-svn-id: trunk@55405 -
2017-06-27 11:49:06 +00:00
sekelsenmat
41c18b95d6 cocoa: Reverts most changes from commit 55243 #9a9e336851 because they caused bug #32024
git-svn-id: trunk@55387 -
2017-06-22 08:41:24 +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
210554adb1 cocoa: Bug #0031914 Tab labels display doubled up ampersands
git-svn-id: trunk@55328 -
2017-06-12 08:57:49 +00:00
sekelsenmat
31799a90a0 cocoa: Fixes mem leak, bug #31917
git-svn-id: trunk@55327 -
2017-06-12 08:40:26 +00:00
sekelsenmat
618c809be9 cocoa: Fixes bug #31959: in FontDialog selected bold, result shows none style
git-svn-id: trunk@55326 -
2017-06-12 08:35:37 +00:00
ondrej
9a9e336851 LCL: combo box: deprecate ReadOnly property
git-svn-id: trunk@55243 -
2017-06-05 19:07:31 +00:00
juha
1184822164 LCL: Use a helper function for testing fontname 'default'. Issue #31940, patch from AlexeyT.
git-svn-id: trunk@55188 -
2017-06-03 18:56:34 +00:00
sekelsenmat
5c1106e76b Reverts changes to the handling of vclass due to issues in gtk2
git-svn-id: trunk@55146 -
2017-06-01 19:36:16 +00:00
sekelsenmat
db4c7d76eb Removes the runtime creation of classes in favor of a partial emulation of multiple inheritance only for those classes where it was indispensable
git-svn-id: trunk@55140 -
2017-06-01 08:12:02 +00:00