Search found 62 matches

by maximand
Tue Apr 30, 2019 5:26 am
Forum: Platform Related Issues
Topic: How to proper alighn widgets
Replies: 2
Views: 91

Re: How to proper alighn widgets

doublemax, thank you. We have implemented this hack: //Text field for name of day of the week wxSize WeekDayNameMaxSize(wxDefaultSize); for (wxDateTime::WeekDay d = wxDateTime::Sun; d != wxDateTime::Inv_WeekDay; d = wxDateTime::WeekDay(d+1)) WeekDayNameMaxSize.IncTo(GetTextExtent( wxGetTranslation(w...
by maximand
Mon Apr 29, 2019 7:01 am
Forum: Platform Related Issues
Topic: How to proper alighn widgets
Replies: 2
Views: 91

How to proper alighn widgets

Hello, I have an issue with dialog on Linux. Weekday name is displayed outside the transaction dialog's border And wxChoice widgets are smaller than other widgets in the transaction dialog: l1.PNG The same dialog on Windows OS looks nice w1.PNG The code: https://github.com/moneymanagerex/moneymanage...
by maximand
Mon Mar 04, 2019 3:41 pm
Forum: C++ Development
Topic: Date chooser for month and year
Replies: 7
Views: 275

Re: Date chooser for month and year

I've changed wxPanel to wxWindow. Now it's working. wxIMPLEMENT_DYNAMIC_CLASS(mmDateYearMonth, wxWindow); wxBEGIN_EVENT_TABLE(mmDateYearMonth, wxWindow) EVT_BUTTON(wxID_ANY, mmDateYearMonth::OnButtonPress) wxEND_EVENT_TABLE() mmDateYearMonth::mmDateYearMonth() { } mmDateYearMonth::mmDateYearMonth(wx...
by maximand
Mon Mar 04, 2019 2:10 pm
Forum: C++ Development
Topic: Date chooser for month and year
Replies: 7
Views: 275

Re: Date chooser for month and year

YearMonth.PNG I can't handle events. I've created this: Header: class mmDateYearMonth : public wxPanel { //wxDECLARE_DYNAMIC_CLASS(mmDateYearMonth); //wxDECLARE_EVENT_TABLE(); public: mmDateYearMonth(); mmDateYearMonth(wxWindow *parent); private: bool Create(wxWindow* parent, wxWindowID id); void O...
by maximand
Sun Mar 03, 2019 12:12 pm
Forum: C++ Development
Topic: Date chooser for month and year
Replies: 7
Views: 275

Re: Date chooser for month and year

@doublemax thank you for your step by step instruction.
I am afraid it would some issues with buttons and text box sizing but I'll try.
by maximand
Tue Feb 26, 2019 6:22 pm
Forum: C++ Development
Topic: Date chooser for month and year
Replies: 7
Views: 275

Re: Date chooser for month and year

I am looking for a code that can be adopted for my purposes.
Unfortunately, I don't understand generic calendar code.
by maximand
Sun Feb 24, 2019 10:19 am
Forum: C++ Development
Topic: Date chooser for month and year
Replies: 7
Views: 275

Date chooser for month and year

Hi everybody,

I am looking something like wxCalendarCtrl but I need only header for month and year selection.
Examples:
[ << < February 2019 > >> ] or [ < February 2019 > ]
Please advice.
by maximand
Sun Feb 24, 2019 10:13 am
Forum: Component Writing
Topic: a simple calculator needed
Replies: 8
Views: 12809

Re: a simple calculator needed

You can use it as you wish.
by maximand
Tue Mar 15, 2016 9:02 am
Forum: Platform Related Issues
Topic: Currency not Latin fields issue
Replies: 2
Views: 634

Re: Currency not Latin fields issue

Thank you Max,

The encoding for incorrect file is UTF-8 without BOM. If converted to UTF-8 it's working fine.
I'll try as well:

Code: Select all

#pragma execution_character_set("utf-8")
by maximand
Mon Mar 14, 2016 3:13 pm
Forum: Platform Related Issues
Topic: Currency not Latin fields issue
Replies: 2
Views: 634

Currency not Latin fields issue

I've discovered that the code: wxString s = wxString::Format(L"INSERT INTO CURRENCYFORMATS_V1 VALUES (2, '%s', '%s', '%s', '%s', '%s', '%s', '%s', 100, 1, '%s')" , "European euro", L"€", "", ".", " ", "", "", "EUR"); Working fine if placed, for example, in some_file.cpp https://cloud.githubuserconte...
by maximand
Sat Feb 15, 2014 2:40 pm
Forum: Platform Related Issues
Topic: webkitgtk
Replies: 2
Views: 1492

Re: webkitgtk

Thank you David. Got it configure:36656: checking for WEBKIT configure:36664: $PKG_CONFIG --exists --print-errors "$webkitgtk >= 1.3.1" Package webkit-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit-1.0.pc' to the PKG_CONFIG_PATH environment v...
by maximand
Sat Feb 15, 2014 12:08 pm
Forum: Platform Related Issues
Topic: webkitgtk
Replies: 2
Views: 1492

webkitgtk

Whats wrong? Ubuntu 12.10 sudo ldconfig sudo apt-get install webkitgtk-3.0 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libwebkitgtk-3.0-0' for regex 'webkitgtk-3.0' Note, selecting 'libwebkitgtk-3.0-0-dbg' for regex 'webkitgtk-3.0' Note, ...
by maximand
Wed Dec 04, 2013 2:50 pm
Forum: Platform Related Issues
Topic: wxSingleChoiceDialog can be called several times
Replies: 6
Views: 2193

Re: wxSingleChoiceDialog can be called several times

Thank you David,

That my mistake. I have another issue. From some wxDialog an wxGetSingleChoice started. Then I can't close it and can't select any entry untill parent window open.
by maximand
Thu Nov 28, 2013 8:43 am
Forum: Platform Related Issues
Topic: wxSingleChoiceDialog can be called several times
Replies: 6
Views: 2193

Re: wxSingleChoiceDialog can be called several times

Hi,

This bug returns back in wx3.0