NO

Author Topic: A small anomaly (?) in the text editor  (Read 2810 times)

impopia

  • Guest
A small anomaly (?) in the text editor
« on: November 13, 2010, 11:20:08 PM »
Hello,
The behaviour of the editor is to retain the column on which the cursor is and to place the cursor on the same column (if possible) if the user presses the UP or DOWN arrow. But this does not happen every time. If it is at the end of a line and you press RIGHT and then UP or DOWN, it does not retain the first column afterwards.

Let's say you have something like:

      bUpdate=0;
      ds->accp.x=(long)(short)LOWORD(lParam);
      ds->accp.y=(long)(short)HIWORD(lParam);
      dx=ds->accp.x-ds->pccp.x;
      dy=ds->accp.y-ds->pccp.y;

and the cursor is at the end of the first line. You press the RIGHT arrow key and the cursor goes, of course, on the FIRST column of the next line. Now, if you press the UP (or DOWN) arrow key, you would expect, as it passes on the previous (or next) line, to remain on the first column (at least that's what I expect... maybe it's just me who feels this way), but it does not behave so, instead it gets on the column where it was at the end of the first line.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: A small anomaly (?) in the text editor
« Reply #1 on: November 19, 2010, 05:24:55 PM »
I will try this out later, to see if there is something (easy) that actually needs to be fixed. No promises...
/Pelle