Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TabControl out of control.

Status
Not open for further replies.

furrymonster

Programmer
May 5, 2002
6
US
Once upon a time
there was a form,
with a sub-form
subdivided into 3 pages,
on which there is an evil tabcontrol
with five pages (tabs).

On each (tab)page there is one object. When you click on the tab the entire tabcontrol jumps to the bottom edge of the form.

Why does this happen, and how can I correct it? Keep reading for my only some-time functional kludge.
-----------------------------------------------------------
Forcing a .GoToPage worked (admittedly with a flicker) - effectively making the subform jump back to where it should be. However this 'fix' crumbles when the object is an ActiveX object rather then a textbox control. The object loses focus and disappears entirely when the .GoToPage is triggered. Resetting focus makes the tabcontrol jump to the bottom edge again.

Just for fun:
While the jumping behavior is universal,
the 'fix' works on one (NT4.0/Office2000) machine
but not on another (Win2000/OfficeXP)

Any ideas would be much much appreciated.

-Sleepless in NY
 
I recall reading somewhere that page controls do not work from within tab controls; presumably this is the problem you may be having. Why not just add a few more tab pages to your tab control and do away with the vertical paging ??

My 2c worth, though I'm probably not understanding the problem properly,
Cheers,
Steve
 
Thanks for the response.
This is making me excessively crazy.
The key problem seems to be that the entire control "jumps" when it gets focus. The rest of the problems only arise when I try to fix that first problem.

I did think of one fix:
put the control on the bottom so that it has no where to jump to, but it looks funny.

I may take your advice and just do away with the whole tabs-in-pages nonsense. Too bad though, it was a nice intutive UI in this instance.

 
Yup, "go with the flow" as they say,
Cheers,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top