Search found 2520 matches

by PB
Wed Sep 30, 2020 3:55 pm
Forum: C++ Development
Topic: SetFont for whole application
Replies: 2
Views: 71

Re: SetFont for whole application

I do not think you can change the font for the whole application. However, you can easily change the font for a window and all its current children, grandchildren, and so on even after they have been created; see OnChangeFont() and SetFontInclChildren() in the code below. #include <wx/wx.h> #include...
by PB
Wed Sep 30, 2020 3:32 pm
Forum: C++ Development
Topic: what does id, lastId do int functions(Bind, Connect)
Replies: 1
Views: 50

Re: what does id, lastId do int functions(Bind, Connect)

As you correctly deduced, it means that the event handler will handle all events with a given event type where event id value is between id and lastId (inclusive). I.e., Bind(wxEVT_BUTTON, &MyDialog::OnButton, this, 10000, 20000); would be called for a button click for any button in MyDialog with an...
by PB
Mon Sep 28, 2020 1:39 pm
Forum: Compiler / Linking / IDE Related
Topic: From macOs to Windows
Replies: 1
Views: 72

Re: From macOs to Windows

The official documentation is here https://docs.wxwidgets.org/trunk/plat_msw_install.html#msw_build_apps I have posted MSVC specific info here https://forums.wxwidgets.org/viewtopic.php?f=19&t=46700#p196105 where generally the only thing missing is that you need to set SubSystem to "Windows" in Link...
by PB
Sat Sep 26, 2020 7:26 am
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 202

Re: Copy-paste from closed editor

Sorry, I do not use Linux myself, I am just aware of the method. I assume you read the notes and did everything (i.e., have non-primary selection, checking the return value of Flush()). Did you try the bundled clipboard sample and used File / Flush the Clipboard to see if it misbehaves as well on yo...
by PB
Fri Sep 25, 2020 9:37 pm
Forum: C++ Development
Topic: Is wxGrid Incomplete?
Replies: 8
Views: 169

Re: Is wxGrid Incomplete?

There have been significant changes to wxGrid code since 3.1.3 and even 3.1.4 was released, see e.g.


I am not saying the issue you have is fixed by them but it may be worth giving the git master a try.
by PB
Fri Sep 25, 2020 7:21 pm
Forum: C++ Development
Topic: Copy-paste from closed editor
Replies: 9
Views: 202

Re: Copy-paste from closed editor

Do you use wxClipboard::Flush() in your code?
https://docs.wxwidgets.org/trunk/classw ... 33f291f932
by PB
Tue Sep 22, 2020 1:00 pm
Forum: C++ Development
Topic: How can I add bitmap to dialog?
Replies: 1
Views: 67

Re: How can I add bitmap to dialog?

If the bitmap is relatively small and you do not need to scale it, I recommend taking a look at wxStaticBitmap control.
by PB
Tue Sep 22, 2020 6:08 am
Forum: Compiler / Linking / IDE Related
Topic: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks
Replies: 4
Views: 716

Re: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks

No such copying should be ever needed.

The build log indicates that C::B looks for the libraries in its bundled compiler folder instead of the MSYS folder?

You either did not follow my guide or you set something in the global C::B settings that messes with the specific compiler / project settings.
by PB
Sun Sep 20, 2020 6:05 pm
Forum: Compiler / Linking / IDE Related
Topic: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks
Replies: 4
Views: 716

Re: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks

Did you run those commands as a batch file as stated in the guide, which are also available here ? You should see the actual build output above the "Press any key to continue . . ." line BTW, if you have CPU with at least 4 cores and an SSD, I strongly suggest you use the "parallel" versions of the ...
by PB
Wed Sep 16, 2020 4:33 pm
Forum: C++ Development
Topic: wxGrid display large data
Replies: 6
Views: 162

Re: wxGrid display large data

What actually takes the those 2 seconds (or really 20?!) during wxGrid initialization, it certainly should not be anything in wxGrid itself, it must be the data loading? BTW, in addition to generic Freeze()/Thaw() methods, there is wxGrid-specific wxGridUpdateLocker, see https://docs.wxwidgets.org/t...
by PB
Tue Sep 15, 2020 5:44 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake MT compiler option instead of the MD [SOLVED]
Replies: 3
Views: 144

Re: cmake MT compiler option instead of the MD [SOLVED]

Only few of CMake build options are documented.

I recommend using CMake GUI to explore what options are available on your platform.
by PB
Mon Sep 14, 2020 9:03 am
Forum: General Development
Topic: licence de wxWidgets et ses obligations
Replies: 13
Views: 301

Re: licence de wxWidgets et ses obligations

AFAIK, wxWidgets uses its own licence, which is basically modified LGPL. In other words, you do not have to pay, regardless if your application is free or commercial. You also do not have to publish the source of your application. See http://wxwidgets.org/docs/faq/general/#licence I strongly recomme...
by PB
Thu Sep 10, 2020 7:06 pm
Forum: C++ Development
Topic: wxWidgets and a USB HID device
Replies: 2
Views: 153

Re: wxWidgets and a USB HID device

How do you access the GUI elements (wxFrame, wxTextCtrl, etc.) from the worker thread? Just to make sure you know this: anything GUI-related must be accessed only from the main thread aka the GUI thread (i.e., the thread in which wxWidgets were initialized). If you need to set the GUI from the worke...
by PB
Thu Sep 10, 2020 7:02 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake MT compiler option instead of the MD [SOLVED]
Replies: 3
Views: 144

Re: cmake MT compiler option instead of the MD

Did you try setting option wxBUILD_USE_STATIC_RUNTIME to ON?
by PB
Wed Sep 09, 2020 8:56 am
Forum: C++ Development
Topic: How to specify format for wxAutomationObject date property
Replies: 2
Views: 79

Re: How to specify format for wxAutomationObject date property

Do you really receive the property as wxVariant with type "string" and not "datetime"? If the Outlook property type is Date, should it not be returned as OLEVARIANT with VT_DATE? If so, wxConvertOleToVariant() should convert it correctly (the function does not handle VT_FILETIME), you could debug wh...