Search found 2057 matches

by PB
Mon Oct 14, 2019 7:39 pm
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 156

Re: Is wxListCtrl crossplatform?

I do not think he is ignoring you. Vadim is just extremely busy. Additionally, adding a new feature for all platforms may not be easy. Can you test it on MSW, OSX, and Linux (and Qt)? I have added only a bit here and there for MSW only and even that was often surprisingly difficult, just making sure...
by PB
Sun Oct 13, 2019 1:05 pm
Forum: C++ Development
Topic: own Popup for wxcomboctrl (wxPanel)
Replies: 3
Views: 76

Re: own Popup for wxcomboctrl (wxPanel)

TBH, I think the code you posted is not good for other people to spot an error. It misses important parts and/or has a lot of irrelevant ones.

Is it really that difficult to prepare the most basic, preferably compilable, code manifesting the issue?
by PB
Sun Oct 13, 2019 9:53 am
Forum: Platform Related Issues
Topic: Warning C28251: Inconsistent annotation for 'WinMain'
Replies: 4
Views: 116

Re: Warning C28251: Inconsistent annotation for 'WinMain'

I see the warning (it is IntelliSense warning, not a build one) as well. If you google the warning , you will find what causes and how to fix it. I will report it, we will see if it is a worthy a fix (MSVC-specific WinMain?) or just a warning suppression. JFYI, building this simple application #incl...
by PB
Sun Oct 13, 2019 9:50 am
Forum: C++ Development
Topic: '&': illegal operation on bound member function expression
Replies: 5
Views: 84

Re: '&': illegal operation on bound member function expression

I strongly suggest using Bind() instead of Connect(). Connect() is de-facto deprecated, the only reason it is not deprecated officially is that lots of old code and even code produced by RAD tools still has it. Not only is Connect() using an ugly cast, it is also error-prone to accidentally using a ...
by PB
Fri Oct 11, 2019 2:50 pm
Forum: C++ Development
Topic: Using GetSizer and Size Event Handler to resize a drawing
Replies: 3
Views: 87

Re: Using GetSizer and Size Event Handler to resize a drawing

In the paint handler, use GetClientRect() to get the client window rectangle (for the panel it is the same as the window size, for frame it would exclude e.g. its caption bar and frame around it) as wxRect, use wxRect's methods to obtain the coordinates of its corner and draw the two lines using tho...
by PB
Fri Oct 11, 2019 6:51 am
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 157

Re: itemcoloring listview

As I told you before, I do not think you can have this with wxListCtrl. You either need to create your own control; or, if you do not mind that it looks a bit odd AND does not have keyboard support etc., you could try displaying the items using wxHtmlWindow instead of wxListCtrl, laying the items wi...
by PB
Thu Oct 10, 2019 6:57 pm
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 157

Re: itemcoloring listview

This thread shows how to colour individual items (MSW only, the best version of the code is in the last post), was it of no help?
viewtopic.php?f=1&t=46088&p=192585
by PB
Thu Oct 10, 2019 6:54 pm
Forum: C++ Development
Topic: Huge wxButtons in high DPI mode
Replies: 6
Views: 118

Re: Huge wxButtons in high DPI mode

by PB
Thu Oct 10, 2019 6:24 pm
Forum: C++ Development
Topic: Huge wxButtons in high DPI mode
Replies: 6
Views: 118

Re: Huge wxButtons in high DPI mode

doublemax, will you report it or should I? I think this was introduced with changes related to Per Monitor V2 DPI Awareness. EDIT I have dual screen setup where my primary screen is at 125% while the other one is at default 100%. The size of the buttons also depends on which screen is the executable...
by PB
Thu Oct 10, 2019 6:12 pm
Forum: C++ Development
Topic: Huge wxButtons in high DPI mode
Replies: 6
Views: 118

Re: Huge wxButtons in high DPI mode

I cannot confirm that notmassivebuttons.png wxWidgets: freshly checked out (9e8352b) Win 10: 1903 (build 18362.388) exe built with MSVS 2019, DPI Awareness set to High DPI aware Resolution: 2560x1440, scaling at 125 % Can you check out with today's master? I have been used a couple days old ones and...
by PB
Thu Oct 10, 2019 2:14 pm
Forum: C++ Development
Topic: itemcoloring listview
Replies: 9
Views: 157

Re: itemcolorin listview

This works only in the report view (wxLC_REPORT), are you using it?
by PB
Sun Oct 06, 2019 2:28 pm
Forum: Compiler / Linking / IDE Related
Topic: Filefn.h error during Build
Replies: 7
Views: 158

Re: Filefn.h error during Build

Is there a reason why are you using classical MinGW? It has been known to have issues with wxWidgets (or vice versa) for long time.

wxWidgets do not use it for official builds either. If you do not need GCC 8.2 and 8.1 would be OK, I would suggest using mingw-w64 instead of classical MinGW.
by PB
Sun Oct 06, 2019 12:00 pm
Forum: C++ Development
Topic: Diff of wxDateTime::Now() & wxDateTime::UNow() except precision
Replies: 7
Views: 114

Re: Diff of wxDateTime::Now() & wxDateTime::UNow() except precision

The issue can be also easily reproduced like this, using Win32 API for comparison. #include <wx/wx.h> class MyApp : public wxApp { public: bool OnInit() { const wxDateTime now(wxDateTime::Now()); const wxDateTime unow(wxDateTime::UNow()); SYSTEMTIME localTime, systemTime; ::GetLocalTime(&localTime);...
by PB
Sat Oct 05, 2019 4:35 pm
Forum: Compiler / Linking / IDE Related
Topic: VS Code (or Eclipse) / Build and Link "Hello world" with binaries ?
Replies: 3
Views: 121

Re: VS Code (or Eclipse) / Build and Link "Hello world" with binaries ?

I have never used VS Code, but using this tutorial and good old trial and error method; I was able to build and debug a wxWidgets test app. Intellisense seemed to be working properly as well. I am not sure if this is the proper way though, so it may be the blind leading the blind situation here. I u...
by PB
Sat Oct 05, 2019 7:42 am
Forum: Compiler / Linking / IDE Related
Topic: VS Code (or Eclipse) / Build and Link "Hello world" with binaries ?
Replies: 3
Views: 121

Re: VS Code (or Eclipse) / Build and Link "Hello world" with binaries ?

First, the only situation when you need to rename setup0.h to setup.h is when you are building wxWidgets obtained from GitHub sources (setup.h is not provided there). So, YOU do not rename the file. I think you might have confused renaming with including a build specific setup.h. There is an officia...