Search found 14 matches

by jerome_mao
Fri Jun 29, 2018 3:00 am
Forum: C++ Development
Topic: How to know the app is activate or idle by wxWidgets inerface
Replies: 3
Views: 218

Re: How to know the app is activate or idle by wxWidgets inerface

HI ONEEYEMAN : Thx a lot for your reply. My Problem is: My APP use flex license , the APP need send heartbeat to license server when APP is activate to keep the license occupied. If the APP's Idle time beyond the userdefine time(TIMEOUT) ,license server will release the license. So, I need call a fu...
by jerome_mao
Wed Jun 27, 2018 3:54 am
Forum: C++ Development
Topic: How to know the app is activate or idle by wxWidgets inerface
Replies: 3
Views: 218

How to know the app is activate or idle by wxWidgets inerface

How to know the app is activate or idle. I found wxWidgets has Activate and IDLE event. I added EVT_ACTIVAETE event in my mainApp.cpp " BEGIN_EVENT_TABLE(myApp,wxApp) EVT_ACTIVATE(myApp::OnActive) END_EVENT_TABLE() " but the OnAvtive function was not called each time when i use the APP. For example:...
by jerome_mao
Mon Jan 08, 2018 3:39 am
Forum: Platform Related Issues
Topic: dc.GetSize() crash on linux OS with wxwidgets 3.0.2 version( debug mode)
Replies: 10
Views: 1040

dc.GetSize() crash on linux OS with wxwidgets 3.0.2 version( debug mode)

wxClientDC dc; dc.GetSize(&w,&h) have assertion on linux OS when app run in debug mode,release mode is ok;(3.0.2 version) It beacause the canvas refresh before parent window show. if we don't change the function, how we fixed this bug? It is ok in wx2.8.12 version; frame-> canvas(panel) void Canvas:...
by jerome_mao
Thu Jan 04, 2018 2:06 am
Forum: wxWidgets Development (Chinese)
Topic: dc.GetSize() Debug下会有assertion,因为窗口还未show出来
Replies: 0
Views: 802

dc.GetSize() Debug下会有assertion,因为窗口还未show出来

当前的frame窗口未show出,版图onsize绘图,调用wxClient DC GetSize()时报错,提示找不到父窗口
by jerome_mao
Wed Jul 27, 2016 2:26 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

Hi:
I can't register trac account. It always tip the message like
"Warning: reCAPtCHA incorrect, Please try agian", but i can't find any reCAPTCHA info in the web.
http://trac.wxwidgets.org/login
by jerome_mao
Thu Jul 21, 2016 3:32 am
Forum: wxWidgets Development (Chinese)
Topic: 子窗口hotkey 无效 (linux platform wx3.0)
Replies: 0
Views: 1225

子窗口hotkey 无效 (linux platform wx3.0)

最近将wx库从2.8升级到3.0.2 遇到一个HotKey的问题。子窗口的menu的快捷键失效了,与此相关的是子窗口里的一个panel 定义了keyEvent事件。 ,focus在此panel上,敲快捷键,menu的快捷键不起效用,keyevent事件进入了。但windows上是好的,wx2.8 也没有问题,就linux上无效(redhat6.3 centos5.6(gnome))。有谁遇到这问题的么 ,该如何解决,请帮忙看下,谢谢 下面是一个简单的测试例子,子窗口的ID_EXITSUBWIN和ID_EXITSUBWIN的menu事件没有触发。 #include <wx/wx.h> #defi...
by jerome_mao
Thu Jul 21, 2016 1:46 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

Hi DavidHart: Thanks a lot. Since the panel in example is a canvas in our real code. we defined lots of hotkeys to call the function. And we defined keyevents in canvas. So, it seems that the keyevent cause menu hotkey not work in linux platform(wx3.0), i will reported it to the wxtrac ,hope it can ...
by jerome_mao
Wed Jul 20, 2016 3:03 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

Hi DavidHart: Thanks for your kindly help. Test Code: #include <wx/wx.h> #define ID_OPENSUBWIN 1000 #define ID_EXITWIN 1001 #define ID_TIPWARNING 1002 #define ID_EXITSUBWIN 1003 class CSubPanel : public wxPanel { public: CSubPanel(wxWindow *parent); void OnKeyDown(wxKeyEvent &event); DECLARE_EVENT_T...
by jerome_mao
Tue Jul 19, 2016 2:38 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

if focus to the other controls in the subwindow, the hotkey worked.
so just canvas(a panel) which defined keydown/keyup event, hotkey invalid.
by jerome_mao
Tue Jul 19, 2016 1:55 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

You're talking about "hotkeys". Do you mean global hotkeys registered with RegisterHotKey() or do you mean "normal" keyboard shortcuts? Hi ,i found the menu hotkey not worked in subwindow on linux platform( wx3.0.2) when the subwindow defined keyevent. Canvas::OnKeyDown(wxKeyEvent& event) Canvas::O...
by jerome_mao
Tue Jul 19, 2016 1:37 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

Which distro are you using? Which version of it? Which Desktop Environment/Window manager are you using e.g. gnome, kde? Were you using the same with wx2.8? I found that, the subwindow has "Canvas::OnKeyDown(wxKeyEvent& event)" function, so only the eventkey which defined in this function are worke...
by jerome_mao
Mon Jul 18, 2016 10:04 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

Hi, Did those keys work in the subwindow menu on Linux before? If so, with which wx version? And are you using the same Linux distro and version now? If the answers are Yes, how are you trying to catch the submenu events? Can you post the relevant bit of code? Regards, David I found that, the subwi...
by jerome_mao
Mon Jul 18, 2016 9:54 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

Re: hotkey invlid in linux platform (wx3.0)

I found that, the subwindow has "Canvas::OnKeyDown(wxKeyEvent& event)" function, so only the eventkey which defined in this function are worked, the global hotkey event haven't worked. how do i fixed this question? wx2.8 to wx3.0 hotkey with wx2.8 is ok, 3.0 not worked in submenu on linux platform
by jerome_mao
Mon Jul 18, 2016 7:22 am
Forum: Platform Related Issues
Topic: hotkey invlid in linux platform (wx3.0)
Replies: 15
Views: 2326

hotkey invlid in linux platform (wx3.0)

I try to update codes to wx3.0, now get a hotkey problem, it's ok on the windows platform, but on linux platform, some hot keys are invalid,there has no response when i used hotkey in subwindow example, subwindow menu : F , Shift+F ,Ctrl+F is ok, K, Ctrl+K ,I,F9,Shift+M ,Shift+C ... all invalid. Fir...