[Lazarus] Adding Mac specific functionality

Ryan Joseph ryan at thealchemistguild.com
Tue Feb 5 19:32:44 CET 2019

I submitted a patch to correct the problem. WantsTab property of TMemo should affect the focus ring on Mac.


> On Feb 5, 2019, at 9:24 AM, Ryan Joseph via lazarus <lazarus at lists.lazarus-ide.org> wrote:
> I’m working on a Lazarus program for another person and I’d like to use a feature of the Mac Cocoa framework which doesn’t exist in Lazarus. 
> I’m happy to add this myself and submit a patch (because it’s helpful for other users) but what is the protocol for doing this? I could add an accessor function into the control (TMemo) but it would route to a Cocoa control and it wouldn’t have any affect on Windows/Linux.
> Here is the code in question which I’ve added via an ifdef for now but Lazarus should expose “setFocusRingType” in the main interface because it’s important on OS X.
>     {$ifdef DARWIN}
>     NSTextView(Memo1.Handle).setFocusRingType(NSFocusRingTypeNone);
>     {$endif}
> Regards,
> 	Ryan Joseph
> -- 
> _______________________________________________
> lazarus mailing list
> lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus

	Ryan Joseph

More information about the lazarus mailing list