Search found 62 matches

by shawnee
Tue Jan 16, 2018 2:55 am
Forum: wxWidgets Development (Chinese)
Topic: Ribbon动态事件绑定的userdata传入问题(wx3.1)
Replies: 1
Views: 1168

Ribbon动态事件绑定的userdata传入问题(wx3.1)

大家好, 我在做Ribbon控件动态绑定事件的时候,Debug模式下碰到一个crash问题。我用的是wx3.1。 示例代码如下(仅列出关键代码,其他代码已忽略): #define wxID_App_TEST 100000 /////////////////////////////////// class myFrame : public wxFrame { private: int user_id; private: wxRibbonBar *create_ribbon(); wxRibbonBar * ribbbon; private: void OnClick(wxRibbonButton...
by shawnee
Tue Jan 16, 2018 2:44 am
Forum: C++ Development
Topic: set user data for ribbonbuttonbar event
Replies: 3
Views: 548

set user data for ribbonbuttonbar event

I'm using wxWidgets 3.1, I got a crash problem if I pass userdata to wxEVT_RIBBONBUTTONBAR_CLICKED event callback. I used dynamic event binding and run under Debug mode. Here is my example codes: #define wxID_App_TEST 100000 /////////////////////////////////// class myFrame : public wxFrame { privat...