Recent

Author Topic: [Solved] TPanel.Caption does not display correctly when BiDiMode:= bdRightToLeft  (Read 4835 times)

Avishai

  • Hero Member
  • *****
  • Posts: 1021
I have a partial fix for TPanel.Caption for BiDiMode:= bdRightToLeft, but it only displays the Caption correctly at RunTime. I uploaded a zip file to Bugtracker with the modified code. All of my changes are marked as

//==== Avishai's Code
...
//==== End of Avishai's Code
« Last Edit: April 27, 2011, 06:35:44 pm by Avishai »
Lazarus Trunk / fpc 2.6.2 / Win32

Avishai

  • Hero Member
  • *****
  • Posts: 1021
I don't know why, but today the BiDiMode fix for TPanel.Caption works in Design-Time as well as Run-Time :)
Lazarus Trunk / fpc 2.6.2 / Win32

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4694
  • I like bugs.
I don't know why, but today the BiDiMode fix for TPanel.Caption works in Design-Time as well as Run-Time :)

:)

Now, I am prepared to apply your patches but I will not test the RightToLeft functionality much.
I will mostly test that it does not break the LeftToRight functionality.
Most of Lazarus developers use LeftToRight languages and there is a danger this kind of patches are ignored.

See my latest comment for issue
 #19268: Patch to add BiDiMode and ParentBiDiMode properties to 5 components.

BTW, my name Juha is not of Arabic origin. It is also a typical name in Finland and its roots are elsewhere.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4694
  • I like bugs.
I applied changes from Avishai. In future please create patches instead of copying the whole files.
It is easier for everybody, including the person creating the patches.
For maintaining local experimental branches I can recommend git or some other similar revision control system.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018