Search found 79 matches

by Parduz
Tue Jan 29, 2019 11:35 am
Forum: C++ Development
Topic: How to prevent a wxTextCtrl from loosing focus?
Replies: 12
Views: 810

How to prevent a wxTextCtrl from loosing focus?

I want that the user can't "leave" a wxTextCtrl until the value inside it is "valid". Which means that what i want is to prevent a wxTextCtrl to loose the Focus, no matter what causes it (mouse, keystrokes). How can i obtain this? *EDIT: While the whole application is a fullscreen app, i don't want ...
by Parduz
Tue Jan 22, 2019 9:37 am
Forum: Compiler / Linking / IDE Related
Topic: Need advice on how to split code for complex forms in more files
Replies: 1
Views: 320

Need advice on how to split code for complex forms in more files

I'm building a complex program wich will run on a BeagleBone, full of pages, subpages, controls and interaction between them. Right my "main UI" file (the program frame) is 6k lines long, and i'm at half of the road. There's all the control events, plus the code for handling events from the underlyi...
by Parduz
Thu Dec 06, 2018 2:54 pm
Forum: C++ Development
Topic: How to create a DIB Bitmap from a Byte Array?
Replies: 1
Views: 428

How to create a DIB Bitmap from a Byte Array?

I have a byte array containing the "raw" data (i mean: the pixels) of a 4-bit-per-pixels grayscale image. I receive this data via RS232 from an old device and i can't change this. But I need to draw this image on a wxPanel. I have an old code made with C++Builder 2006 which initialize a DIB bmp with...
by Parduz
Thu Nov 22, 2018 4:52 pm
Forum: Platform Related Issues
Topic: Problems with find() function with "weird" characters on Debian and not on Win7
Replies: 1
Views: 409

Problems with find() function with "weird" characters on Debian and not on Win7

(Using wxWidgets 3.0.4) This is a sample code which show my current problem: // ============================================================================ // declarations // ============================================================================ // -------------------------------------------...
by Parduz
Tue Nov 06, 2018 11:25 am
Forum: Compiler / Linking / IDE Related
Topic: Problems with my windows build
Replies: 4
Views: 1415

Re: Problems with my windows build

Assuming you added the library... I do not know whether it is the reason but with GCC, the order the libraries are listed matters. Is yours correct? E.g. the library order (but for release build of v3.1) taken from a command line goes like lwxmsw31u_core -lwxbase31u -lwxpng -lwxzlib -lwxjpeg -lwxti...
by Parduz
Mon Nov 05, 2018 6:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems with my windows build
Replies: 4
Views: 1415

Re: Problems with my windows build

doublemax wrote:You didn't add the jpeg library to your linker include files.
Isn't the library the libwxjpegd.a?
by Parduz
Fri Oct 26, 2018 2:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems with my windows build
Replies: 4
Views: 1415

Problems with my windows build

I've built the wxWidgets with this command, and with these ambient variable set: WXWIN="C:\SVILUPPO\Toolchains\wxWidgets-3.0.4\build\msw\..\" Path=C:\SVILUPPO\Toolchains\MinGW-6.3.0-1\bin; ... mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" USE_XRC=1 SHARED=0 MONOLITHIC=0 BUILD=debug CFG=%Comp_...
by Parduz
Mon Oct 22, 2018 1:08 pm
Forum: C++ Development
Topic: wxSharedPtr warnings..... what should i do?
Replies: 1
Views: 560

wxSharedPtr warnings..... what should i do?

Using Code::blocks on a Windows PC I want to compile the wxCharts libraries. I get 144 warnings, all saying the same: ||=== Build: Debug Win32 in wxcharts (compiler: GNU GCC 6.3.0 Compiler) ===| C:\SVILUPPO\Toolchains\wxWidgets-3.0.3\include\wx\sharedptr.h||In instantiation of 'void wxSharedPtr<T>::...
by Parduz
Mon Oct 22, 2018 7:57 am
Forum: C++ Development
Topic: wxSimpleBook problems
Replies: 6
Views: 608

Re: wxSimpleBook problems

While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong? I'm not quite sure what you mean, but i guess it's a native Windows thing that doesn't exist under Linux. It is the "Show Effect" property, using wxSHOW_EFFECT_xxx values : m_mySimpleBook->SetEffect(...
by Parduz
Thu Oct 18, 2018 8:56 am
Forum: C++ Development
Topic: wxSimpleBook problems
Replies: 6
Views: 608

Re: wxSimpleBook problems

While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong? I'm not quite sure what you mean, but i guess it's a native Windows thing that doesn't exist under Linux. It is the "Show Effect" property, using wxSHOW_EFFECT_xxx values : m_mySimpleBook->SetEffect(...
by Parduz
Thu Oct 18, 2018 8:55 am
Forum: C++ Development
Topic: wxSimpleBook problems
Replies: 6
Views: 608

Re: wxSimpleBook problems

Also, it would be nice if you can develop on Debian {VM}. Remember wxWidgets using native sets of widgets where available and so it is possible that platform differences exists. I'm trying to setup a Debian PC to debug on it and cross-compile to release on the BBB, but this is something for a new t...
by Parduz
Wed Oct 17, 2018 3:59 pm
Forum: C++ Development
Topic: wxSimpleBook problems
Replies: 6
Views: 608

wxSimpleBook problems

I'm using wxWidgets 3.0.4, debugging on Windows and releasing on a BeagleBone Black with a Debian image.

While on windows i see transitions when i change the page, but not on Linux. What am i doing wrong?

Also, i never see the PageChanged and PageChanging events fired... why?
by Parduz
Tue Oct 16, 2018 1:09 pm
Forum: C++ Development
Topic: Help in "routing" events between classes
Replies: 3
Views: 608

Re: Help in "routing" events between classes

wxWidgets does not have any "broadcast" event system. This annihilate pretty all of my doubts. :D I'm not quite sure what your problem is, based on the code and your description, it seems you already know everything you need to know :) Basically, i thought that wxTheApp->GetTopWindow()->GetEventHan...
by Parduz
Tue Oct 16, 2018 9:53 am
Forum: C++ Development
Topic: Help in "routing" events between classes
Replies: 3
Views: 608

Help in "routing" events between classes

I have a Serial class that manages the transmission of a RS232, and a listening thread to read that port. It is declared like this: wxDECLARE_EVENT(wxEVT_MYTHREAD, wxCommandEvent); wxDECLARE_EVENT(wxEVT_SERIAL, wxCommandEvent); class CommManager : public wxEvtHandler, public wxThreadHelper { public:...
by Parduz
Thu Jul 26, 2018 4:56 pm
Forum: C++ Development
Topic: Confused about wxThreadHelper and how to use it
Replies: 7
Views: 809

Re: Confused about wxThreadHelper and how to use it

Oh.... Thanks a lot!
Everything works without crashes, now. :oops:
I have a question: the event fired from the listening thread (in the Entry() loop) will be executed in that thread or in the main one?