* * *

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

josh

  • Sr. Member
  • ****
  • Posts: 380
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: 1819
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.

josh

  • Sr. Member
  • ****
  • Posts: 380
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus