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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing the tabs at the top of screen all the time, even when scrollin

Status
Not open for further replies.

markkram

Technical User
Sep 26, 2003
3
US
I have a form with 4 tabs at the top. The content in the pages is too long for the screen. Every time it loads up, you have to scroll up to see the tabs at the top of the screen. I was wondering if anyone knew how to make it so the tabs at the top of the screen will show when loaded up, and will still be there when I scroll down. Thanks
Email me at markhoyt@afnetinc.com
 
Use a form header and put your tabs in the form header this way when you scroll the header is always at the top of the form and does not disappear.

Walt III
SAElukewl@netscape.net
 
I just don't know how to keep the tabs in the Form Header, and make it apply to the detail area.(make the page change when I hit the tab at the top)
 
Setup your page so that all of your information for each record is listed across one line or if you do not have enough room offset items and use lines to separate the sections
Then put your tabs in the form header in the same order in the header as in the detail section. Do your tabs change with different Records?

Walt III
SAElukewl@netscape.net
 
markram,

Are you asking about the "tabs" on a TabControl?

If so, I don;t think you can put the tabs in a different 'section' of the form. The only way I can think of to do this would be to place a "second" TabControl (or a collection of command burttons?) in the header. Assume that you use a second tab control. IN the one in hte header, make the body height ~ 0, and give the tabs the same labels as you have on the one in the detail section. Place code in the On-Click event of the Header Tab control so set the tab in the detail section control to the same as the one in the header. When you click a tab in the header, the tabcontrol in the detail section switches to the same (appropiate) tab. Just for niceity, I would set the tabHeight in the one in the detail section to ~ 0, so the poor user doesn't get confused. This may be at hte 'edge" of hte normal box, but I wouldn't admit to it's being "Outside of the Box".



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
I'm sorry, I am having a hard time understanding. I'm pretty dumb. All I know is that it is a tab control(when you add it, it will have tab index's at the top of the screen, starting at page 1) It has 4 pages, when I click each page, different buttons, boxes, etc appear, from the same table.
 
O.K. you are in the "zone" i was discussing.

Did you "create" the control e.g place it on the form? If so, all I'm suggesting is that you can achieve the effect you want using 2 of them.

One in the header (this doesn't scroll) (I will refer to this one as the HdrTab) and the original one (I will refer to this one as the DetTab).

Make the TABS in the HdrTab "look like" the tabs on the DetTab. (Same text/caprion).

Make the body height in the HdrTab be approx. 0 (or as samll as possible). It should then look like the tabstrip on the DetTab, and have no Controls.

Now create some code in the HdrTab OnClick Event for each tab. This code simply sets the tab value of the DetTab.

Assume (per your post) there are four tabs, and per this discussion there are two tab controls (HdrTab & DetTab). In the OnClick event of HdrTab, place a line of code:

DetTab.Tab = HdrTab.Tab

Switching to the DetTab, just make the height of the tab portion of the control be as small as possible (approx 0.001?).

Make the two tabcontrols the same width and align them Left. Set the top of DetTab at zero, and move HdrTab to be at the very bottom of the Header section of your form. They should "look like" a single tab control w/ a "seperator line" between the HdrTab and the DetTab. Functionallay, it should work as a single control.

Sorry if this is confusing, but short of doing this and sending it to you I don't know how else to explain it.





MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top