Search found 72 matches

by maximand
Wed Apr 17, 2013 5:43 am
Forum: General Development
Topic: code refactoring with sed
Replies: 1
Views: 1500

code refactoring with sed

Hi All, I've created simple script (for windows) to remove any wxT() functions in a source files. It's for fully convertion the code to wx-2.9. for /R %%i in (*.cpp *.h) do sed -i "s/wxT([^)]*)/#&#/;/#wxT(/s/)#//;s/#wxT(//;s/.c_str()//g" %%i it replace any wxT(....) with #wxT(...)# then clear any #w...
by maximand
Sun Jan 13, 2013 1:44 pm
Forum: Component Writing
Topic: a simple calculator needed
Replies: 8
Views: 14705

Re: a simple calculator needed

I've created it by myself. It support only main operations like + - / * and () bool mmCalculator(wxString sInput, wxString& sOutput) { //TODO: Fix Non standart number format sInput.Replace(wxT(")("), wxT(")*(")); bool bResult = true; int a = sInput.Replace(wxT("("), wxT("(")); int b = sInput.Replace...
by maximand
Fri Jan 11, 2013 9:10 am
Forum: C++ Development
Topic: wxURL
Replies: 8
Views: 2109

Re: wxURL

Thank you!

You right.
I still don't understand why \0 needed.
by maximand
Thu Jan 10, 2013 10:01 pm
Forum: Platform Related Issues
Topic: wxValidator issue
Replies: 1
Views: 1017

wxValidator issue

wxValidator skip non Latin characters for digital wxTextCtrl fields. Look at the provided screenshot at right bottom corner. That field should accept only digits! That very old issue. Tested from wx-2.8.10 till wx-2.9.5 Screenshot provided for wxWidgets-2.9.5 (trunk) /samples/validate Validator demo...
by maximand
Thu Jan 10, 2013 8:47 pm
Forum: Platform Related Issues
Topic: wxSingleChoiceDialog can be called several times
Replies: 6
Views: 2398

Re: wxSingleChoiceDialog can be called several times

Thank you David,

Strange that it reproduced only with 64-x Ubuntu systems.
I'll check with trunk...

wx-2.9.5 working more better! Thanks!
by maximand
Thu Jan 10, 2013 8:36 pm
Forum: Platform Related Issues
Topic: wxSingleChoiceDialog can be called several times
Replies: 6
Views: 2398

Re: wxSingleChoiceDialog can be called several times

Now I reproduce this issue on Ubuntu 12.10 64-x
Just used wxWidgets-2.9.3/samples/aui
If auidemo application started, I can accsess main menu - about as many times as I wish even if previously runing dialogues does not closed.
Selection_004.png
by maximand
Thu Jan 10, 2013 8:01 pm
Forum: C++ Development
Topic: wxURL
Replies: 8
Views: 2109

Re: wxURL

Unstable mean that some times it work some time crashed (dump was very big and not provided). Results was OK. (May be you think that source code may be unstable :) ) I was looking for solution for several days. But as soon as I asked, and as soon as I found a solution. I think before you ask, could ...
by maximand
Thu Jan 10, 2013 7:31 pm
Forum: C++ Development
Topic: wxURL
Replies: 8
Views: 2109

Re: wxURL

That code seems working fine, will test #include <wx/sstream.h> int site_content(const wxString& sSite, wxString& sOutput) { int err_code = wxURL_NOERR; wxURL* url = new wxURL(sSite); err_code = url->GetError(); if (err_code == wxURL_NOERR) { url->GetProtocol().SetTimeout(10); // 10 secs wxInputStre...
by maximand
Thu Jan 10, 2013 6:35 pm
Forum: C++ Development
Topic: wxURL
Replies: 8
Views: 2109

wxURL

Could anybody please say what is wrong with this code? It unstable on Linux hosts int site_content(const wxString& sSite, wxString& sOutput) { int err_code = wxURL_NOERR; wxURL* url = new wxURL(sSite); err_code = url->GetError(); if (err_code == wxURL_NOERR) { url->GetProtocol().SetTimeout(10); // 1...
by maximand
Fri Jan 04, 2013 5:39 pm
Forum: C++ Development
Topic: How to let the wxTextCtrl can select all by "ctrl+a&quo
Replies: 4
Views: 1540

Re: How to let the wxTextCtrl can select all by "ctrl+a&quo

Thanks,

My suggestion:

Code: Select all

    if (wxGetKeyState(wxKeyCode('A')) && wxGetKeyState(WXK_CONTROL))
        tcSourceTxtCtrl_->SetSelection(-1, -1); //select all
    event.Skip();
by maximand
Fri Dec 21, 2012 5:15 pm
Forum: wxWidgets Development (Russian)
Topic: Validator русский и разочарование
Replies: 22
Views: 22303

Re: Validator русский и разочарование

SteelRat wrote:А в 2.9.х оно тоже есть?
Всё те же глюки (под Linux по крайней мере)
by maximand
Mon Dec 17, 2012 12:54 pm
Forum: wxWidgets Development (Russian)
Topic: Validator русский и разочарование
Replies: 22
Views: 22303

Re: Validator русский и разочарование

В дополнение к валидатору я приделал такую функцию (Провереро под Windows wx-2.8.12) wxTextCtrl textAmount_->Connect( wxEVT_CHAR, wxKeyEventHandler(mmTransDialog::OnKeyDown), NULL, this); ... void mmTransDialog::OnKeyDown(wxKeyEvent& event) { int key_code = event.GetUnicodeKey(); if (key_code > 57) ...
by maximand
Sun Dec 16, 2012 4:35 pm
Forum: wxWidgets Development (Russian)
Topic: Validator русский и разочарование
Replies: 22
Views: 22303

Re: Validator русский и разочарование

Народ, пора решить эту проблему, а то она тянется давно. Проблема уверен зарыта где-то там где char код при нажатии клавиши выводится. Там стоит ограничение,что если код >= 256 то возвращать 0. Тут то и проблема, видимо этот 0 воспринимается как true. Поэтому в линуксе навигация в wxTreeCtrl по русс...
by maximand
Sun Sep 23, 2012 5:52 pm
Forum: General Development
Topic: wx-2.9 or wx-2.8
Replies: 2
Views: 1322

Re: wx-2.9 or wx-2.8

Thank you David.
by maximand
Sun Sep 23, 2012 4:30 pm
Forum: General Development
Topic: wx-2.9 or wx-2.8
Replies: 2
Views: 1322

wx-2.9 or wx-2.8

I am one of developers of multiplatform application "Money Manager Ex". It's support MAC, Win and Lin.
Now code may be compiled with both wx-2.9 and wx-2.8.
Question: Do we need compatibility with the previous version of wx, or we can give it up?