Focus problem with the tab control

N

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
 
C

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
 
N

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
 
N

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top