Search found 1683 matches

by PB
Mon Sep 24, 2018 9:02 am
Forum: C++ Development
Topic: EventHandlers chain
Replies: 4
Views: 13

Re: EventHandlers chain

Well, to me it seems obvious that the event posting code in CloseDialog() is suspect. Are you sure handler is still valid at the time of processing the event?
by PB
Mon Sep 24, 2018 8:44 am
Forum: C++ Development
Topic: EventHandlers chain
Replies: 4
Views: 13

Re: EventHandlers chain

I believe you hardly find the better overview of event handling than the official one https://docs.wxwidgets.org/trunk/overview_events.html Is the error caused by the application being launched from the tray, i.e., it is not reproducible from the minimal sample? What unusual, event-wise, do you do i...
by PB
Mon Sep 24, 2018 8:39 am
Forum: Platform Related Issues
Topic: Issue with nested wxStaticBox on Linux.
Replies: 1
Views: 12

Re: Issue with nested wxStaticBox on Linux.

I would make sure the parents for individual controls are always correct. E.g., the controls in the wxStaticBox(Sizer) are its children and not children of the dialog.
by PB
Mon Sep 24, 2018 8:25 am
Forum: Compiler / Linking / IDE Related
Topic: VisualStudio 2017 v15.8.5 (vc141)
Replies: 2
Views: 21

Re: VisualStudio 2017 v15.8.5 (vc141)

It's possible that VS2017 is just too new for wx3.0.4. As I wrote in a recent similar thread, I could build wxWidgets 3.04 with MSVC 2017. However, I used MSVC v15.8.4 and the OP is also using the prebuilt libraries buit with MSVC older than 15.8.5 but I believe neither should make a difference. BT...
by PB
Sun Sep 23, 2018 7:12 pm
Forum: C++ Development
Topic: wxList sequential Append()
Replies: 6
Views: 56

Re: wxList sequential Append()

I dare to disagree with doublemax and suggest staying away from wxArray. Its documentation starts with The legacy dynamic array class, existing for compatibility only and NOT to be used in the new code. I believe that whenever possible, std containers are to be used. But if for some reason you canno...
by PB
Fri Sep 21, 2018 5:19 am
Forum: Compiler / Linking / IDE Related
Topic: Issue with Visual Studio 2017 15.8.4?
Replies: 9
Views: 145

Re: Issue with Visual Studio 2017 15.8.4?

I noticed that the project settings for the additional include directories referenced $(WXWIN)\lib\{type of build}\mswud? Foolish me, I always assumed include directories were for header files... Is this added to the additional include directories so that the compiler can find the wx object definit...
by PB
Wed Sep 19, 2018 8:01 pm
Forum: C++ Development
Topic: Problems with wxListCtrl in windows.
Replies: 3
Views: 66

Re: Problems with wxListCtrl in windows.

Sorry, but you did not address any of the questions asked in my previous post. The answers to those could have provided a hint what is wrong. The issue, i.e., the list ctrl not being repainted properly was pretty clear from the screenshot in the first post... I assume you provided all relevant code ...
by PB
Wed Sep 19, 2018 4:36 pm
Forum: C++ Development
Topic: WxListCtrl sortable
Replies: 5
Views: 80

Re: WxListCtrl sortable

The following example shows a simples way how to sort the list when clicking on a column. Please notice it has major flaws, such as there is no indicator showing by which column is the list sorted (I believe that listctrl sample shows how to add an image to the column header). The code could be also...
by PB
Wed Sep 19, 2018 12:13 pm
Forum: C++ Development
Topic: Problems with wxListCtrl in windows.
Replies: 3
Views: 66

Re: Problems with wxListCtrl in windows.

Does this happen without setting a custom font? If so, can you reproduce the issue (with setting the exact same font as in your app) in the list sample or perhaps the minimal example similar to e.g. one here ? Perhaps it is related to your application for some reason not using the theme manifest whi...
by PB
Tue Sep 18, 2018 6:21 pm
Forum: C++ Development
Topic: wxDateProperty spin button disappears in wxPropertyGrid
Replies: 10
Views: 59

Re: wxDateProperty spin button disappears in wxPropertyGrid

I can confirm this with git master head and Windows 10 (regular DPI) in the propgrid sample, changing the line to pg->SetPropertyAttribute( wxT("DateProperty"), wxPG_DATE_PICKER_STYLE, (long)wxDP_SPIN); If it can be reproduced it is a bug, however minor. So you should probably report it on...
by PB
Tue Sep 18, 2018 5:52 pm
Forum: C++ Development
Topic: PaintEvent-handler does not paint [SOLVED]
Replies: 7
Views: 122

Re: PaintEvent-handler does not paint [SOLVED]

If it stopped working just go back commit by commit (or if you use GIT as your VCS, do Git bisect) until you find where/when it broke. It appears that your code formatting somehow utterly broke when pasting on forum, it makes the code pretty difficult to follow... I would also make sure that the can...
by PB
Tue Sep 18, 2018 5:13 am
Forum: Compiler / Linking / IDE Related
Topic: Issue with Visual Studio 2017 15.8.4?
Replies: 9
Views: 145

Re: Issue with Visual Studio 2017 15.8.4?

Oops, I forgot to write that I tested only the default 32-bit build.
by PB
Mon Sep 17, 2018 5:21 pm
Forum: C++ Development
Topic: How to Stretch Bitmap into Parent Panel (wxWidgets Custom) [SOLVED]
Replies: 2
Views: 144

Re: How to Stretch Bitmap into Parent Panel (wxWidgets Custom) [SOLVED]

I think there are several issues with your code, the main is that you are probably not redrawing the panel when needed (i.e., in its paint event handler) and then lose the bitmap. E.g., here is a simple unoptimized example of implementing a panel that has a bitmap filling it (without maintaining the...
by PB
Mon Sep 17, 2018 9:42 am
Forum: Compiler / Linking / IDE Related
Topic: Issue with Visual Studio 2017 15.8.4?
Replies: 9
Views: 145

Re: Issue with Visual Studio 2017 15.8.4?

Can you reproduce the issue using the bundled minimal sample?

I could not with MSVC 15.8.4 (Express) with Debug configuration and Platform Toolset v141.

Go to advanced search