Recent

Author Topic: Need some Help for RightToLeft TWinControls  (Read 17028 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #15 on: June 21, 2017, 09:45:24 pm »
have any idea?!
 :'( :'(

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #16 on: June 22, 2017, 11:44:35 pm »
I tested it in Windows 8.1 same problem, For that I don't trust with Mirroring for RTL since win98 and above, now i am right for not trusting.

You need a native TreeView component and ask developers to add RTL support.
« Last Edit: June 22, 2017, 11:54:21 pm by Zaher »

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #17 on: June 23, 2017, 01:33:38 am »
Thank you

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #18 on: July 07, 2017, 02:22:49 pm »
Hi again

i use windows 7-64x.
.
i install VirtualBox then i install lazarus.
.
(1)then run my project -> but doesn't work and doesn't show True treeview.
.
i go to start -> control panel -> regional -> language(2sec tabs) -> and tick "install file for complex script  and right to left ...."
.
(2)then run my project -> but doesn't work and doesn't show True treeview.
.
then i go start -> control panel -> regional -> advanced(3th tabs)-> "code page conversion tables "
.
i this page i tick all "Arabic" and "Hebrew"
.
(3)then run my project ->  it works correctly and show True TreeView !?!?!?!?  :o %) :o %)
.
.
.
wowooooooooo
.
.
.
Now i can't find that setting(code page conversion tables) in windows 7.
.
do you know where it is??
.
.
.
i forgot.
when i compile my program in true view -> then it work correctly in all computer ?
can anyone help me?

thankyou
« Last Edit: July 07, 2017, 02:26:46 pm by majid.ebru »

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #19 on: July 07, 2017, 05:53:50 pm »
i dont understand First try was in Windows 7+64?

now "Now i can't find that setting(code page conversion tables) in windows 7."


majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #20 on: July 07, 2017, 07:47:05 pm »
Hi

at first time i try and make project in windows XP and it works (at work place).

then i try it in windows 7-64x and it doesn't work(at home)

then in windows 7-64x i install virtual box and i install windows xp and  i change some setting in regional .

and in this new windows it work correctly .
.
.
.
.
"Now i can't find that setting(code page conversion tables) in windows 7."


i can't find too.

where is it???

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #21 on: July 07, 2017, 07:50:49 pm »
But in virtual box u used Windows XP, is it? same problem, our problem started from Windows7
Here in Windows 8.1 i have the same problem

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #22 on: July 07, 2017, 08:09:45 pm »
I tested it in Delphi Xe5 it is work fine in my windows 8.1
So the problem is in Lazaurs, now i have a task to check why.

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #23 on: July 07, 2017, 08:52:04 pm »
Yes it is a bug in Lazarus, I am working on it, it is related to DoubleBuffered and Themes

\lazarus\lcl\interfaces\win32\win32callback.inc line 599

Code: [Select]
  useDoubleBuffer := (ControlDC = 0) and (lWinControl.DoubleBuffered or ThemeServices.ThemesEnabled);

I need help from Lazarus core developers to understand why it force to be DoubleBuffered if ThemesEnabled is true?

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #24 on: July 07, 2017, 08:54:39 pm »
This controls should not be double buffered, or at least do not make internal mirror by using "WindowOrg"

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #25 on: July 07, 2017, 10:52:55 pm »
But in virtual box u used Windows XP, is it? same problem,

Yes
in virtual Box i use Windows XP and i have NO problem

our problem started from Windows7
Here in Windows 8.1 i have the same problem

Yes
our problem in windows 7 (or higher version)
.
Thank you very much  @Zaher for try to solve this problem
 :-* :-*

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #26 on: February 18, 2018, 02:29:11 pm »
Yes it is a bug in Lazarus, I am working on it, it is related to DoubleBuffered and Themes

\lazarus\lcl\interfaces\win32\win32callback.inc line 599

Code: [Select]
  useDoubleBuffer := (ControlDC = 0) and (lWinControl.DoubleBuffered or ThemeServices.ThemesEnabled);

I need help from Lazarus core developers to understand why it force to be DoubleBuffered if ThemesEnabled is true?

Hi and so sorry i post again

i upgraded to Lazarus 1.8 and i have problem.

when i use :
Code: Pascal  [Select][+][-]
  1. useDoubleBuffer := False;
  2.  
treeview set Right to Left correctly.

but i have flicker when i click or change object.

how can i change code like this:
Code: Pascal  [Select][+][-]
  1. If ( --->  ?!?! Sender is TTreeView ?!?! "I dont Know what i wirte here "   <----  ) then useDoubleBuffer := False
  2. else useDoubleBuffer := True;
  3.  
  4.  

thank you

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Need some Help for RightToLeft TWinControls
« Reply #27 on: February 18, 2018, 03:18:06 pm »
It is bug in Lazaurs, Lazaurs maintain the mirroring in complex way that I can't understand it, so i can't fix it by my self.
You can report a bug in Lazaurs bug tracker.

wp

  • Hero Member
  • *****
  • Posts: 11856
Re: Need some Help for RightToLeft TWinControls
« Reply #28 on: February 18, 2018, 05:37:28 pm »
The doublebuffering machinery for Windows has been reworked a few days ago. Please test Lazarus trunk.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Need some Help for RightToLeft TWinControls
« Reply #29 on: February 21, 2018, 07:47:54 pm »
As wp had mentioned, fixed in r57267. Learned about it from this bug report.

 

TinyPortal © 2005-2018