Search found 382 matches

by Widgets
Sun Feb 02, 2020 3:52 am
Forum: C++ Development
Topic: wxListCtrl ->EnableAlternateRowColours fails
Replies: 9
Views: 298

Re: wxListCtrl ->EnableAlternateRowColours fails

Looking at the 3.1.2 listctrl sample has me wondering though why that might be. - FWIW, I am not using any icons in the report view and - Selecting a virtual view and it also shows icons and I can toggle the alternate line background coloring. So I don't understand why having icons has any influence...
by Widgets
Sat Feb 01, 2020 10:43 pm
Forum: C++ Development
Topic: wxListCtrl ->EnableAlternateRowColours fails
Replies: 9
Views: 298

Re: wxListCtrl ->EnableAlternateRowColours fails

Guess I did not read it carefully enough :-(
Is there any reason it must have both and why would the code only confirm one?
by Widgets
Sat Feb 01, 2020 9:49 pm
Forum: C++ Development
Topic: wxListCtrl ->EnableAlternateRowColours fails
Replies: 9
Views: 298

wxListCtrl ->EnableAlternateRowColours fails

Running wxWidgets 3.1.2 compiled with MSVC 2019 static 32-bit. Calling EnableAlternateRowColours fails with an assert in src\common\listctrlcmn.cpp @ line #222 wxASSERT(HasFlag(wxLC_VIRTUAL)); The list control has the wxLC_REPORT flag set and the documentation for 3.1.2 states This method can only b...
by Widgets
Sat Jan 04, 2020 3:41 am
Forum: General Development
Topic: Using Catch2 UT framework for app testing
Replies: 7
Views: 419

Re: Using Catch2 UT framework for app testing

My latest tests using the latest code for wxWidgets from Github show no problems with hanging at all. The 32-bit debug version compiled & ran to completion without a hitch. It still shows piles of memory leak though. As well, a very cursory check shows that a lot more of the test have been ported to...
by Widgets
Thu Jan 02, 2020 9:51 pm
Forum: General Development
Topic: Using Catch2 UT framework for app testing
Replies: 7
Views: 419

Re: Using Catch2 UT framework for app testing

Eventually I will get there and report back.
But right now, getting things at least sort-of-working will take precedence :wink:
by Widgets
Thu Jan 02, 2020 5:12 pm
Forum: General Development
Topic: Using Catch2 UT framework for app testing
Replies: 7
Views: 419

Re: Using Catch2 UT framework for app testing

What I have done: Download the wxWidgets 3.1.2 package for Windows Install it all and build my libraries - mainly for statically linked 32-bit apps. Root for the wxWidgets 3.1.2 tree: D:\MSVC2019\wxWidgets-3.1.2\ Cd to the directory D:\MSVC2019\wxWidgets-3.1.2\tests Open the .sln file test_gui_vc15....
by Widgets
Thu Jan 02, 2020 3:59 pm
Forum: General Development
Topic: Using Catch2 UT framework for app testing
Replies: 7
Views: 419

Re: Using Catch2 UT framework for app testing

The best way to start something with wxWidgets is to copy the appropriate sample folder, strip it and then add your own code. I would guess that it is the same in your case. Well, the 'test' tree is quite large, but if that is the only way ..... Well, does it finish without any assertions or crash?...
by Widgets
Wed Jan 01, 2020 12:04 am
Forum: General Development
Topic: Using Catch2 UT framework for app testing
Replies: 7
Views: 419

Using Catch2 UT framework for app testing

Although I have used some unit tests with cppUnit before, I just came across Catch2 and the test samples in the wxWidgets source tree. After reading the recommended how-to-write-unit-tests.md, and compiling and running the GUI test sample, I still have some very basic questions about how I would go ...
by Widgets
Thu Dec 12, 2019 7:30 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets + Windows + CMake
Replies: 9
Views: 866

Re: wxWidgets + Windows + CMake

Hi, First of all you don't need to use anything to build the samples. Every sample directory contains the project file which you can open and build from. They are located inside wxWidgets\samples\{minimal} as minimal.vc{X}. Second - you didn't clone the sources correctly. You should be using: git c...
by Widgets
Thu Dec 12, 2019 6:33 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets + Windows + CMake
Replies: 9
Views: 866

Re: wxWidgets + Windows + CMake

I've run into the same issue as the OP Using the provided sln file for 3.1.2, I have been able to build the libraries I want, but I also wanted to compile all of the samples. These are not part of the 3.1.2 sln. Rather than trying to build a new project for all of the samples within the given sln fi...
by Widgets
Thu Dec 05, 2019 2:45 am
Forum: Platform Related Issues
Topic: Mint & CMAKE & platform.h "#if with no expression"
Replies: 4
Views: 245

Re: Mint & CMAKE & platform.h "#if with no expression"

What is the result of doing, in a terminal: wx-config --cxxflags --libs ....@Xeon-Mint-19:~$ wx-config --cxxflags --libs -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -L/usr/lib/x86_64-linux-gnu -pthread -lwx_g...
by Widgets
Wed Dec 04, 2019 9:16 pm
Forum: Platform Related Issues
Topic: Mint & CMAKE & platform.h "#if with no expression"
Replies: 4
Views: 245

Re: Mint & CMAKE & platform.h "#if with no expression"

3.1.3 might be possible, but more work.
Was there a major change in platform.h?? surely others must have used CMake before this?

IIRC, the options were ../configure --with-gtk --disable-shared --with-zlib=$HOME/wxWidgets-3.1.2/zlib
by Widgets
Wed Dec 04, 2019 8:12 pm
Forum: Platform Related Issues
Topic: Mint & CMAKE & platform.h "#if with no expression"
Replies: 4
Views: 245

Mint & CMAKE & platform.h "#if with no expression"

I am trying to compile a project (wxWidgets 3.1.2) using Cmake under Mint 19.2 and I keep getting a number of error "#if with no expression" for the line #if wxUSE_UNICODE in platform.h and that is a show stopper Cmake's 'Configure' & 'Generate' seem happy enough, aside from a comment about a policy...
by Widgets
Wed Oct 23, 2019 9:47 pm
Forum: C++ Development
Topic: Multi-monitor puzzle
Replies: 8
Views: 640

Re: Multi-monitor puzzle

ONEEYEMAN wrote:
Wed Oct 23, 2019 9:01 pm
Hi,
Is there something in the BIOS which will configure which monitor will be primary?

Thank you.
No, nothing; it is a Windows construct/concept.
There seems to be some sort of ordering, but I don't know if it is the BIOS or some lower level of Windows.
by Widgets
Wed Oct 23, 2019 8:37 pm
Forum: C++ Development
Topic: Multi-monitor puzzle
Replies: 8
Views: 640

Re: Multi-monitor puzzle

I have tried tracing into the code but cannot see where or why I do not get the answers I expected, nor can I resolve in my own mind, why what I do get is, in fact, correct. There seem to be other weird (read: unexpected) things happening with my screens/monitors. My graphics outputs are from 2 on-b...