Recent

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

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #30 on: February 22, 2018, 11:01:38 am »
r57267

how can i use this r57267 file

i download it and replace to "win32callback.inc" .

but i have error

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: Need some Help for RightToLeft TWinControls
« Reply #31 on: February 22, 2018, 11:13:26 am »
No. The changes are a several places and probably depend also on other changes made earlier. The only way to use this is to install the developer version of Lazarus ("trunk"). Use fpcupdeluxe for easiest installation.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Need some Help for RightToLeft TWinControls
« Reply #32 on: February 23, 2018, 04:36:56 am »
r57267

how can i use this r57267 file

i download it and replace to "win32callback.inc" .

but i have error

The proper way is to follow wp's advice and use the trunk. But in this specific case you can try to change your original win32callback.inc code in one specific line from:
Code: Pascal  [Select][+][-]
  1.   useDoubleBuffer := (ControlDC = 0) and (lWinControl.DoubleBuffered or ThemeServices.ThemesEnabled);

to:
Code: Pascal  [Select][+][-]
  1.   useDoubleBuffer := (ControlDC = 0) and lWinControl.DoubleBuffered;

as shown in the diff. of this revision

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #33 on: March 04, 2018, 08:41:47 am »
Hi

i changed but it doesn't work!!

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Need some Help for RightToLeft TWinControls
« Reply #34 on: March 04, 2018, 02:21:32 pm »
What does not work?
Why not?

majid.ebru

  • Sr. Member
  • ****
  • Posts: 494
Re: Need some Help for RightToLeft TWinControls
« Reply #35 on: March 06, 2018, 03:47:50 pm »
Hi

i change my original win32callback.inc code to :

Code: Pascal  [Select][+][-]
  1. useDoubleBuffer := (ControlDC = 0) and lWinControl.DoubleBuffered;

but my object(tpagecontrol) doesn't change to RighttoLeft
« Last Edit: March 06, 2018, 03:54:47 pm by majid.ebru »

 

TinyPortal © 2005-2018