Author Topic: Recursion ??  (Read 518 times)

Zvoni

  • Hero Member
  • *****
  • Posts: 3532
Re: Recursion ??
« Reply #15 on: September 02, 2026, 11:06:38 am »
In the interests of 'Free form' Editing and logical use of keyboard data entry, the setting of 'Next' field may well involve checking for the [Arrow] Keys being pressed.
Don't!

I'm in your TEdit, i made a typo, and want to move the Caret using the Arrow-Keys, as i'm used from Word, Outlook, Notepad....
.... and you jump to the next TEdit...

Just.....Don't
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

J-G

  • Hero Member
  • *****
  • Posts: 1300
Re: Recursion ??
« Reply #16 on: September 02, 2026, 11:31:10 am »
In the interests of 'Free form' Editing and logical use of keyboard data entry, the setting of 'Next' field may well involve checking for the [Arrow] Keys being pressed.
Don't!

I'm in your TEdit, i made a typo, and want to move the Caret using the Arrow-Keys, as i'm used from Word, Outlook, Notepad....
.... and you jump to the next TEdit...

Just.....Don't
🤣  yes I can see your point . . .  it may well be possible but checking whether it's an 'Edit within the text' or 'Move on' is likely to be a nightmare.

. . . . . .  though [Up] & [Down] . . . . . . .    ;D
« Last Edit: September 02, 2026, 02:45:20 pm by J-G »
FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

Thaddy

  • Hero Member
  • *****
  • Posts: 19805
  • Glad to be alive.
Re: Recursion ??
« Reply #17 on: September 02, 2026, 11:36:53 am »
Down repeats, Up doesn't, so choose up in that case. There is some logic to that...
I trust you to write your own example in this case, but otherwise?
« Last Edit: September 02, 2026, 11:41:01 am by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

J-G

  • Hero Member
  • *****
  • Posts: 1300
Re: Recursion ??
« Reply #18 on: September 02, 2026, 01:05:13 pm »
Down repeats, Up doesn't, so choose up in that case. There is some logic to that...
I trust you to write your own example in this case, but otherwise?
I have a lot more important work to do before I even look at that option, but yes, in the event that I do proceed along those lines I will create an example. :)
FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

Zvoni

  • Hero Member
  • *****
  • Posts: 3532
Re: Recursion ??
« Reply #19 on: September 02, 2026, 01:40:06 pm »
Down repeats, Up doesn't, so choose up in that case. There is some logic to that...
I trust you to write your own example in this case, but otherwise?
I think OP was talking about Up/Down ARROW-KEYS
Not OnKeyDown/OnKeyUp
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

J-G

  • Hero Member
  • *****
  • Posts: 1300
Re: Recursion ??
« Reply #20 on: September 02, 2026, 01:44:10 pm »
Down repeats, Up doesn't, so choose up in that case. There is some logic to that...
I trust you to write your own example in this case, but otherwise?
I think OP was talking about Up/Down ARROW-KEYS
Not OnKeyDown/OnKeyUp
Ah  -  I missed that interpretation  - and yes, I was refering to the Arrow Keys not the Events.
FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

 

TinyPortal © 2005-2018