Solved Tab control - focus glitching (1 Viewer)

ironfelix717

Registered User.
Local time
Today, 08:39
Joined
Sep 20, 2019
Messages
193
Hello,

I am having a problem with a core UI layout inside my app. The scrollbar/focus glitches when two specific tabs are selected on a form.

The UI layout is : MAIN FORM > QUOTE FORM.TabControl > subforms on some tabs

Cycling through tabs in the quote form (Costing and Material) causes the view of the screen to be shifted.

If you've attempted to build more than a single form UI in access, you've encountered this issue...

Usually i can solve with .SetFocus property on a textboxFocusTaker control, etc. Not working.

Wondering if any brave souls are up for a challenge on trying to prevent it from glitching?
Attached is a stripped down version of the application. I appreciate your help!

 

Attachments

  • Test.accdb
    896 KB · Views: 219

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:39
Joined
May 7, 2009
Messages
19,230
will this fix the issue?
i added an Unbound textbox, txtDummy (topmost, leftmost of your form and set its width to 0, height 0).
whenever you change tabs i set focus to the dummy textbox.
 

Attachments

  • Test (2).accdb
    896 KB · Views: 197

ironfelix717

Registered User.
Local time
Today, 08:39
Joined
Sep 20, 2019
Messages
193
will this fix the issue?
i added an Unbound textbox, txtDummy (topmost, leftmost of your form and set its width to 0, height 0).
whenever you change tabs i set focus to the dummy textbox.

@arnelgp

Thanks for looking at this. That improved the issue but the focus is still trying to grab something prior to when the tab change event fires so there is still a glitch. Its quite annoying. i'm going to play around some more.

If anyone else has any suggestions, that would be great.

Thanks to all!
 

KitaYama

Well-known member
Local time
Today, 21:39
Joined
Jan 6, 2022
Messages
1,540
@KitaYama

That is fixed! How did you solve this?? tab stop??
No, the width of forms where too large. They even didn't fit in my dual monitor when I opened them in design view.
And you had two controls at the right side of the forms in costing tab. I moved them to bellow the form.
 

ironfelix717

Registered User.
Local time
Today, 08:39
Joined
Sep 20, 2019
Messages
193
SOLVED

The tab control width and subform width was too large for the form basically.

Decreasing the width of the subform and tab control solved it.

Thanks to @KitaYama who solved this for me!!!!
 

Users who are viewing this thread

Top Bottom