Search found 2939 matches

by PB
Wed Apr 14, 2021 4:01 pm
Forum: Platform Related Issues
Topic: Getting windows mousepointer icon = black square
Replies: 6
Views: 110

Re: Getting windows mousepointer icon = black square

I have updated the code to include some more information #include <wx/wx.h> #include <wx/msw/wrapwin.h> bool CreatewxBitmapFromCurrentCursor(wxBitmap& bitmap) { CURSORINFO ci{0}; ICONINFO ii{0}; ci.cbSize = sizeof(ci); if ( !::GetCursorInfo(&ci) || (ci.flags & CURSOR_SHOWING) == 0 ) { wxLogError("Co...
by PB
Wed Apr 14, 2021 9:55 am
Forum: Compiler / Linking / IDE Related
Topic: Debug wxWidgets classes
Replies: 3
Views: 61

Re: Debug wxWidgets classes

This may not be really related, but FWIW, wxWidgets ships with GDB pretty printer for some of its classes, including wxArrayString (I have never used it):
https://github.com/wxWidgets/wxWidgets/ ... b/print.py

The CodeLite question would probably be better asked on their forum.
by PB
Tue Apr 13, 2021 6:00 pm
Forum: Compiler / Linking / IDE Related
Topic: The easy and rapid method to start wxWidgets project in visual studio 2019
Replies: 10
Views: 165

Re: The easy and rapid method to start wxWidgets project in visual studio 2019

The only thing missing in the project I create from the temple is the "Configuration prporties>Environment". In the new project created using the template, I have to add it manually, I don't know why? I know nothing about MSVS templates. However, the reason why this cannot be done with a .props fil...
by PB
Tue Apr 13, 2021 2:45 pm
Forum: Platform Related Issues
Topic: Getting windows mousepointer icon = black square
Replies: 6
Views: 110

Re: Getting windows mousepointer icon = black square

Sorry, I do not have time to address your comments ATM. But, FWIW, I tried to write simple code to get the system cursor. It seems to work mostly fine, except when the cursor is the text cursor over an edit control. In this case, the cursor has black instead of transparent background and it itself i...
by PB
Tue Apr 13, 2021 1:11 pm
Forum: Compiler / Linking / IDE Related
Topic: swap exisintg project config
Replies: 4
Views: 64

Re: swap exisintg project config

ONEEYEMAN wrote:
Tue Apr 13, 2021 12:32 pm
Unless you want to modify the CodeBlock sources, please drop monolithic build option.
I don't see how the two are connected?
by PB
Tue Apr 13, 2021 11:16 am
Forum: Compiler / Linking / IDE Related
Topic: The easy and rapid method to start wxWidgets project in visual studio 2019
Replies: 10
Views: 165

Re: The easy and rapid method to start wxWidgets project in visual studio 2019

I do not understand French. But it seems that it is just Windows telling you that it cannot find wxWidgets DLLs. This cannot be done by a .props file. You need to place them where the executable can find them, just as with any other DLL. But for just running the executable from MSVS, you could just ...
by PB
Tue Apr 13, 2021 11:11 am
Forum: Platform Related Issues
Topic: Getting windows mousepointer icon = black square
Replies: 6
Views: 110

Re: Getting windows mousepointer icon = black square

I would unselect hbmCanvas from the DC before accessing it. I would also check if DrawIconEx() returns TRUE and dib.IsOk() (no idea about CompatibleBitmap type, nor I am sure if one can even create wxDIB from a DDB) returns true. But firstly, I would check if wxWidgets does not offer a better way to...
by PB
Tue Apr 13, 2021 10:36 am
Forum: Compiler / Linking / IDE Related
Topic: MSW: 3.1.2 + CMake3.19 install link errors (VS2015) (Edited: actually FindwxWidgets.cmake mostly)
Replies: 12
Views: 164

Re: MSW: 3.1.2 + CMake3.19 install link errors (VS2015)

Mick P. wrote:
Tue Apr 13, 2021 9:27 am
I don't know if I've ever heard of WXWIN before (as environment variable).
WXWIN is mentioned all over in the wxWidgets install docs:
https://docs.wxwidgets.org/trunk/plat_msw_install.html
by PB
Tue Apr 13, 2021 10:34 am
Forum: Compiler / Linking / IDE Related
Topic: The easy and rapid method to start wxWidgets project in visual studio 2019
Replies: 10
Views: 165

Re: The easy and rapid method to start wxWidgets project in visual studio 2019

I am using visual studio 2019 to create GUI projects, the thing is each time I want to create a project to test something, I have to go through all the steps Why not just create a simple empty project once and then copy it when needed? That is what I do. Anyway, the simplest way is to use the wxWid...
by PB
Tue Apr 13, 2021 7:22 am
Forum: Compiler / Linking / IDE Related
Topic: MSW: 3.1.2 + CMake3.19 install link errors (VS2015) (Edited: actually FindwxWidgets.cmake mostly)
Replies: 12
Views: 164

Re: MSW: 3.1.2 + CMake3.19 install link errors (VS2015)

AFAIK, CMake's FindwxWidgets module generally relies on the environment variable WXWIN, which the programmer is supposed do set correctly, regardless of the build tool used, see wxWidgets docs. Otherwise, you need to set wxWidgets_ROOT_DIR and wxWidgets_LIB_DIR CMake variables to point to the correc...
by PB
Tue Apr 13, 2021 5:55 am
Forum: Compiler / Linking / IDE Related
Topic: swap exisintg project config
Replies: 4
Views: 64

Re: swap exisintg project config

Firstly, you need to make sure you built wxWidgets in the required configurations. Secondly, if the only change is switching from the shared to the static build and everything else (including monolithic) remains the same, you only need: 1. Change the include and library folders, where there is now "...
by PB
Mon Apr 12, 2021 8:30 pm
Forum: C++ Development
Topic: Redirection of a process output
Replies: 8
Views: 150

Re: Redirection of a process output

Actually, what you suggest works pretty well for a "standard" command redirection (such as cmd /c dir > output.txt) but in my case (with ffprobe, I didn't check yet with another exe) it creates the output file but the file remains empty. This is funny because when I call from the command line (Win ...
by PB
Mon Apr 12, 2021 3:16 pm
Forum: C++ Development
Topic: Redirection of a process output
Replies: 8
Views: 150

Re: Redirection of a process output

I did not try but I think you can call wxExecute() with "cmd /c ffprobe... > output.txt" as the command and it should work? Is the console really still shown even when using wxEXEC_HIDE_CONSOLE ?
by PB
Mon Apr 12, 2021 12:06 pm
Forum: C++ Development
Topic: How to find my windows?
Replies: 2
Views: 78

Re: How to find my windows?

I am not sure if either mentioned approach is "clean". Generally, such tight coupling of most classes is frown upon and using approaches such as MVC and similar is recommended. However, I do understand that implementing stuff "properly" may take more time and effort and it is on programmer to decide...
by PB
Mon Apr 12, 2021 5:54 am
Forum: C++ Development
Topic: Stationary background with wxScrolled
Replies: 5
Views: 143

Re: Stationary background with wxScrolled

AmadeusK525 wrote:
Sun Apr 11, 2021 11:38 pm
Turns out calling EnableScrolling(false, false) got rid of the issue. What problems were you having with it?
As I wrote above, updating position of controls.