Search found 4193 matches

by PB
Fri Feb 19, 2021 3:19 pm
Forum: C++ Development
Topic: MDIChildFrames not displaying properly
Replies: 10
Views: 976

Re: MDIChildFrames not displaying properly

Yeah I started with wxID_ANY but changed it so that at least the windows would have unique id's. When using wxID_ANY, all windows will have unique IDs: wxID_ANY just means that wxWidgets will create and assign the IDs. Using rand is a bad idea as you can generate an ID clashing with wxWidgets one, ...
by PB
Fri Feb 19, 2021 12:06 pm
Forum: C++ Development
Topic: What is the right way to close a frame in wxWidgets
Replies: 47
Views: 26299

Re: What is the right way to close a frame in wxWidgets

Or you can just let MSVS project wizard create an empty Windows application and use this guide to add wxWidgets to it:
viewtopic.php?f=19&t=46700#p196105
by PB
Tue Feb 16, 2021 6:20 pm
Forum: C++ Development
Topic: Need Help Starting Nine Men's Morris Project
Replies: 6
Views: 762

Re: Need Help Starting Nine Men's Morris Project

I am not sure how much help should students get, but FWIW here is a simple code that allows to add circles with left mouse button down; draws the circles; and when the right mouse button is pressed, checks if the mouse cursor was inside a circle. The code is optimized for brevity and readability, it...
by PB
Tue Feb 16, 2021 5:02 pm
Forum: C++ Development
Topic: Need Help Starting Nine Men's Morris Project
Replies: 6
Views: 762

Re: Need Help Starting Nine Men's Morris Project

I think in the sample PB linked, on the chess board, there is some functionality like this because I don't see any visible buttons but when you click on a square a correct function is linked/called to calculate the location the mouse clicked. In the event example... First, in the ChessBoard constru...
by PB
Mon Feb 15, 2021 7:05 pm
Forum: C++ Development
Topic: Need Help Starting Nine Men's Morris Project
Replies: 6
Views: 762

Re: Need Help Starting Nine Men's Morris Project

FWIW, the bundled event sample also has a simple custom drawn chessboard with some mouse handling, one can easily build and run the sample.

See also https://github.com/wxWidgets/wxWidgets/ ... sboard.cpp

Disclaimer: I wrote that part of the code in the sample.
by PB
Thu Feb 11, 2021 12:45 pm
Forum: Compiler / Linking / IDE Related
Topic: wxGLAttributes not declared
Replies: 4
Views: 3227

Re: wxGLAttributes not declared

I never used OpenGL and I do not know much about CMake but may be you are missing OpenGL library ( gl , should be listed first with MinGW) in the list of required components here: find_package(wxWidgets REQUIRED COMPONENTS net core base) However, a declaration error is a compiler error not a linker ...
by PB
Thu Feb 11, 2021 12:38 pm
Forum: C++ Development
Topic: wxMenu attached to a wxMenuBar
Replies: 14
Views: 1001

Re: wxMenu attached to a wxMenuBar

Back to menus, i feel the inhability to copy, hide, and "move" them around like a .... discrepancy in the general wxWidgets "free-to-do-things feeling" FWIW, I see no discrepancy here. One cannot copy any UI elements such as menus, toolbars, controls, top-level windows, or sizer...
by PB
Mon Feb 08, 2021 8:54 pm
Forum: Compiler / Linking / IDE Related
Topic: Issue with Codelite 14.0.4 on Windows
Replies: 10
Views: 16521

Re: Issue with Codelite 14.0.4 on Windows

However, while this makes sense I am still not sure it is supposed to work like this when no one else has had a problem with how it works. I suspect the behavior with gcc 7.3 is different, and Codelite documentation still sticks with advising the use of it, and not gcc 8.1.0 This has nothing to do ...
by PB
Mon Feb 08, 2021 8:08 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and codelite build problem
Replies: 38
Views: 65188

Re: wxWidgets and codelite build problem

You can't always have a fully static build, as Windows CRT can't always be legally linked statically. I was not talking about Windows libraries, those are always available on a Windows computer. I meant not requiring any wxWidgets (e.g., wxbase314u_gcc_custom.dll and wxmsw314u_core_gcc_custom.dll )...
by PB
Mon Feb 08, 2021 7:50 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and codelite build problem
Replies: 38
Views: 65188

Re: wxWidgets and codelite build problem

The static build has one advantage: You do not need to ship any DLLs with your executable at all. Actually, it has two advantages: As only the used library code is linked in, the resulting size of your application installation is usually smaller then when shipping executable + DLLs. To have a true s...
by PB
Mon Feb 08, 2021 7:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Issue with Codelite 14.0.4 on Windows
Replies: 10
Views: 16521

Re: Issue with Codelite 14.0.4 on Windows

Hi Eran, as I wrote above, wx-config seems to use the string passed in wxcfg to find the build.cfg file, but NOT when assembling LIBDIRNAME where only the default values are used: LIBDIRNAME is used in both build-specific include path and the library path. The missing part in the folder name (sans t...
by PB
Mon Feb 08, 2021 7:15 pm
Forum: Compiler / Linking / IDE Related
Topic: Issue with Codelite 14.0.4 on Windows
Replies: 10
Views: 16521

Re: Issue with Codelite 14.0.4 on Windows

FWIW, I have reported the issue with build\msw\config file:
https://github.com/eranif/codelite/issues/2659

I reported a bug in wx-config on CodeLite forums year ago, never got any response there. OTOH, my recent fix to their wx-config was silently merged.
by PB
Mon Feb 08, 2021 3:24 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and codelite build problem
Replies: 38
Views: 65188

Re: wxWidgets and codelite build problem

All the DLLs an application needs (e.g., wxWidgets from WXWIN/lib/gcc_dll folder, compiler's from the mingw bin folder) must be somewhere where the application can find them. For non-system libraries, this is usually done by copying them to the folder where the executable is. This has nothing to do ...
by PB
Mon Feb 08, 2021 1:23 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and codelite build problem
Replies: 38
Views: 65188

Re: wxWidgets and codelite build problem

Firstly, CodeLite uses for wxWidgets projects wx-config, which, assuming you are using default setting with self-built wxWidgets, should work out of the box and add the correct include and library paths as well as the libraries themselves. I would just create a wxWidgets project with CodeLite, leavi...
by PB
Mon Feb 08, 2021 8:05 am
Forum: General Development
Topic: chm helper font too small with hdpi
Replies: 9
Views: 7259

Re: chm helper font too small with hdpi

Microsoft HTML Help Viewer probably does not support HiDPI that well. You can either just zoom the document with Ctrl+MouseWheel or set "Ignore font sizes specified on webpages" in its Options / Internet Options / Accessibility.

You can also try an alternate CHM viewer.