Search found 47 matches

by Ksawery
Tue Sep 10, 2019 9:26 am
Forum: C++ Development
Topic: wxSingleInstanceChecker message
Replies: 6
Views: 188

Re: wxSingleInstanceChecker message

Using wxApp::SetAppName() helped set the title of the error window, thanks. How about the GTK message, is there a way to suppress it or avoid it? It only pops up when displaying the error window. Edit: I tried using wxMessageBox instead of wxLogError, and i'm still seeing the gtk message. Regards, K...
by Ksawery
Tue Sep 10, 2019 9:04 am
Forum: C++ Development
Topic: wxSingleInstanceChecker message
Replies: 6
Views: 188

Re: wxSingleInstanceChecker message

I'm using wxLogError() to display the message, after checking if another instance is already running:

Code: Select all

if (wxChecker->IsAnotherRunning())
{
    wxLogError(_T("\nProces już istnieje!"));
    delete wxChecker; // OnExit() won't be called if we return false
    wxChecker = NULL;
    return false;
}
by Ksawery
Tue Sep 10, 2019 8:44 am
Forum: C++ Development
Topic: wxSingleInstanceChecker message
Replies: 6
Views: 188

Re: wxSingleInstanceChecker message

Thank you, it worked! I used the following code: { wxLogNull logNo; wxChecker = new wxSingleInstanceChecker(_T("PomiarWiazki")); } Two more things - i'm seeing the following message in the console: Gtk-Message: 10:43:55.126: GtkDialog mapped without a transient parent. This is discouraged. Is this s...
by Ksawery
Mon Sep 09, 2019 1:21 pm
Forum: C++ Development
Topic: wxSingleInstanceChecker message
Replies: 6
Views: 188

wxSingleInstanceChecker message

Hello, I'm using wxSingleInstanceChecker to ensure that only one instance of my application is running. It works fine, however sometimes I see a message stating "Deleted stale lock file 'home/.../AppName' ". I know that this message only appears when the app is terminated indirectly (e.g. by killing...
by Ksawery
Thu Aug 29, 2019 8:27 am
Forum: Platform Related Issues
Topic: How to set application icon in Linux
Replies: 5
Views: 144

Re: How to set application icon in Linux

Thank you, I added const to the .xpm file variable, and also the wxICON macro in my code, and now everything works fine - no more warnings or errors.

Code: Select all

m_frame->SetIcon(wxICON(icon));
Regards,
Ksawery
by Ksawery
Wed Aug 28, 2019 1:48 pm
Forum: Platform Related Issues
Topic: How to set application icon in Linux
Replies: 5
Views: 144

Re: How to set application icon in Linux

Actually, even though the icon is now working, I'm still seeing tons of warnings and errors when building the project: The warnings disappear after compilation: 15:56:23 **** Build of configuration Debug for project PomiarWiazki_wxWidgets_Linux **** make all Building file: ../cApp.cpp Invoking: GCC ...
by Ksawery
Wed Aug 28, 2019 1:29 pm
Forum: Platform Related Issues
Topic: How to set application icon in Linux
Replies: 5
Views: 144

Re: How to set application icon in Linux

Thank you. I went into the xpm file and manually changed the variable name to icon_xpm. Now it works fine. And just for the record: This will only set the icon you see inside your application. This will not change the icon of the executable when seen on the desktop For that I will need a .desktop fi...
by Ksawery
Wed Aug 28, 2019 1:02 pm
Forum: Platform Related Issues
Topic: How to set application icon in Linux
Replies: 5
Views: 144

How to set application icon in Linux

I've successfully setup icons for my app in Windows, using a resource file and a .ico file. Now i'd like to setup an icon for my app in Linux Mint, where (as I understand) resource files don't exist. I found a post that recommends using a .xpm file: https://forums.wxwidgets.org/viewtopic.php?t=13983...
by Ksawery
Tue Aug 27, 2019 2:02 pm
Forum: Compiler / Linking / IDE Related
Topic: Eclipse - Unresolved Symbol Errors
Replies: 1
Views: 118

Re: Eclipse - Unresolved Symbol Errors

I managed to solve the issues using the following guide:

https://www.youtube.com/watch?v=MrwDSDYPF0M

Now Eclipse correctly recognizes all wxWidgets symbols.

Ksawery
by Ksawery
Tue Aug 27, 2019 1:42 pm
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 384

Re: Certain methods not working under Linux Mint

After installing different versions of wxWidgets, as well as Code::Blocks, running make install , and then make uninstall several times, and installing/uninstalling several packages, I wanted to start from scratch, since things simply didn't want to work. I messed something up, somewhere. So I had t...
by Ksawery
Tue Aug 27, 2019 1:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Eclipse - Unresolved Symbol Errors
Replies: 1
Views: 118

Eclipse - Unresolved Symbol Errors

After successfully using wxWidgets with Code::Blocks on Linux Mint, I'm trying to setup my environment in Eclipse (I prefer to use that IDE). I've configured Eclipse according to the following instructions: https://wiki.wxwidgets.org/Eclipse My application runs fine, but what's weird is that I'm see...
by Ksawery
Tue Aug 27, 2019 10:17 am
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 384

Re: Certain methods not working under Linux Mint

Thank you. Also, for any people having issues with conflicting versions of wxWidgets installed on their system, the following instructions helped me a lot: http://wiki.amule.org/wiki/How_to_uninstall_wxWidgets The -rm commands helped me make sure that no older versions are present on my system; whic...
by Ksawery
Mon Aug 26, 2019 1:21 pm
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 384

Re: Certain methods not working under Linux Mint

Yes, I believe they were back ticks, since I copied them directly from the browser. For some reason they just didn't want to work.
by Ksawery
Mon Aug 26, 2019 11:39 am
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 384

Re: Certain methods not working under Linux Mint

Thank you again for your help. I reinstalled wxWidgets 3.1.2, making sure I'm installing it into the gtk-build directory. I then copied the wx-config commands from the terminal directly into the compiler and linker flags - instead of using 'wx-config --cxxflags', for example. The application now wor...
by Ksawery
Fri Aug 23, 2019 2:42 pm
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 384

Re: Certain methods not working under Linux Mint

Out of curiosity - what was the exact configure line you used? I followed the instructions at: https://wiki.wxwidgets.org/Compiling_and_getting_started. I used ../configure --enable-unicode --enable-debug with admin privileges and it installed without problems. I then tested it with the ./minimal s...