Search found 72 matches

by maximand
Mon Feb 06, 2012 9:45 am
Forum: C++ Development
Topic: wxChoice and gettext
Replies: 5
Views: 1142

Re: wxChoice and gettext

No, that wouldn't change the behavior. You need something like this: wxArrayString choiceTypeStrings; choiceTypeStrings.Add(_("Withdrawal")); choiceTypeStrings.Add(_("Deposit")); choiceTypeStrings.Add(_("Transfer")); It worked. But I preferred code like you've suggested. wxArrayString choiceTypeStr...
by maximand
Sun Feb 05, 2012 6:07 pm
Forum: C++ Development
Topic: wxChoice and gettext
Replies: 5
Views: 1142

Re: wxChoice and gettext

Other words, it should be reverted to previous stage like that ?: wxString choiceTypeStrings[] = { _("Withdrawal"), _("Deposit"), _("Transfer") }; choiceType = new wxChoice( itemPanel, ID_CHOICE8, wxDefaultPosition, wxDefaultSize, 3, choiceTypeStrings, 0 );
by maximand
Sun Feb 05, 2012 5:52 pm
Forum: C++ Development
Topic: wxChoice and gettext
Replies: 5
Views: 1142

wxChoice and gettext

Hi folks, I can't solve the problem with wxChoice. I used several wxChoices with the same context. i've deside to move context to separate header. header: wxChoice* choiceStatus_; code: choiceStatus_ = new wxChoice( itemPanel7, ID_DIALOG_TRANS_STATUS, wxDefaultPosition, wxSize(110, -1), 5, trxStatus...
by maximand
Mon Jan 02, 2012 1:06 pm
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2119

Re: KeyEvent

doublemax wrote:Are you using the Unicode version of wxWidgets?
Yes, of course.
I'll check this issue under windows, but it will take a time.
by maximand
Mon Jan 02, 2012 6:30 am
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2119

Re: KeyEvent

Sory it was latter and I forget to provide details. I am using wxWidgets 2.8.11 and Ubuntu 11.XX. Another example: I have created validator textAmount_ = new wxTextCtrl( itemPanel7, ID_DIALOG_TRANS_TEXTAMOUNT, wxT(""), wxDefaultPosition, wxSize(110, -1), wxALIGN_RIGHT|wxTE_PROCESS_ENTER , doubleVali...
by maximand
Mon Jan 02, 2012 12:02 am
Forum: C++ Development
Topic: KeyEvent
Replies: 8
Views: 2119

KeyEvent

I have the code: bPayee_ = new wxButton( itemPanel7, ID_DIALOG_TRANS_BUTTONPAYEE, payeeName, wxDefaultPosition, wxSize(225, -1), 0 ); bPayee_->Connect( wxEVT_CHAR, wxKeyEventHandler(mmTransDialog::OnKeyDown), NULL, this); ... void mmTransDialog::OnKeyDown(wxKeyEvent& event) { wxSafeShowMessage(wxT("...
by maximand
Sun Jan 01, 2012 5:03 pm
Forum: C++ Development
Topic: wxDatePickerCtrl ignores SetBackgroundColour
Replies: 3
Views: 860

Re: wxDatePickerCtrl ignores SetBackgroundColour

+2 :) ps my OS ubuntu pps I am newbee ppps I've provide example I've use all dpc_->SetBackgroundColour(mmColors::listDetailsPanelColor); dpc_->SetForegroundColour(mmColors::listDetailsPanelColor); dpc_->SetOwnBackgroundColour(mmColors::listDetailsPanelColor); dpc_->SetOwnForegroundColour(mmColors::l...
by maximand
Sun Nov 27, 2011 8:40 am
Forum: C++ Development
Topic: How to "Esc" in a wxTextCtrl?
Replies: 9
Views: 2021

Re: How to "Esc" in a wxTextCtrl?

my solution to avoid close window if ESC button pressed + EVT_BUTTON(wxID_CANCEL, mmTransDialog::OnCancel) + EVT_CHILD_FOCUS(mmTransDialog::changeFocus) END_EVENT_TABLE() + textNotes_ = new wxTextCtrl( itemPanel7, ID_DIALOG_TRANS_TEXTNOTES, + wxT(""), wxDefaultPosition, wxSize(225,80), wxTE_MULTILIN...
by maximand
Mon Nov 14, 2011 4:49 pm
Forum: Component Writing
Topic: a simple calculator needed
Replies: 8
Views: 14705

Re: a simple calculator needed

Auria wrote: Or just a parser you would write yourself.
Yes, I'll prefer parser if it created myself, but I am beginner in c++. I prefer transform available code to my needed. Can't write code from scratch.
It seems that there are no so simple calculators and I will write my.
Without parentheses, it's simple.
by maximand
Mon Nov 14, 2011 9:46 am
Forum: Component Writing
Topic: a simple calculator needed
Replies: 8
Views: 14705

a simple calculator needed

Hi,

Has anyone seen the code simple calculator?
I need to convert the simplest expression to a number.
For example 3+4+5,5 should be converted to 12,5
It's for personal financial app
http://sourceforge.net/projects/moneymanagerex/

Thanks
by maximand
Fri Nov 11, 2011 6:07 pm
Forum: C++ Development
Topic: wxSqlite3 tutorial
Replies: 13
Views: 5995

Re: wxSqlite3 tutorial

As well you can look at "Money Manager Ex" sourcecode http://sourceforge.net/projects/moneymanagerex/ I suppose that is most successful project is using wxSQLite3, it has GUI too. Hi, I am money manager ex developer. I am looking any help to code refactoring. that link useful for learning: http://w...