Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Frame gaining focus on components refreshing

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Frame gaining focus on components refreshing
#2454
Posted by: 2003-08-11 17:40:46
Hello
My application receives data from the network and display them into some text labels and a grid too, all in two separate wxStaticBoxSizer. I use a timer to call the functions that request these informations.
The problem is that when the information are displayed on the frame, if I am browsing in a menu the menu disappears because I think the frame is gaining the focus, probably because it must repaint. How can I avoid it ? I tried just refreshing the text labels or just the grid but the problem appeared each time.
Thanks for your help !
Message2. Re: Frame gaining focus on components refreshing
#2455
Posted by: guidance 2003-08-11 18:13:26
wxMenuEvent may solve your problem.
Message3. Re: Frame gaining focus on components refreshing
#2456
Posted by: 2003-08-11 20:30:18
good idea. So you suggest that on wxMenuEvent I stop the timer?
I tried and it works, but I would be glad not to stop the timer. It is not very important but I just wonder me if there is a solution for it or not. Because most of the applications must deal with this problem no?
Message4. Re: Frame gaining focus on components refreshing
#2457
Posted by: guidance 2003-08-11 21:55:21
Just stop the refreshing in stead of stop the timer may be better.
Message5. Re: Frame gaining focus on components refreshing
#2459
Posted by: 2003-08-11 22:30:35
Thanks, is there any function to stop the refreshing? I have not a lot of experience with the events in wxWindows, sorry :|
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥650.00 ·
 
 
¥880.00 ·
 
 
¥880.00 ·
 
 
¥760.00 ·
 
 
 
 
© Sat 2024-11-9  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0