页面内的页面使用选项卡控件 [英] Pages within pages using tab control

查看:46
本文介绍了页面内的页面使用选项卡控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在使用Access 2003而我正在尝试创建一个选项卡控件,按下命令按钮后,将转到第二页特定标签。


例如,我有一个带有六个标签/页面的标签控件,标记为General Info,Informants,Cert of Trial Comp,Trial Comp Eval,Areas of试用比较这些更类似于用户访问以将数据输入到放置在其中的字段中的部分。


我遇到的问题是,我想要显示的所有字段都不会以我必须使用的窗口大小来显示。我想要解决这个问题的方法是创建一个包含所有相同选项卡/页面的第二个选项卡控件,但更改我必须超越的页面上的信息。然后我想我可以创建一个命令按钮,当我到达该选项卡时它变为活动状态,并允许用户转到选项卡的第二页,实质上,这只会使第二个选项卡控件可见。


首先,当您单击选项卡时,选项卡控件不会激活页面...您必须实际单击选项卡下方页面上的某个位置。其次,当我单击我创建的命令按钮时,所有格式都变得混乱。突然之间,第二个选项卡控件已超出预期,第二个选项卡控件的字段与第一个选项卡控件中的字段混合在一起。


有没有更好的方法完成我打算做的事情?有什么方法可以做我正在尝试的事情吗?有没有办法通过单击选项卡控件中的选项卡来控制其他对象?如果有两列火车以80英里/小时的速度向相反的方向行驶......哎呀,我分心了。


感谢您的帮助......

Hi,

I''m using Access 2003 and I''m trying to create a tab control that, upon pressing a command button, will take you to a second page of that particular tab.

For example, I have a tab control with six tabs/pages that will be labeled General Info, Informants, Cert of Trial Comp, Trial Comp Eval, Areas of Trial Comp. These are more like sections for the user to access to enter in data into fields that are placed within them.

The problem that I''ve encountered is that not all of the fields that I want to display will do so in the size of the window I have to use. What I thought about doing to remedy this was to create a second tab control with all of the same tabs/pages, but change the information on the pages where I have to go overboard. Then I figured I could create a command button that became active when I reached that tab and would allow the user to go to the second page of the tab, which, in essence, would only make the second tab control visible.

First off, the tab control doesn''t activate the page when you click on the tab...you have to actually click somewhere on the page below the tab. Secondly, when I click the command button I created, all of the formatting goes haywire. All of the sudden, the second tab control has stretched beyond belief and the fields for the second tab control are intermingled with the fields from the first tab control.

Is there a better way to accomplish what I''ve set out to do? Is there any way to do what I''m attempting? Is there any way to control other objects by clicking on the tabs in the tab control? If 2 trains are travelling in opposite directions at 80 mph...oops, I got distracted.

Thanks for the help......

推荐答案

而不是2个选项卡控件,为什么不重叠同一选项卡上的控件并让控件按钮切换控件的可见性?
Rather than 2 tab controls, why not overlap the controls on the same tab and have the control button toggle the visibility of the controls?



而不是2个选项卡控件,为什么不重叠同一选项卡上的控件并让控件按钮切换控件的可见性?
Rather than 2 tab controls, why not overlap the controls on the same tab and have the control button toggle the visibility of the controls?



这是一个好主意......这是我希望通过使用2个选项卡控件来实现的,但这是有道理的。可能需要编写比我希望的更多的代码,但应该看起来更好。


就控制按钮而言...我不希望它可见,除非用户选择了特定选项卡,但选项卡控件要求您从我看到的内容中不仅要选择选项卡,还要单击页面上的某个位置。有没有办法让标签成为控件的焦点以防止这种情况?


感谢您的建议

That''s a good idea...that''s kind of what I was hoping to accomplish by using the 2 tab controls, but this makes sense. May take writing more code than I had hoped, but should look better.

As far as the control button is concerned...I don''t want it to be visible unless a particular tab is selected by the user, but the tab control requires you, from what I''ve seen, to not only select the tab, but also click somewhere on the page. Is there a way to get the tab to be the focal point of the control to prevent this??

Thanks for the advice


I'我不确定你的意思,但是标签控件有一个On Change事件,当用户在标签之间移动时会触发该事件。所以你可以使用它,或者只需将按钮放在标签上。
I''m not sure what you mean but the tab control has an On Change event that triggers when a user moves between tabs. So you can use that or you can just put the button on the tab.


这篇关于页面内的页面使用选项卡控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆