Recent

Author Topic: Capturing the tab order of a focused item  (Read 2648 times)

eljo

  • Sr. Member
  • ****
  • Posts: 468
Re: Capturing the tab order of a focused item
« Reply #15 on: April 28, 2020, 01:16:17 am »
Sorry if this has already been said but I see a lot redundant code flying around and I have no desire to read it all, so I'll just ask have you tried
Code: Pascal  [Select][+][-]
  1.   showmessage(inttotsr(Form1.ActiveControl.TabOrder));
  2.  
and if yes what is the problem you stumble upon exactly.

jamie

  • Hero Member
  • *****
  • Posts: 6943
Re: Capturing the tab order of a focused item
« Reply #16 on: April 28, 2020, 02:14:05 am »
I think tab order was a mistake when asked, what they really wanted was the index of where it lived in the order of controls.

 The TABORDER may not always be the same order of the control in the controls array.. So if a person needs to know which control is the next or before in the order of creation that could use many of the already existing methods...

 I believe this person is writing a RAD system by looking at his post.
The only true wisdom is knowing you know nothing

MaxCuriosus

  • Full Member
  • ***
  • Posts: 138
Re: Capturing the tab order of a focused item
« Reply #17 on: April 29, 2020, 12:47:06 am »
eljo,
what I wanted to achieve has been achieved, see reply #10. Everything else is for my learning experience. Thank you for your suggestion anyway.

 

TinyPortal © 2005-2018