Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / wxFrame EVT_CHAR(...)

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. wxFrame EVT_CHAR(...)
#7986
Posted by: 2006-03-08 03:58:11
Hi,

I'm trying to get my application to respond to key events globally (in the app, not in the O/S). The obvious thing seemed to be to implement a EVT_CHAR(...) in the event table for my wxFrame but this does not seem to work correctly (for some reason, the OnChar(...) function I defined and mapped with the EVT_CHAR(...) macro doesn't seem to get called). The only workaround I can think of is a wxTextCtrl that you could type into to have a key processed, but that kind of defeats the purpose.

Does anyone have any idea for how to fix this?

Thanks in advance.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2024-12-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0