Search found 207 matches

by tomay3000
Fri May 26, 2023 6:47 pm
Forum: C++ Development
Topic: How to catch global key presses and left mouse clicks from other applications?
Replies: 6
Views: 688

Re: How to catch global key presses and left mouse clicks from other applications?

doublemax wrote: Fri May 26, 2023 5:23 pm There is no equivalent for the mouse click though.
Isn't wxEVT_LEFT_DOWN for left mouse clicks!?
Wouldn't wxEVT_LEFT_DOWN invoke FilterEvent(wxEvent& event)!?
by tomay3000
Fri May 26, 2023 4:39 pm
Forum: C++ Development
Topic: How to catch global key presses and left mouse clicks from other applications?
Replies: 6
Views: 688

Re: How to catch global key presses and left mouse clicks from other applications?

Is this other application under your control? Yes, it is, but I don't have its source code. wxWindow::FindFocus() finds only windows inside your own application. And it only finds wxWidgets windows. Aw! Didn't know that. In general, wxWidgets does not provide the functionality you need for this. Ac...
by tomay3000
Thu May 25, 2023 11:27 pm
Forum: C++ Development
Topic: How to catch global key presses and left mouse clicks from other applications?
Replies: 6
Views: 688

How to catch global key presses and left mouse clicks from other applications?

Hello, I need a way to handle global key presses and left-mouse clicks in another applications. When a user presses F2 or F8 keys or left-mouse clicks in a text control in another application developed in .net framework, I need to catch that and do set the value of that text control and simulate ENT...
by tomay3000
Fri Mar 25, 2022 3:59 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW] I can't get wxWidgets to compile under Windows using Ming-w64 ?
Replies: 4
Views: 714

Re: [wxMSW] I can't get wxWidgets to compile under Windows using Ming-w64 ?

Can it be supported by other platform? Possibly i generic way... Currently no, it is wxMSW specific, because we are dealing with uxTheme which is Windows specific, but could be made generic (still requires OS specific calls e.g ::GetThemeMargins() ) with the help of a new wxMargins class in the fut...
by tomay3000
Fri Mar 25, 2022 3:12 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW] I can't get wxWidgets to compile under Windows using Ming-w64 ?
Replies: 4
Views: 714

Re: [wxMSW] I can't get wxWidgets to compile under Windows using Ming-w64 ?

Did you include that header everywhere? No, not everywhere. only in wxWidgets\include\wx\msw\window.h , I didn't want to mess up everything. I was hoping for someone else to try it using MSVC compiler, because MinGW-w64 error messages are confusing. Also - why do you want to modify the library sour...
by tomay3000
Thu Mar 24, 2022 7:56 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW] I can't get wxWidgets to compile under Windows using Ming-w64 ?
Replies: 4
Views: 714

[wxMSW] I can't get wxWidgets to compile under Windows using Ming-w64 ?

Hello, I want to define a member variable of type struct MARGINS from uxtheme.h : MARGINS margins; inside wxWidgets\include\wx\msw\window.h wxWindow class, but with no luck. What I get is all these sort of errors: C:\Dev\wxWidgets\build\msw>mingw32-make -f makefile.gcc SHARED=1 VENDORTAG=""...
by tomay3000
Wed Mar 16, 2022 8:10 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW] How to get DEBUG level 2?
Replies: 5
Views: 878

Re: [wxMSW] How to get DEBUG level 2?

so all you need is to change how messages with wxLOG_Trace level are handled there (i.e., do not return): https://github.com/wxWidgets/wxWidgets/blob/bae7680d521848db3435a0481d6cf9d5c655509c/samples/widgets/widgets.cpp#L270 That was it, I was blind to it, maybe because of my poor Logging knowledge....
by tomay3000
Mon Mar 14, 2022 11:19 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW] How to get DEBUG level 2?
Replies: 5
Views: 878

Re: [wxMSW] How to get DEBUG level 2?

Firstly, you need to check the actual debug level in your application in the dialog invoked by <Ctrl><Alt><Middle Click> into an area not occupied by a control consuming mouse input or by calling wxInfoMessageBox(). Untitled.png Secondly, I believe you need to call wxLog::AddTraceMask("winmsg&...
by tomay3000
Mon Mar 14, 2022 8:40 pm
Forum: Compiler / Linking / IDE Related
Topic: [wxMSW] How to get DEBUG level 2?
Replies: 5
Views: 878

[wxMSW] How to get DEBUG level 2?

Hello, Though I already uncomented: #ifdef NDEBUG #define wxDEBUG_LEVEL 0 #else #define wxDEBUG_LEVEL 2 #endif in both C:\Dev\wxWidgets\lib\gcc11_dll\mswud\wx\setup.h and C:\Dev\wxWidgets\include\wx\msw\setup.h and rebuilt wxWidgets using the following command: mingw32-make -f makefile.gcc BUILD=deb...
by tomay3000
Fri Mar 11, 2022 10:38 pm
Forum: C++ Development
Topic: Checking if Mouse cursor in the Control
Replies: 3
Views: 1186

Re: Checking if Mouse cursor in the Control

Catch wxEVT_ENTER_WINDOW / wxEVT_LEAVE_WINDOW and set a flag if the mouse is inside or not. Or use wxWindow::GetScreenRect().Contains( wxGetMousePosition() ) What if this window is behind another one in modeless Dialog windows! I think using wxFindWindowAtPoint(wxGetMousePosition()) == this would b...
by tomay3000
Thu Sep 16, 2021 4:58 am
Forum: Compiler / Linking / IDE Related
Topic: Any .rc resource script Editor recommendation for non-VS IDE?
Replies: 4
Views: 3715

Re: Any .rc resource script Editor recommendation for non-VS IDE?

I want to edit an .rc file to embed some resources like ICO , CUR , PNG , JPEG in the EXE file under windows using Code::Blocks . This is trivial to do with a text editor. I don't think you need a dedicated resource editor for that. I know, but to avoid any errors when typing, I thought of using a ...
by tomay3000
Mon Sep 13, 2021 11:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Any .rc resource script Editor recommendation for non-VS IDE?
Replies: 4
Views: 3715

Re: Any .rc resource script Editor recommendation for non-VS IDE?

ONEEYEMAN wrote: Mon Sep 13, 2021 12:26 pm Hi,
What kind of resources you want to edit?
And what IDE, if any you are using?

Thank you.
I want to edit an .rc file to embed some resources like ICO, CUR, PNG, JPEG in the EXE file under windows using Code::Blocks.
by tomay3000
Sun Sep 12, 2021 10:22 pm
Forum: Compiler / Linking / IDE Related
Topic: Any .rc resource script Editor recommendation for non-VS IDE?
Replies: 4
Views: 3715

Any .rc resource script Editor recommendation for non-VS IDE?

Hello, I need a good " .rc " resource script Editor for non-VS IDE ? I have used " ResEdit " but it is constantly crashing, also I found out that it has been classified as PUA by many antivirus scanners . I also tried " Resource Hacker ", but it messed up the resulting ...
by tomay3000
Wed Sep 01, 2021 10:16 pm
Forum: Compiler / Linking / IDE Related
Topic: How should I start a New VS Comm 2019 wx v3.x Project?
Replies: 6
Views: 6013

Re: How should I start a New VS Comm 2019 wx v3.x Project?

ONEEYEMAN wrote: Mon Aug 30, 2021 12:07 pm Did you successfully build the libraries with msvc?
Yes, Crypto++ links now without errors. I had to recompile and rebuild it, though it was MSVC built .lib one.
ONEEYEMAN wrote: Mon Aug 30, 2021 12:07 pm Remember, you can't intermixed MinGW and Visual Studio binaries.
I already know that, Thank you.
by tomay3000
Mon Aug 30, 2021 10:53 am
Forum: Compiler / Linking / IDE Related
Topic: How should I start a New VS Comm 2019 wx v3.x Project?
Replies: 6
Views: 6013

Re: How should I start a New VS Comm 2019 wx v3.x Project?

Thank you for the answers, It was very tough to migrate my project from C::B to VS 2019, and some libraries still didn't link like Crypto++, I had to comment out a lot of code to make it compile and build successfully. I have used the minimal .sln project thought I just discovered about wxwidgets.pr...