Recent

Author Topic: Possible bug OSX and TextAlign  (Read 2269 times)

josh

  • Hero Member
  • *****
  • Posts: 754
Possible bug OSX and TextAlign
« on: February 26, 2017, 12:09:37 pm »
Hi
I have a richmemo on a form with size length of 15 and text alignment of centre; on windows this works perfectly, on OSX carbon, with either center or right allign the display richmemo text vanishes.

Josh
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2267
    • havefunsoft.com
Re: Possible bug OSX and TextAlign
« Reply #1 on: February 26, 2017, 01:10:18 pm »
well... it shouldn't vanish for sure.
try to add RichMemo1.Invalidate after you change the alignment.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

josh

  • Hero Member
  • *****
  • Posts: 754
Re: Possible bug OSX and TextAlign
« Reply #2 on: February 26, 2017, 01:17:37 pm »
Hi

I thought I had tried that, but will re-check.

On re-checking .

The allignment is set at designtime to centre and it does not display text; if I change in runtime to leftalign, it becomes visisble; if i set in runtime to centre or right it vanishes.

length of richmemo is set to 15; just in case this was causing a problem, richmemo lines is set just as Test 123; and no extra linefeeds.

Josh
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.