Lazarus

Programming => Widgetset => Cocoa => Topic started by: Alextp on August 05, 2020, 10:01:47 am

Title: [SOLVED] "Special characters" menu item auto-added by OS
Post by: Alextp on August 05, 2020, 10:01:47 am
CudaText has auto-added Emojis menu item (AFAIK in Edit menu) which shows OS dialog to choose emojis, but CudaText don't get this emojis into its editor. So how to make emojis go to CudaText editor (ATSynEdit)?
Need some tips

I am not on Mac so cannot check how it works in Lazarus (SynEdit).
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: skalogryz on August 06, 2020, 12:55:34 am
please bug report
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: Alextp on August 06, 2020, 08:36:38 am
Posted the issue.
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: trev on August 06, 2020, 08:59:18 am
Bugtracker: Issue 37497 (https://bugs.freepascal.org/view.php?id=37497).
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: skalogryz on August 06, 2020, 05:06:41 pm
what about win32 emoji?
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: Alextp on August 06, 2020, 05:11:59 pm
I want to support macOS OS-added menu item "Insert spec chars" in CudaText. Win don't add such item.
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: skalogryz on August 07, 2020, 07:23:22 am
a cross-platform solution is still desired.

Here's how to test with Windows 10.
Select any text-input control and press "Win"+"."
An emoji dialog should show up allowing a user to print out any Unicode emojis into a control
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: Alextp on August 07, 2020, 12:56:36 pm
Win Emoji dialog is ALREADY supported in CudaText and Lazarus.
By using IME WinAPI.

But macOS dialog is not
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: skalogryz on August 07, 2020, 04:50:03 pm
Win Emoji dialog is ALREADY supported in CudaText and Lazarus.
By using IME WinAPI.
I see, so the support is beyond LCL functionality it's a direct WinAPI use.
Title: Re: "Emojis" menu items which is auto-added by Cocoa
Post by: Alextp on August 08, 2020, 05:47:00 am
Yes, right. we need smth for macOS too.
TinyPortal © 2005-2018