Search found 6 matches

by jacky mo
Wed Mar 10, 2010 1:04 am
Forum: C++ Development
Topic: why wxEditEnumProperty do not generate EVT_PG_CHANGED event?
Replies: 1
Views: 352

why wxEditEnumProperty do not generate EVT_PG_CHANGED event?

After I edited the wxEditEnumProperty's value, I selected another property, but wxEditEnumProperty's value changed to the original value before I edited and there is no EVT_PG_CHANGED event generated.

Why??
by jacky mo
Tue Mar 09, 2010 10:21 am
Forum: C++ Development
Topic: Can I add predefined string values to wxPGEditor_ComboBox?
Replies: 1
Views: 420

Can I add predefined string values to wxPGEditor_ComboBox?

I want wxStringProperty and wxPGEditor_ComboBox work together, but I need to add some predefined string values to combobox's dropdown list. How could I implement this?
by jacky mo
Mon Mar 08, 2010 8:06 am
Forum: C++ Development
Topic: which platforms can ownerdrw item be used ??
Replies: 2
Views: 552

which platforms can ownerdrw item be used ??

listbox can have ownerdrw items.
I know that they can be used under windows.

but can they be used under mac or linux??

If i don't use ownerdrw, is there a way to customize listbox item's width or height??

thanks..
by jacky mo
Mon Mar 08, 2010 7:57 am
Forum: C++ Development
Topic: how can I emulate key press event?
Replies: 3
Views: 839

okurtsev wrote:wxKeyEvent::m_keyCode
it is public.

http://docs.wxwidgets.org/2.6/wx_keycodes.html - here are all possible key codes, except ASCII characters

It's obsoleted now.
by jacky mo
Wed Mar 03, 2010 6:58 am
Forum: C++ Development
Topic: how can I emulate key press event?
Replies: 3
Views: 839

how can I emulate key press event?

I need to send event to some window.

How can I emulate key press event?

I create event by wxKeyEvent(wxEVT_CHAR), but I can't find how to add press key information?
by jacky mo
Wed Feb 03, 2010 2:09 am
Forum: C++ Development
Topic: how can I convert const wchar_t* to const char*
Replies: 3
Views: 1792

how can I convert const wchar_t* to const char*

hello, I met a problem when I use a third-party lib with wxWidget. My wxwidget supports unicode. and I need to input argument as const char* to third-party lib functions. So I want to convert wxString to const char*, because I turn the unicode option on, I can only convert wxString to const wchar_t*...