B
BruceM
I'm having trouble sorting out some things involving tabs and pages in a tab
control. From what I can tell, the tab control can contain several
individual tabs, each of which is a page. A page seems to be something like
a tab control's version of a Detail section.
Here's the part where it gets mysterious. I used message boxes to test the
click event for the tab control, the page, and the detail section (msgbox
"Tab Control", etc.). The page's Click event occurs whenever I click a
blank space on the page, unless I click the actual tab, in which case
nothing seems to happen. If I click the very edge of the page, or to the
right of the rightmost tab control, the tab control's Click event runs. If
I click beside or below the tab control, the detail section's Click event
runs. The things I can't figure are why the tab control even has a Click
event, since clicking it is a bit of a trick; and why a Click event
apparently can't be associated with the tab itself, which is the thing most
likely to be clicked. I can probably simulate a tab click event with a Got
Focus event for a control or something like that, but it seems roundabout.
The lack of formatting options for caption text color, page background
color, and so forth is a bit annoying. I know about Lebans' system for
changing background color and so forth, but I haven't been able to figure it
out yet. I'm not too concerned about the format, and can only hope that the
powers that be within my company feel the same way. Functionality comes
first, and there is still work to do on that. The question arose because I
realized during development that a tabbed form would work better than a
one-page form. Clicking a tab is often preferable to scrolling, I think.
control. From what I can tell, the tab control can contain several
individual tabs, each of which is a page. A page seems to be something like
a tab control's version of a Detail section.
Here's the part where it gets mysterious. I used message boxes to test the
click event for the tab control, the page, and the detail section (msgbox
"Tab Control", etc.). The page's Click event occurs whenever I click a
blank space on the page, unless I click the actual tab, in which case
nothing seems to happen. If I click the very edge of the page, or to the
right of the rightmost tab control, the tab control's Click event runs. If
I click beside or below the tab control, the detail section's Click event
runs. The things I can't figure are why the tab control even has a Click
event, since clicking it is a bit of a trick; and why a Click event
apparently can't be associated with the tab itself, which is the thing most
likely to be clicked. I can probably simulate a tab click event with a Got
Focus event for a control or something like that, but it seems roundabout.
The lack of formatting options for caption text color, page background
color, and so forth is a bit annoying. I know about Lebans' system for
changing background color and so forth, but I haven't been able to figure it
out yet. I'm not too concerned about the format, and can only hope that the
powers that be within my company feel the same way. Functionality comes
first, and there is still work to do on that. The question arose because I
realized during development that a tabbed form would work better than a
one-page form. Clicking a tab is often preferable to scrolling, I think.