Search found 72 matches

by maximand
Wed Jul 25, 2012 7:24 am
Forum: C++ Development
Topic: play wav from resources
Replies: 5
Views: 1441

Re: play wav from resources

I saw this doc.

Can't realized what the data should be.

data The buffer containing the sound data in WAV format.

Any way it does not working with wx2.8.x but I need.
by maximand
Wed Jul 25, 2012 6:49 am
Forum: C++ Development
Topic: play wav from resources
Replies: 5
Views: 1441

Re: play wav from resources

Thank you for quick reply.

It seems discussed already how to put wav file into resources...
But may be it possible to create file using
wxFileOutputStream in wxMemoryFSHandler then open it with wxSound ?
by maximand
Tue Jul 24, 2012 3:23 pm
Forum: C++ Development
Topic: play wav from resources
Replies: 5
Views: 1441

play wav from resources

Hi All, I have wav file converted to cpp. const int kaching_wav_length = 4048; const signed char kaching_wav_data[] = { -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, ...........................}; I can put it to wxMemoryInputStream wxMemoryInputStream istream(kaching_wa...
by maximand
Mon Jun 04, 2012 8:22 am
Forum: C++ Development
Topic: wxChoice and gettext
Replies: 5
Views: 1142

Re: wxChoice and gettext

Now it re-factored: choiceStatus_ = new wxChoice(itemPanel7, ID_DIALOG_TRANS_STATUS, wxDefaultPosition, wxSize(110, -1)); wxString transaction_status[] = { wxTRANSLATE("None"), wxTRANSLATE("Reconciled"), wxTRANSLATE("Void"), wxTRANSLATE("Follow up"), wxTRANSLATE("Duplicate") }; for(size_t i = 0; i <...
by maximand
Fri May 25, 2012 9:57 am
Forum: Platform Related Issues
Topic: problem using wxWidgets 2.9.3 on Ubuntu
Replies: 3
Views: 1113

Re: problem using wxWidgets 2.9.3 on Ubuntu

Thank you very match. Among other issues, there are just these: wxGridSizer and wxFlexGridSizer In wx2.8 and earlier, if you create a 2x2 gridsizer and then add 5 items to it, wx would roll its eyes but quietly make a 5-item grid. In wx2.9 the same code will still work, but will also assert. The bes...
by maximand
Fri May 25, 2012 5:01 am
Forum: Platform Related Issues
Topic: problem using wxWidgets 2.9.3 on Ubuntu
Replies: 3
Views: 1113

problem using wxWidgets 2.9.3 on Ubuntu

Hi, I've upgraded from wxWidgets 2.8.12 to 2.9.3 on Ubuntu 11.10 (64-bit). After several fixes my application has been successfully compiled. (http://sourceforge.net/projects/moneymanagerex/?source=directory) Now it was not operational. A lot of error messages and crashes. Some elements of UI looks ...
by maximand
Wed May 23, 2012 11:10 am
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2119

Re: KeyEvent

Found old ticked http://trac.wxwidgets.org/ticket/4812 It closed but still actual I've build keyboard binary from samples provided for wxWidgets 2.9. Russian keyboard working for wxWindow but not working for wxTextCtrl... How to fix that? I mean what I should do? Open new case in http://trac.wxwidge...
by maximand
Tue May 22, 2012 7:27 pm
Forum: Platform Related Issues
Topic: problem installing wxWidgets in Ubuntu 12.04
Replies: 12
Views: 9512

Re: problem installing wxWidgets in Ubuntu 12.04

unpack wxWidgets sources somewhere. sudo apt-get install libgtk2.0-dev Put this scrips into that folder and run it. in ~/buildgtk you will find deb package. It will take a wile... #!/bin/bash # # Note: Build support for 32 bit and 64 bit. # # Difference in Control file: Line 13 # 32bit:= Architectur...
by maximand
Tue May 22, 2012 11:54 am
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2119

Re: KeyEvent

Yes that working.

wxGTK-2.8.12/src/gtk$ diff window.cpp window.cpp.new

Code: Select all

848c848
<     return ks < 256;
---
>     return ks < 10240;
1223c1223
<         event.m_keyCode = *pstr < 256 ? event.m_uniChar : 0;
---
>         event.m_keyCode = *pstr < 10240 ? event.m_uniChar : 0;
by maximand
Wed May 16, 2012 7:18 pm
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2119

Re: KeyEvent

by maximand
Tue May 15, 2012 1:17 pm
Forum: Platform Related Issues
Topic: problem installing wxWidgets in Ubuntu 12.04
Replies: 12
Views: 9512

Re: problem installing wxWidgets in Ubuntu 12.04

Crackeraki wrote: If there are other way to install 2.9.3 on ubuntu, please guide me.
You can download sources and build it from scratch (usually using ./configure && make && make install).
Then using dpkg-deb -b create package. That is separate skill.
by maximand
Tue May 15, 2012 10:30 am
Forum: Platform Related Issues
Topic: wxSingleChoiceDialog can be called several times
Replies: 6
Views: 2398

wxSingleChoiceDialog can be called several times

Hi All, I discovered problem with "mmex" project on Ubuntu Linux 11.10 and 12.04 64-bit only. It used wx 2.8.11. Same issue after upgdade wxWidgets to version 2.8.12. Problem: Parent windows not disabled then, for example, wxSingleChoiceDialog started. As result new window may be started several tim...
by maximand
Tue May 15, 2012 10:15 am
Forum: Platform Related Issues
Topic: problem installing wxWidgets in Ubuntu 12.04
Replies: 12
Views: 9512

Re: problem installing wxWidgets in Ubuntu 12.04

Code: Select all

sudo apt-get install libwxgtk2.8-dev libwxgtk2.8
That working and enough to compile project with which I work.