View Issue Details

IDProjectCategoryView StatusLast Update
0038186LazarusDatabase Componentspublic2021-01-17 20:10
Reporternouzi Assigned ToJesus Reyes  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Fixed in Version2.1 (SVN) 
Summary0038186: TAB Problem with dbgrid when bidimode=bgRightToLeft
DescriptionWhen changing bidimode to bdRightToLeft, it is assumed that when pressing TAB, the navigation inside dbgrid is from right to left but this does not happen
Tagsbidi, grids
Fixed in Revision64402
LazTarget2.2
Widgetset
Attached Files

Activities

nouzi

2020-12-08 14:30

reporter  

Zaher Dirkey

2020-12-08 23:51

reporter   ~0127468

It is in Grids.pas
<code>
function TCustomGrid.GetDeltaMoveNext(const Inverse: boolean;
//------------------
    if UseRightToLeftAlignment then
      case AAutoAdvance of
        aaLeftUp: aa := aaRightUp;
        aaLeftDown: aa := aaRightDown;
        aaLeft: aa := aaRight;
        aaRightUp: aa := aaLeftUp;
        aaRightDown: aa := aaLeftDown;
        aaRight: aa := aaLeft;
      end;

</code>

No need to switch the direction, Left meant the col := col+1, not really a left of end user on the screen, it is logically, if keep it as left (not change it to right) it will move focus cell to next column that exists in the right (in RightToLeft grids)

so removing this part of code will resolve the problem.

Jesus Reyes

2021-01-17 20:10

developer   ~0128391

Fixed according to Zaher comments which I tested.
Please test.

Issue History

Date Modified Username Field Change
2020-12-08 14:30 nouzi New Issue
2020-12-08 14:30 nouzi File Added: مشروع غير معنون.mp4
2020-12-08 23:37 Zaher Dirkey Tag Attached: bidi
2020-12-08 23:51 Zaher Dirkey Note Added: 0127468
2020-12-09 11:27 Zaher Dirkey Tag Attached: grids
2021-01-17 19:15 Jesus Reyes Assigned To => Jesus Reyes
2021-01-17 19:15 Jesus Reyes Status new => assigned
2021-01-17 19:17 Jesus Reyes Summary Problem with dbgred => TAB Problem with dbgrid when bidimode=bgRightToLeft
2021-01-17 19:17 Jesus Reyes LazTarget => -
2021-01-17 20:10 Jesus Reyes Status assigned => resolved
2021-01-17 20:10 Jesus Reyes Resolution open => fixed
2021-01-17 20:10 Jesus Reyes Fixed in Version => 2.1 (SVN)
2021-01-17 20:10 Jesus Reyes Fixed in Revision => 64402
2021-01-17 20:10 Jesus Reyes LazTarget - => 2.2
2021-01-17 20:10 Jesus Reyes Note Added: 0128391