Home All Groups Group Topic Archive Search About

Focus problem with the tab control

Author
3 Oct 2006 4:21 AM
ngkuhlmann
I have a strange problem.

I have a tab control with 5 tabs.  When I click one of the tabs the tab
show its information just fine, however when I test the focus, without
moving and within a timer control, the focus returns a false.

Any thoughts?

TIA,
Noral

Author
3 Oct 2006 4:31 AM
Cor Ligthert [MVP]
Noral,

The focus is only given back for a control that real is visible on the
screen, this is an normal asked question, can that be your problem as well?

Cor

<ngkuhlm***@scif.com> schreef in bericht
Show quoteHide quote
news:1159849281.844488.243320@e3g2000cwe.googlegroups.com...
>I have a strange problem.
>
> I have a tab control with 5 tabs.  When I click one of the tabs the tab
> show its information just fine, however when I test the focus, without
> moving and within a timer control, the focus returns a false.
>
> Any thoughts?
>
> TIA,
> Noral
>
Author
3 Oct 2006 5:10 AM
ngkuhlmann
Thank you for your comment, but no this is not the problem.

Just to be a little more clear.  Lets say tab2 has focus...then the
timer_tick subroutine fires, when I check focus on tab2 (tab2.focused)
it is false.  Nothing has happend except the timer_tick subroutine
firing.

Noral

Cor Ligthert [MVP] wrote:
Show quoteHide quote
> Noral,
>
> The focus is only given back for a control that real is visible on the
> screen, this is an normal asked question, can that be your problem as well?
>
> Cor
>
> <ngkuhlm***@scif.com> schreef in bericht
> news:1159849281.844488.243320@e3g2000cwe.googlegroups.com...
> >I have a strange problem.
> >
> > I have a tab control with 5 tabs.  When I click one of the tabs the tab
> > show its information just fine, however when I test the focus, without
> > moving and within a timer control, the focus returns a false.
> >
> > Any thoughts?
> >
> > TIA,
> > Noral
> >
Author
3 Oct 2006 5:34 AM
ngkuhlmann
OK...it's late...I solved my own problem.  This tab, tab2, does not
have any input controls...so therefore of course tab2.focused would
return false...I wanted tab2.focus.  Hmmmmm Time for a Mt Dew or sleep.
:-)

Noral

ngkuhlm***@scif.com wrote:
Show quoteHide quote
> Thank you for your comment, but no this is not the problem.
>
> Just to be a little more clear.  Lets say tab2 has focus...then the
> timer_tick subroutine fires, when I check focus on tab2 (tab2.focused)
> it is false.  Nothing has happend except the timer_tick subroutine
> firing.
>
> Noral
>
> Cor Ligthert [MVP] wrote:
> > Noral,
> >
> > The focus is only given back for a control that real is visible on the
> > screen, this is an normal asked question, can that be your problem as well?
> >
> > Cor
> >
> > <ngkuhlm***@scif.com> schreef in bericht
> > news:1159849281.844488.243320@e3g2000cwe.googlegroups.com...
> > >I have a strange problem.
> > >
> > > I have a tab control with 5 tabs.  When I click one of the tabs the tab
> > > show its information just fine, however when I test the focus, without
> > > moving and within a timer control, the focus returns a false.
> > >
> > > Any thoughts?
> > >
> > > TIA,
> > > Noral
> > >