-   Linux - Software (
-   -   code::blocks wxwidgets example terminal program? (

Quakeboy02 01-23-2017 12:35 AM

code::blocks wxwidgets example terminal program?
I'm looking for a simple example RS-232 terminal program for code::blocks using wxwidgets. I've never used either code::blocks or wxwidgets before, and it's been at least 15 years since I've written any sort of GUI code. So, I need some training wheels to get me started.

The example program doesn't need to do much, or even do it well. I just need something that actually compiles and runs to give me a start, and I haven't been able to find anything suitable on the net, or at least anything that I recognized as usable.

Most of the stuff I've been able to find was written only for Windows. I'd much rather do the development under Linux, which is more familiar to me at this point, and then deal with the cross platform mods (I will need to also create a Windows executable) after the Linux part is working.

Anyone have a link or even some simple sample code you'd be willing to share?

And, in case you're still reading and wondering what I'm doing: I've developed a good quality GPSDO (see, and I need to build a user interface to save logs, change PID gains, kick off survey, hold, that sort of thing.

thanks in advance.

norobro 01-23-2017 01:48 PM

1 Attachment(s)
Since you haven't used code::blocks or wxwidgets, I recommend trying Qt. It has built in serial port capability via the QtSerialPort classes and example code.

Attached is a screen shot of the enumerator example running on my machine. ttyUSB0 is a Garmin device and ttyS0 is a Davis weather station.

Quakeboy02 01-23-2017 03:21 PM


I think I've gotten over the fear, uncertainty, and doubt of getting this started! I had tried to get a "simple" terminal program running that I found, but it was so tied to Windows that I couldn't even get a start on getting it compiled. After looking at it more, I realized that the files hadn't even downloaded properly. So I abandoned that and tried creating a simple "HelloWorld" project with a single text field. After looking at that, I started remembering some of the stuff I had done in the 90s, so maybe I can just use this dummy project to get it going. That's probably for the best. If I had found something "kinda" right, I would have been tied to whatever assumptions the author had made, and none of them would probably have fit my needs.

All times are GMT -5. The time now is 01:18 PM.