Recent

Author Topic: Font popup menu in TMemo  (Read 1088 times)

maxnd

  • Jr. Member
  • **
  • Posts: 65
Font popup menu in TMemo
« on: December 09, 2019, 06:56:05 pm »
Hi,

I'm using Lazarus x86_64 2.0.6 with Cocoa. I guess if there is the way to modify the TMemo component, or better an instance of it, so that its popup menu doesn't show the font menu. This is not useful, since each formatting will be lost.

I guess the way should be to set to false the flag isRichText described in https://developer.apple.com/documentation/appkit/nstextview/1449538-isrichtext in the NSTextView implementation. Any idea on how to do this?

Thanks!

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Font popup menu in TMemo
« Reply #1 on: December 09, 2019, 07:26:06 pm »
1) you might want to assign a custom popup menu to TMemo
2) TMemo is setting richText to false

 

TinyPortal © 2005-2018