Search found 79 matches
- Mon Mar 29, 2021 4:58 pm
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
Re: wxNumberFormatter::ToString
@rando thank you for your information. Unfortunatly fmt lib has a bug. https://github.com/fmtlib/fmt/issues/1392 However, I made a workaround code. int precision = 2; wxString s = fmt::format(std::locale("en_IN"), "{:L}", static_cast<int>(value)) + wxString(fmt::format("{:.{...
- Wed Mar 24, 2021 9:38 am
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
Re: wxNumberFormatter::ToString
I hate to sound like a broken record, but for the third time: wxNumberFormatter does not use locale-specific number grouping, adding this feature was the topic of the unmerged pull request I linked in my very first post in this thread. It is obvious that wxNumberFormatter is not working as desired....
- Wed Mar 24, 2021 7:40 am
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
Re: wxNumberFormatter::ToString
you claimed your pure Win32 code unexpectedly returned "3;0" instead of "3;2;0". The code returned to me what is expected. My locale is not Indian. I'm trying to help an Indian guy. Initially my question is: Is any way to format numbers using wxNumberFormatter::ToString for en_I...
- Tue Mar 23, 2021 6:47 pm
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
Re: wxNumberFormatter::ToString
My problem that this code returns 123456.89 instead 1 23 456.89 in case if en_IN locale
Code: Select all
int style = wxNumberFormatter::Style_WithThousandsSep;
wxString s = wxNumberFormatter::ToString(123456.89, 2, style);
- Tue Mar 23, 2021 2:48 pm
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
Re: wxNumberFormatter::ToString
This piece of code returns me "3;0" char buffer[255]; LCID lc = GetSystemDefaultLCID(); GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, buffer, sizeof(buffer)); I expect a value "3;2;0" for the Indian locale. If it is this value, then I can apply my own formatting based on ...
- Tue Mar 23, 2021 1:05 pm
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
Re: wxNumberFormatter::ToString
Hi, Can you show some code? Thank you. int style = wxNumberFormatter::Style_WithThousandsSep; wxString s = wxNumberFormatter::ToString(value, precision, style); if (currency) { s.Replace(os_group_separator(), "\t"); s.Replace(wxNumberFormatter::GetDecimalSeparator(), "\x05"); s....
- Tue Mar 23, 2021 12:22 pm
- Forum: C++ Development
- Topic: wxNumberFormatter::ToString
- Replies: 12
- Views: 1805
wxNumberFormatter::ToString
Hi there. Is any way to format numbers using wxNumberFormatter::ToString for en_IN locale? https://user-images.githubusercontent.com/65050316/82136219-e0e02880-97d0-11ea-9b25-36264b44a38f.jpg I have as a result that the group separators disappear. For other locales, everything is fine. rupie.png PS ...
- Fri May 01, 2020 9:38 pm
- Forum: Platform Related Issues
- Topic: icon size on MAC
- Replies: 7
- Views: 1751
Re: icon size on MAC
I've used this instructions https://github.com/moneymanagerex/moneymanagerex/blob/master/BUILD.md#macos-with-homebrew but exclude brew install wxmac gettext. I've installed wx3.1.3 and gettext from source code. As result this two command give me a package of my project: cmake -DCMAKE_BUILD_TYPE=Rele...
- Fri May 01, 2020 3:27 pm
- Forum: Platform Related Issues
- Topic: icon size on MAC
- Replies: 7
- Views: 1751
Re: icon size on MAC
I have only MAC Air (2019) for tests. I don't know what is the display are there.
I don't know even any IDE for this platform. I can't build any tests.
I am using VS2017 on Windows.
I don't know even any IDE for this platform. I can't build any tests.
I am using VS2017 on Windows.
- Fri May 01, 2020 6:34 am
- Forum: Platform Related Issues
- Topic: icon size on MAC
- Replies: 7
- Views: 1751
Re: icon size on MAC
The key is already there.
- Thu Apr 30, 2020 9:31 pm
- Forum: Platform Related Issues
- Topic: icon size on MAC
- Replies: 7
- Views: 1751
icon size on MAC
Dear wxGuru() • wxWidgets 3.1.3 (wxMSW 10.0) win.PNG The same code on MAC 10.15. The visible area is 16x16 but icon behind is 24x24. mac_ico.png …. long style = wxTB_FLAT | wxTB_NODIVIDER; toolBar_ = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style, "ToolBar"); toolBar...
- Sun Apr 26, 2020 4:47 pm
- Forum: Platform Related Issues
- Topic: wxRichToolTip on MAC is transparent
- Replies: 3
- Views: 983
- Sun Apr 26, 2020 4:18 pm
- Forum: Platform Related Issues
- Topic: wxRichToolTip on MAC is transparent
- Replies: 3
- Views: 983
Re: wxRichToolTip on MAC is transparent
Sample with tip.SetBackgroundColour(wxColour(255,255,0));
- Sun Apr 26, 2020 4:07 pm
- Forum: Platform Related Issues
- Topic: wxRichToolTip on MAC is transparent
- Replies: 3
- Views: 983
wxRichToolTip on MAC is transparent
Hello. I've created the following function to draw tool tip in case if fields of my app dialogues contains an invalid value. tip.SetBackgroundColour(...) has been added specially for MAC. But it does not help. It working only if some colour a la wxColour(255,255,0) inserted. But in that case it look...
- Mon Apr 20, 2020 8:41 pm
- Forum: C++ Development
- Topic: looking for wxTextInputStream replacement for binary files
- Replies: 2
- Views: 756
Re: looking for wxTextInputStream replacement for binary files
Great. It's working. Thank you very much.