Search found 75 matches

by Ksawery
Fri Aug 23, 2019 11:11 am
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 2238

Re: Certain methods not working under Linux Mint

Thank you for your replies. wxWidgets seldom uses absolute positioning. Instead it positions using wxSizer. See this (very old but still valid) sizer demo. I tried using the sizer according to the article, but no combination of options would make the static text center horizontally; despite removin...
by Ksawery
Thu Aug 22, 2019 1:03 pm
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 2238

Re: Certain methods not working under Linux Mint

Thanks for your reply. What exactly do you mean by the following? Don't do that! The control is inside a sizer; the sizer sets its position. If you want it to be offset, either give that side a border or add wxSpacer(s) with the appropriate width/height. How do I add a wxSpacer with the appropriate ...
by Ksawery
Thu Aug 22, 2019 8:42 am
Forum: Platform Related Issues
Topic: Certain methods not working under Linux Mint
Replies: 21
Views: 2238

Certain methods not working under Linux Mint

Hello, As mentioned in my previous post, I'm in the process of porting my wxWidgets application from Windows 10 to Linux Mint. I have the latest version of Linux and wxWidgets (installed from source), and I'm using the Code::Blocks IDE with all wxWidgets plugins installed. I setup a wxWidgets 3.0.x ...
by Ksawery
Tue Aug 20, 2019 6:20 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 1097

Re: Migrating to Linux (Mint)

It is possible that the string contained a random special character, due to foreign characters being pushed and pulled from GitHub. So that might have been the real issue - which I accidentally fixed by correcting typos.

Thank you for your help.

Ksawery
by Ksawery
Tue Aug 20, 2019 1:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 1097

Re: Migrating to Linux (Mint)

I replaced some instances of wxT with _T, and it seems to work ok now. I still have other unexpected bugs in the application, but at least it compiles successfully now.

Many thanks,
Ksawery
by Ksawery
Tue Aug 20, 2019 12:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 1097

Re: Migrating to Linux (Mint)

Thank you for taking the time to look into my problem, that solved that issue! Unfortunately i'm still seeing errors related to the wxT macro: ||=== Build: Debug in PomiarWiazki_wxWidgets_Linux (compiler: GNU GCC Compiler) ===| /home/ksawery/repos/PomiarWiazki_wxWidgets_Linux/PomiarWiazki_wxWidgets_...
by Ksawery
Tue Aug 20, 2019 11:00 am
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 1097

Re: Migrating to Linux (Mint)

Thank you for your reply. Here is the event table: wxBEGIN_EVENT_TABLE(cDiagnostics, wxFrame) EVT_BUTTON(10003, OnButtonClickedReset) EVT_TIMER(10005, OnDiagnosticsResetTimer) EVT_CLOSE(OnClose) wxEND_EVENT_TABLE() And here are the event handlers: void cDiagnostics::OnButtonClickedReset(wxCommandEve...
by Ksawery
Tue Aug 20, 2019 10:21 am
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 1097

Migrating to Linux (Mint)

Hello, I have successfully built and debugged my wxWidgets GUI under Windows 10, Visual Studio 2019. I'm now attempting to migrate my project to Linux Mint. Unfortunately I'm seeing complication errors. Here are the steps that I have taken so far: Installed the latest version of wxWidgets (3.1.2) us...
by Ksawery
Thu Aug 08, 2019 9:06 am
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 689

Re: Set Icon

Ok, I got it to work, the problem was caused by the two non-sense symbols at the beginning of the resource file: ��

Regards,
Ksawery
by Ksawery
Thu Aug 08, 2019 8:41 am
Forum: Compiler / Linking / IDE Related
Topic: error rc2135, problem with VC resource file
Replies: 4
Views: 3018

Re: error rc2135, problem with VC resource file

I have encountered the same problem, how did you re-write the .rc file?
by Ksawery
Wed Aug 07, 2019 12:30 pm
Forum: C++ Development
Topic: Exception thrown when closing window
Replies: 4
Views: 358

Re: Exception thrown when closing window

I added the following lines of code to disable all timers when closing the window, and the issue seems to have disappeared: //Stop any running timers if (mbWriteTimer->IsRunning()) mbWriteTimer->Stop(); if (mbWriteErrorTimer->IsRunning()) mbWriteErrorTimer->Stop(); I don't know whether that is the c...
by Ksawery
Wed Aug 07, 2019 10:57 am
Forum: C++ Development
Topic: Exception thrown when closing window
Replies: 4
Views: 358

Re: Exception thrown when closing window

Here is the call stack: > PomiarWiazki_wxWidgets.exe!wxEvtHandler::SafelyProcessEvent(wxEvent & event) Line 1617 C++ PomiarWiazki_wxWidgets.exe!wxTimerImpl::SendEvent() Line 52 C++ PomiarWiazki_wxWidgets.exe!wxTimer::Notify() Line 107 C++ PomiarWiazki_wxWidgets.exe!wxTimerImpl::Notify() Line 47 C++ ...
by Ksawery
Wed Aug 07, 2019 10:28 am
Forum: C++ Development
Topic: Exception thrown when closing window
Replies: 4
Views: 358

Exception thrown when closing window

I am getting a read access violation error when attempting to close my main window, right after pressing a button (see screenshot attached). Is this expected behaviour, and can it be overcome? Or should I simply place a control statement in my OnClose callback, to stop the window from being closed i...
by Ksawery
Wed Aug 07, 2019 9:01 am
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 689

Re: Set Icon

Thanks, that solved the include error, however I now get the following errors: Severity Code Description File Line Error RC2135 file not found: ICON C:\Users\kwret\Documents\Visual Studio 2019\Projects\PomiarWiazki_wxWidgets\PomiarWiazki_wxWidgets\PomiarWiazki_wxWidgets.rc 6 Error RC2135 file not fo...
by Ksawery
Tue Aug 06, 2019 1:10 pm
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 689

Re: Set Icon

Thank you, I changed the code according to your suggestion, but I still get the following include error: Severity Code Description File Line Error RC1015 cannot open include file 'wx/msw/wx.rc'. C:\Users\kwret\Documents\Visual Studio 2019\Projects\PomiarWiazki_wxWidgets\PomiarWiazki_wxWidgets\Pomiar...