Controlling Which Tab has Focus in Tabbed Dialog Control

Controlling Which Tab has Focus in Tabbed Dialog Control

Anonymous
Not applicable
317 Views
4 Replies
Message 1 of 5

Controlling Which Tab has Focus in Tabbed Dialog Control

Anonymous
Not applicable
Does anybody know how I can control which tab gets the focus for a Tabbed Dialog control -- I have been looking at the help system and I seem to be not finding the information I need.

Currently I have this huge GUI with many controls in it -- I tried to put everything into one form so that there will be only one tabbed dialog control -- somewhere along the middle of the way however while trying to add the controls -- the form at design time started to complain saying that it reached its limit and no more control can be added.

Because of that I had to create two identical Tabbed Dialog Control in two separate forms and making the two forms looks as identical as possible to give the user the illusion that there is only one form.

I notice right now that there seems to be no way to programmatically set the focus of the tabs so that I can switch back and forth between the two forms and set focus to tabs that have controls on them for each of the corresponding form that in triggered.

Without the capabililty of programmatically controlling the focus as I am describing I end up with the user seing empty
tabs when my code flips him from one form to another.

At design time the tab that has the control becomes the default tab that has the focus on form load -- but I am right now in need of more control to the tab that receives that focus
because of the two forms I have.


Please help me. All suggestions welcome.

Matt
0 Likes
318 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi Matt,

If you talk about the multi page control, you can control which tab is
avtive with it's value.

Here my multipage is called tabs, and I switch the active tab to the value 3

FrmXref.Tabs.Value = 3

the same way I can retrieve the currently selected tab.

Hope this helps.




a écrit dans le message de news:
4892966@discussion.autodesk.com...
Does anybody know how I can control which tab gets the focus for a Tabbed
Dialog control -- I have been looking at the help system and I seem to be
not finding the information I need.

Currently I have this huge GUI with many controls in it -- I tried to put
everything into one form so that there will be only one tabbed dialog
control -- somewhere along the middle of the way however while trying to add
the controls -- the form at design time started to complain saying that it
reached its limit and no more control can be added.

Because of that I had to create two identical Tabbed Dialog Control in two
separate forms and making the two forms looks as identical as possible to
give the user the illusion that there is only one form.

I notice right now that there seems to be no way to programmatically set the
focus of the tabs so that I can switch back and forth between the two forms
and set focus to tabs that have controls on them for each of the
corresponding form that in triggered.

Without the capabililty of programmatically controlling the focus as I am
describing I end up with the user seing empty
tabs when my code flips him from one form to another.

At design time the tab that has the control becomes the default tab that has
the focus on form load -- but I am right now in need of more control to the
tab that receives that focus
because of the two forms I have.


Please help me. All suggestions welcome.

Matt
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hello and thank for your answer -- I tried the code you sent -- unfortunately it gives an "invalid qualifier" error --

I do not know what is the difference between a multipage and the control I am using. The default name for the control I am using when I place one into a form is SSTab1.

Matt
0 Likes
Message 4 of 5

Anonymous
Not applicable
Matt,

Te help files for that control put it this way.

Form2.SSTab1.Tab = 1


Goodluck,

Bob Coward
CADS, Inc
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Bob

It works like magic!

Matt
0 Likes