Search found 1937 matches

by PB
Tue Jun 11, 2019 8:06 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 179

Re: Build for Visual Studio 2019

As I said, I believe WIN32 is not needed. wxWidgets defines this macro itself in platform.h: #if defined(_WIN32) || defined(__WIN32__) || defined(__WXMSW__) # ifndef __WINDOWS__ # define __WINDOWS__ # endif /* !__WINDOWS__ */ #endif /* Any standard symbol indicating Windows */ #if defined(__WINDOWS_...
by PB
Tue Jun 11, 2019 7:35 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 179

Re: Build for Visual Studio 2019

thought dynamic linking will take less amount of compile and build time? So, I can build, run and test quickly? I never timed it but I think time taken by statically linking a library such as wxWidgets would be negligible. My another little doubt: is WIN32 a right macro? Shouldn't it be _WIN32? The...
by PB
Tue Jun 11, 2019 5:57 am
Forum: Compiler / Linking / IDE Related
Topic: Build for Visual Studio 2019
Replies: 20
Views: 179

Re: Build for Visual Studio 2019

This program can't start because wxbase312ud_vc_custom.dll is missing from your computer. Rather than moving wxbase312ud_vc_custom.dll next to .exe? I can't run the project from Visual Studio. You will still have to distribute all the DLLs to the users along the executable but for development, you ...
by PB
Fri Jun 07, 2019 10:47 am
Forum: C++ Development
Topic: Button is focused when I run application
Replies: 9
Views: 127

Re: Button is focused when I run application

Isn't this also the usual default button vs focused item question?

See e.g. here viewtopic.php?t=45174
by PB
Fri Jun 07, 2019 6:00 am
Forum: C++ Development
Topic: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)
Replies: 18
Views: 230

Re: Console+GUI with release builds (wxAppConsole::GetLayoutDirection is 0 in vtbl)

My main concern here is wxWidgets is generating message boxes on its own accord. I think that's kind of a bad policy regardless, but I mainly just want to disable that or put it in a mode that outputs to the console. For example, the command-line feature generates its own message boxes. I don't wan...
by PB
Tue Jun 04, 2019 5:32 pm
Forum: Compiler / Linking / IDE Related
Topic: installing wxWidgets in Visual Studio
Replies: 20
Views: 245

Re: installing wxWidgets in Visual Studio

Additionally, one is supposed to (at least) read the install guide
https://github.com/wxWidgets/wxWidgets/ ... install.md

Using wxWidgets with MSVC can be actually quite simpler than with other compilers, see the docs.
by PB
Tue Jun 04, 2019 1:00 pm
Forum: C++ Development
Topic: Left Down in button
Replies: 14
Views: 175

Re: Left Down in button

It seems that mxoliveira73 used wrong handler declaration in OnDown, using wxCommandEvent instead of wxMouseEvent as a parameter
by PB
Thu May 30, 2019 8:11 am
Forum: C++ Development
Topic: Change property object in other class
Replies: 2
Views: 85

Re: Change property object in other class

Here is a very simple but complete example of how a worker thread can (request a) change of a GUI item. A running worker wxThread just increases a number ( count variable) each 250 ms and then sends an event to the wxFrame with the number converted to string. The wxFrame processes the event and sets...
by PB
Thu May 30, 2019 5:52 am
Forum: C++ Development
Topic: How to add a wxCheckBox to a wxStaticBoxSizer?
Replies: 1
Views: 44

Re: How to add a wxCheckBox to a wxStaticBoxSizer?

Perhaps the second part of the this post may help
viewtopic.php?f=1&t=45414&p=188287#p188286

But if you need to do it in your GUI builder instead of code, this may get complicated.
by PB
Wed May 29, 2019 5:40 am
Forum: Compiler / Linking / IDE Related
Topic: Can't use a PNG from Resources file (VS2017)
Replies: 7
Views: 171

Re: Can't use a PNG from Resources file (VS2017)

I'm definitely not clear on what causes the issue! Somewhere, I'm guessing, the name is being unexpectedly converted to the ordinal because of the macro #defined in resource.h - remove or rename the macro and the issue disappears. The way I understand it, an MS Windows resource can be identified (e...
by PB
Mon May 27, 2019 7:33 pm
Forum: Compiler / Linking / IDE Related
Topic: Can't use a PNG from Resources file (VS2017)
Replies: 7
Views: 171

Re: Can't use a PNG from Resources file (VS2017)

I am probably too late but are we clear that the issue is the resource ordinal value versus its name, originating from the hackish way (exploiting the resource ID range and memory addressing limitations) of distinguishing the two as it was created long time ago by Microsoft? The hash in wxBITMAP_PNG...
by PB
Sun May 26, 2019 3:35 pm
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 237

Re: Toolbar Icons and DPI Aware 3.1.x

I checked it, and the DPIAwareness is at the moment not needed. What does it mean? Do you actually have a high-DPI setup? I do and as a user I find applications not supporting high DPI basically unusable: you can choose between them being rather unpleasantly blurry or their text/bitmaps being too s...
by PB
Wed May 15, 2019 11:15 am
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 231

Re: Windows 10 Dark Mode

But indeed, at lest for now, UWP-only features are not available through wxW. TBH, I cannot see wxWidgets adapting the UWP controls anytime soon. It would probably mean undertaking a great effort and creating a compatibility nightmare. Partially adopting UWP controls may not be that great either, m...
by PB
Mon May 13, 2019 5:40 pm
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 231

Re: Windows 10 Dark Mode

The File Explorer, Calendar, ... does change its color automatically, but other common Apps like Wordpad does not. Calendar is not a Win32 application*. Adding dark mode to File Explorer, which is, was not that simple , i.e. it had to be done for this single application by hand. Most of wxWidgets c...
by PB
Mon May 13, 2019 12:44 pm
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 231

Re: Windows 10 Dark Mode

Just curious: Is there really a dark mode in Windows 10 that affects not only UWP but also Win32 applications (such as Notepad, Wordpad, MSPaint)? Anyway, AFAIK the "dark mode" support has been introduced relatively recently and therefore is available only in the 3.1 branch and for MacOS only. EDIT ...