Recent

Author Topic: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo  (Read 921 times)

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 359
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« on: January 14, 2024, 03:10:43 pm »
On one of my data entry forms - CLIENTS, one of my end-users text me about an issue when she's entering data, mostly TDBEdits and a couple of TJvcDBLookupCombo's. I checked and have the TabStop property for all set to True and the Taborder property set to the correct order number starting with 0 and incrementing to 22.  Testing myself, I see her issue, when she get's down to the State/Province TJvcDBLookupCombo selects the correct State or Province and presses Tab, it jumps/tabs to the next TJvcDBLookupCombo - Category and skipping the Postal Code and the Country. Rather a nick pick but NOT the correct behavior for the end user!

paweld

  • Hero Member
  • *****
  • Posts: 1368
Re: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« Reply #1 on: January 14, 2024, 03:28:02 pm »
Isn't it the case that you have these controls placed on a (different) panel or in a group box?
Also check the validity of the controls in the menu: View > Tab Order
Best regards / Pozdrawiam
paweld

wp

  • Hero Member
  • *****
  • Posts: 12799
Re: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« Reply #2 on: January 14, 2024, 04:08:20 pm »
Right-click on your form and select "Tab Order" from the context menu. In the right side-bar, check "recursively" and click on the button above that checkbox (no caption, but having "Calculate tab order..." as help hint). This rearranges the tab order to primarily left-to-right and then top-to-bottom.

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 359
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« Reply #3 on: January 14, 2024, 06:10:04 pm »
All the TDBEdits, combo's, etc. are on one panel, main panel. I have a top panel above the DBGrid which has the navigator, index selection, etc. but have the tab stop/tab order disabled for that top panel container. I'm going to check the "recursively". Thanks all!

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 359
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« Reply #4 on: January 14, 2024, 07:01:36 pm »
Okay, still an issue.  I think it probably has to do with the 2 TJvcl DB components, both are TJvDBLookupComboBox's. I checked by right-clicking both the form and the main panel and made sure the tab orders are numbered 0-22 in the correct order and made the Tab Order Recursively check box was checked. Saved and Ran but the same issue. Not a big deal but will test by removing the TJvDBLookupComboBox and replacing it with a Lazarus IDE TDBLookUpComboBox and see if that eliminates the issue. I'll let you know...

1HuntnMan

  • Sr. Member
  • ****
  • Posts: 359
  • From Delphi 7 to Lazarus
    • NewFound Photo Art
Re: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« Reply #5 on: January 14, 2024, 07:28:21 pm »
See the snip jpg attached of the Tab Order listing for the form.

wp

  • Hero Member
  • *****
  • Posts: 12799
Re: Tab Order issue with Jvcl DB component - TJvcDBLookupCombo
« Reply #6 on: January 14, 2024, 07:39:27 pm »
Are you sure that all controls have the property TabStop set to true? Otherwise a TAB would simply jump over those which have TabStop = false.

 

TinyPortal © 2005-2018