Kirix Support Forums

HTML tab steals focus

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

HTML tab steals focus

Postby miclus on Sat Jul 18, 2009 8:59 pm

Hi. I have a notebook interface and one tab contains an html page. There is a strange glitch on startup. It's related to the OpenURI function. Basically, what I do is load up my program. Then, click out of it (to change focus to the background or another program). Then, when I click back into it, it magically switches to the chat tab. Check out this video to illustrate:

http://duke3d.org/chat.avi

Is there any way to stop this from happening? Another thing I noticed was that if you add the tab with the web page to the wxAuiNotebook, it switches to that tab even if you tell it to not switch to it.
miclus
Registered User
 
Posts: 10
Joined: Sat Jul 18, 2009 8:56 pm

Re: HTML tab steals focus

Postby miclus on Sat Jul 18, 2009 9:09 pm

One way I can stop this is to click on something before clicking out of the application and clicking back in. Then, it appears to work ok.
miclus
Registered User
 
Posts: 10
Joined: Sat Jul 18, 2009 8:56 pm

Re: HTML tab steals focus

Postby Ben on Thu Jul 23, 2009 2:03 am

Can you put a breakpoint in the tab control's activate method to determine who is calling the activate function? That would really shed some light on why the tab is changing unexpectedly.

All the best,
Ben
Ben Williams
Kirix Support Team
User avatar
Ben
Kirix Support Team
 
Posts: 522
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Questions, Thoughts & Feedback