Recent

Author Topic: RichMemo scrollbars and wordwrap on OSX  (Read 9105 times)

Trenatos

  • Hero Member
  • *****
  • Posts: 533
    • MarcusFernstrom.com
Re: RichMemo scrollbars and wordwrap on OSX
« Reply #15 on: April 19, 2016, 02:58:04 pm »
That's pretty much what I figured, but I've no idea how to fix it.

My skills in Object Pascal are not good enough yet to contribute bugfixes, but I'll get there.

Any idea of the time/effort involved in fixing the issue?  I'm happy to offer a bit of money for a bugfix (Within reason  :P), since it's the last piece I need to release an open source software I've been working on.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: RichMemo scrollbars and wordwrap on OSX
« Reply #16 on: April 20, 2016, 05:45:24 am »
...sigh...
here's a workaround (spent 2+ hours polishing it). It's a workaround, because it actually implements what you might need (non-wordwrapped RichMemo with horizontal scroll) by using external component TScrollBox and TRichMemo itself. (The proper fix should do it within CarbonRichMemo itself)

The workaround is using OSX specific APIs to extract necessary layout information. Thus if you're to use it in your cross-platform project, you'll have to use $ifdefs.

The workaround also recommends to use r4623 of RichMemo. The revision implements OnSelectionChange event support.

You might also notice that RichMemo is yellow and ScrollBox is green in the workaround project. The colors are set via object inspector and could be reset to default colors, if needed.

P.S. speaking of monetary rewards. You could donate some dollars to the community. The link is on the left side of this forum.
« Last Edit: April 20, 2016, 05:53:47 am by skalogryz »

 

TinyPortal © 2005-2018