Search found 2937 matches
- 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: 124
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...
- Tue Apr 13, 2021 2:45 pm
- Forum: Platform Related Issues
- Topic: Getting windows mousepointer icon = black square
- Replies: 3
- Views: 63
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...
- Tue Apr 13, 2021 1:11 pm
- Forum: Compiler / Linking / IDE Related
- Topic: swap exisintg project config
- Replies: 4
- Views: 54
- 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: 124
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 ...
- Tue Apr 13, 2021 11:11 am
- Forum: Platform Related Issues
- Topic: Getting windows mousepointer icon = black square
- Replies: 3
- Views: 63
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...
- Tue Apr 13, 2021 10:36 am
- Forum: Compiler / Linking / IDE Related
- Topic: MSW: 3.1.2 + CMake3.19 install link errors (VS2015)
- Replies: 9
- Views: 105
Re: MSW: 3.1.2 + CMake3.19 install link errors (VS2015)
WXWIN is mentioned all over in the wxWidgets install docs:
https://docs.wxwidgets.org/trunk/plat_msw_install.html
- 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: 124
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...
- Tue Apr 13, 2021 7:22 am
- Forum: Compiler / Linking / IDE Related
- Topic: MSW: 3.1.2 + CMake3.19 install link errors (VS2015)
- Replies: 9
- Views: 105
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...
- Tue Apr 13, 2021 5:55 am
- Forum: Compiler / Linking / IDE Related
- Topic: swap exisintg project config
- Replies: 4
- Views: 54
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 "...
- Mon Apr 12, 2021 8:30 pm
- Forum: C++ Development
- Topic: Redirection of a process output
- Replies: 8
- Views: 137
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 ...
- Mon Apr 12, 2021 3:16 pm
- Forum: C++ Development
- Topic: Redirection of a process output
- Replies: 8
- Views: 137
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 ?
- Mon Apr 12, 2021 12:06 pm
- Forum: C++ Development
- Topic: How to find my windows?
- Replies: 1
- Views: 58
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...
- Mon Apr 12, 2021 5:54 am
- Forum: C++ Development
- Topic: Stationary background with wxScrolled
- Replies: 5
- Views: 135
Re: Stationary background with wxScrolled
As I wrote above, updating position of controls.AmadeusK525 wrote: ↑Sun Apr 11, 2021 11:38 pmTurns out calling EnableScrolling(false, false) got rid of the issue. What problems were you having with it?
- Sun Apr 11, 2021 10:33 am
- Forum: C++ Development
- Topic: Stationary background with wxScrolled
- Replies: 5
- Views: 135
Re: Stationary background with wxScrolled
When looking into the topic, on Windows I encountered something I think may be a bug (Windows 10, wxWidgets master)? The code draws a logo in the top left corner, which is not scrolled with the controls. When I do not call EnableScrolling(false, false), there are drawing artifacts. This is expected ...
- Sun Apr 11, 2021 9:10 am
- Forum: C++ Development
- Topic: Stationary background with wxScrolled
- Replies: 5
- Views: 135
Re: Stationary background with wxScrolled
Is m_patchNotesWindow a wxScrolled? I thought that when drawing with wxScrolled, you should follow this: You have the option of handling the OnPaint handler or overriding the wxScrolled::OnDraw() function, which is passed a pre-scrolled device context (prepared by wxScrolled::DoPrepareDC()). If you ...