Search found 41 matches

by fishnet37222
Sat Oct 12, 2019 7:52 pm
Forum: Platform Related Issues
Topic: Warning C28251: Inconsistent annotation for 'WinMain'
Replies: 4
Views: 246

Re: Warning C28251: Inconsistent annotation for 'WinMain'

I just tried using the version from GitHub and got the same warning.
by fishnet37222
Sat Oct 12, 2019 6:46 pm
Forum: Platform Related Issues
Topic: Warning C28251: Inconsistent annotation for 'WinMain'
Replies: 4
Views: 246

Warning C28251: Inconsistent annotation for 'WinMain'

I am creating a project using Visual Studio 2019 on Windows 10 with wxWidgets 3.1.2. When I use wxIMPLEMENT_APP(), I get a warning and a green squiggle under the name of the macro. The code compiles and runs fine, but that squiggle is distracting. If I knew what needed to be changed in the wxWidgets...
by fishnet37222
Thu Aug 01, 2019 2:37 am
Forum: C++ Development
Topic: Display text on wxGauge
Replies: 2
Views: 111

Display text on wxGauge

I'm creating an app that displays a wxGauge control on the status bar as a progress bar. In Windows Forms and WPF it's trivial to display text on the progress bar control. What would be the best way to do that in wxWidgets? I was considering subclassing the existing wxGauge, but decided against it w...
by fishnet37222
Wed Sep 26, 2018 4:06 pm
Forum: Platform Related Issues
Topic: Possible to add items to Gnome 3 application menu?
Replies: 4
Views: 408

Re: Possible to add items to Gnome 3 application menu?

Ubuntu doesn't use Unity anymore. In 18.04 they're using Gnome Shell. I'm able to add menus to the window itself without any problems. What I want to do is to add items to the menu that appears when you click the application's name in the top bar. You can see what I'm referring to in the screenshot ...
by fishnet37222
Fri Sep 21, 2018 2:19 pm
Forum: Platform Related Issues
Topic: Possible to add items to Gnome 3 application menu?
Replies: 4
Views: 408

Possible to add items to Gnome 3 application menu?

I was wondering if it's possible to add items to the Gnome 3 application menu. It's the menu I've placed a black rectangle around in the screenshot below. I'd like to be able to add items such as "About" and "Help" to the menu. Thanks in advance for any assistance. I'm using the version of wxGTK tha...
by fishnet37222
Wed Aug 22, 2018 1:15 pm
Forum: Platform Related Issues
Topic: Error when building static libraries on Linux
Replies: 2
Views: 352

Re: Error when building static libraries on Linux

Using libwbkitgtk-dev won't work for me since I'm building the library against GTK3. Here is my configure command:

Code: Select all

../configure --disable-shared --enable-graphics_ctx --with-cxx=14 --with-gtk=3 --disable-debug
I was able to get it to work by installing libwebkitgtk-3.0-dev.
by fishnet37222
Wed Aug 22, 2018 12:03 am
Forum: Platform Related Issues
Topic: Error when building static libraries on Linux
Replies: 2
Views: 352

Error when building static libraries on Linux

I am trying to build the static libraries for wxWidgets 3.1 on Linux Mint 19. I keep getting the error below every time I try to build them. ../src/gtk/webview_webkit2.cpp: In function ‘void wxgtk_initialize_web_extensions(WebKitWebContext*, GDBusServer*)’: ../src/gtk/webview_webkit2.cpp:414:9: erro...
by fishnet37222
Wed Aug 15, 2018 11:32 am
Forum: Platform Related Issues
Topic: How to prevent erasing the background of a custom control on macOS
Replies: 3
Views: 371

Re: How to prevent erasing the background of a custom control on macOS

I do not see any overload of wxWindow::Create() that allows you to set the background style. When I swap the two lines, the background becomes black. I basically want the background to be transparent. However, when I call wxWindow::IsTransparentBackgroundSupported(), it returns false and the reason ...
by fishnet37222
Wed Aug 15, 2018 3:34 am
Forum: Platform Related Issues
Topic: How to prevent erasing the background of a custom control on macOS
Replies: 3
Views: 371

How to prevent erasing the background of a custom control on macOS

I'm using wxWidgets 3.1.1 on macOS 10.14 with clang as the compiler. I've created a custom control by subclassing wxWindow. I'm having a hard time getting rid of the white that's showing at the corners of the control. 2018-08-14_23-23-08.png Here are the first two lines of code in the constructor: w...
by fishnet37222
Thu Apr 05, 2018 9:13 pm
Forum: Platform Related Issues
Topic: Help menu item duplicated on Mac.
Replies: 2
Views: 1827

Re: Help menu item duplicated on Mac.

It turns out I was creating the Help menu by passing a name into the constructor for the menu. When I took that string out, the disabled help menu item disappeared.
by fishnet37222
Thu Apr 05, 2018 5:28 pm
Forum: Platform Related Issues
Topic: Help menu item duplicated on Mac.
Replies: 2
Views: 1827

Help menu item duplicated on Mac.

Hello, I'm using wxWidgets 3.1.1 on macOS 10.13.5 Beta using the Xcode GCC compiler. I added a menu bar to my window with a menu titles "Help" and an item on that menu with an id of wxID_HELP. Instead of that menu item replacing the default "Help" item that's added to the Help menu, it's added as an...
by fishnet37222
Wed Mar 14, 2018 3:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets on Ubuntu 17.10.1 fails
Replies: 4
Views: 1520

Re: Building wxWidgets on Ubuntu 17.10.1 fails

I ended up using the pre-built binaries available from http://codelite.org/LiteEditor/WxWidgets31Binaries#toc2. They seem to work without any issues and they were linked to from the wxWidgets downloads page.
by fishnet37222
Tue Mar 13, 2018 4:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets on Ubuntu 17.10.1 fails
Replies: 4
Views: 1520

Re: Building wxWidgets on Ubuntu 17.10.1 fails

I included a list of the installed packages with "webkit2gtk" in their name, and the "-dev" package is installed.

By the way, I also tried building the stable 3.0.4 release and got the same error.
by fishnet37222
Tue Mar 13, 2018 3:40 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets on Ubuntu 17.10.1 fails
Replies: 4
Views: 1520

Building wxWidgets on Ubuntu 17.10.1 fails

I'm trying to build wxWidgets 3.1.1 on Ubuntu 17.10.1 but it keeps failing with the error below. ../src/gtk/webview_webkit2.cpp:414:9: error: ‘WX_WEB_EXTENSIONS_DIRECTORY’ was not declared in this scope I issued the command "apt list --installed | grep webkit2gtk" and the output is below. libwebkit2...
by fishnet37222
Wed Nov 15, 2017 5:18 pm
Forum: Platform Related Issues
Topic: Set application title under Gnome 3
Replies: 5
Views: 673

Re: Set application title under Gnome 3

I'm passing the title for the window in the constructor as in the following line. MainWindow::MainWindow() : wxFrame(nullptr, wxID_ANY, "My Music Collection") That sets the title for the window without any issues. However, the title displayed in the Gnome 3 top bar still shows the name of the execut...