Search found 116 matches

by tomay3000
Wed Apr 03, 2019 3:27 am
Forum: C++ Development
Topic: Inserting like over 1 million records in a wxDataViewListCtrl will make the GUI stuck forever!
Replies: 2
Views: 66

Inserting like over 1 million records in a wxDataViewListCtrl will make the GUI stuck forever!

Hello, I have a simple application that loads Firebird database records and inserts them in a wxDataViewListCtrl . I have made a simple test to check that my application works as expected by filling that database with over 1 million records and tried again, this time the application GUI is completel...
by tomay3000
Sat Mar 30, 2019 8:47 pm
Forum: C++ Development
Topic: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?
Replies: 6
Views: 113

Re: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?

Yes indeed I forgot to call Layout() after each AddOperateur(). #-o
And thank you for fixing the vertical scrollbar problem, "Chapeau expression".
it seems that I have to learn more about scrolled windows.
by tomay3000
Sat Mar 30, 2019 3:57 pm
Forum: C++ Development
Topic: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?
Replies: 6
Views: 113

Re: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?

You're adding 3 items and there is enough room, so why should there be a horizontal scrollbar? Actually I am adding more than 3 (12), that's why the horizontal scrollbar should appear. If you want me to try it out, make the code compilable. Yes sure, please, and sorry about the previous code. This ...
by tomay3000
Sat Mar 30, 2019 2:46 pm
Forum: C++ Development
Topic: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?
Replies: 6
Views: 113

Re: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?

ONEEYEMAN wrote:
Sat Mar 30, 2019 5:15 am
Hi,
What is your wxWidgets version?
Can you try to add one more panel the scrolled window?

Thank you.
wx Version 3.1.2
I already added at least four items. It is just the scrollbars are not showing.
by tomay3000
Sat Mar 30, 2019 3:26 am
Forum: C++ Development
Topic: How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?
Replies: 6
Views: 113

How to get a wxScrolledWindow inside a wxDiloag to show its scrollbars?

Hello, I have sub-classed wxGenericProgressDialog to add more widgets on it using a loop. When a new item is added the dialog expands, and I have controlled it to expand no more than 3 item horizontally. The main window that holds these controls is a wxScrolledWindow inside the main dialog of course...
by tomay3000
Mon Mar 25, 2019 8:16 am
Forum: C++ Development
Topic: How to intercept a clipboard paste event and pass it to the associated validator?
Replies: 3
Views: 76

How to intercept a clipboard paste event and pass it to the associated validator?

Hello, I have an associated wxTextValidator and wxFloatingPointValidator for some wxTextCtrl . As the validator is only invoked for keystrokes, I want to add extra control for clipboard paste events. Where to intercept the paste event and pass the validation to the associated validator for validatio...
by tomay3000
Sun Mar 24, 2019 11:35 am
Forum: C++ Development
Topic: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?
Replies: 9
Views: 142

Re: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?

It worked but I had to take note and store the previous settings in a member string variable on application initialization: bool MyApp::OnInit() { if (!wxApp::OnInit()) { return false; } #ifdef __WXMSW__ const int cnDataSize = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTDATE, NULL, 0); TCHAR szL...
by tomay3000
Sat Mar 23, 2019 8:49 pm
Forum: C++ Development
Topic: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?
Replies: 9
Views: 142

Re: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?

it worked but the one in the wxCalendarCtrl that pops up is not affected.
Untitled3.png
Untitled3.png (6.26 KiB) Viewed 104 times
by tomay3000
Sat Mar 23, 2019 4:24 pm
Forum: C++ Development
Topic: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?
Replies: 9
Views: 142

Re: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?

(I assume you're working under Windows.) Yes, indeed. So the only way to change the format, is to set the format string yourself. If you always want "dd/mm/yyyy", it's easy: #include "commctrl.h" // ... DateTime_SetFormat( m_datePicker->GetHWND(), L"dd/MM/yyyy" ); Wait, what! Using the Windows API!...
by tomay3000
Sat Mar 23, 2019 3:28 am
Forum: C++ Development
Topic: How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?
Replies: 9
Views: 142

How to change the locale in app run-time so that a wxDatePickerCtrl will show the date for that locale?

Hello,
I want to change the locale in application run-time so that all of my wxDatePickerCtrls will show the date for that like "dd/mm/yyyy"?

Thank you in advance.
by tomay3000
Sat Mar 23, 2019 1:25 am
Forum: C++ Development
Topic: How to explicitly change the language of the predefined English words?
Replies: 2
Views: 86

Re: How to explicitly change the language of the predefined English words?

Thank you.

I have seen some applications using .ini files for this. and Now I understand that wxWidgets uses a different approach.
The question is how to compile them from .po to .mo (to use my own translations).

Thank you again.

Edit: Everything is in readme.txt. Sorry for that.
by tomay3000
Fri Mar 22, 2019 6:26 pm
Forum: C++ Development
Topic: How to explicitly change the language of the predefined English words?
Replies: 2
Views: 86

How to explicitly change the language of the predefined English words?

Hello,
I want to explicitly change the default English words like OK, Cancel, Yes, No... to the desired language even if I use an English OS.
Untitled2.png
Untitled2.png (6.12 KiB) Viewed 86 times
There are also words that are not in any system like the uploaded screenshots.
Untitled.png
Untitled.png (23.53 KiB) Viewed 86 times
Thank you.