Search found 274 matches

by iwbnwif
Tue Oct 06, 2020 3:30 pm
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 379

Re: "wx.rc" not found on MSYS2/W64 on Win10

I was fighting with a similar problem yesterday. It turned out to be a problem with the MSYS2 version of windres relating to parsing include paths, however my case may have been different as I have the include files on D: drive. In the end, I used the mingw-64 (https://sourceforge.net/projects/mingw...
by iwbnwif
Thu Jun 20, 2019 2:19 pm
Forum: General Development
Topic: WxWidgets?
Replies: 12
Views: 1577

Re: WxWidgets?

There doesn't appear to be a way to bind a function using a string with the function name. This is possible in Qt out of the box and would be helpful to be able to do this.
Not available in wxWidgets as Doublemax says, however it is readily available in Ponder.
by iwbnwif
Fri Jun 07, 2019 1:58 pm
Forum: C++ Development
Topic: Timer (one-off) memory ownership semantics? Delete in event?
Replies: 16
Views: 1285

Re: Timer (one-off) memory ownership semantics? Delete in event?

Is it just that you want the timer to fire once and then stop?

If so, you can use StartOnce() or pass wxTIMER_ONE_SHOT to the normal Start() method.
by iwbnwif
Fri Jun 07, 2019 1:03 pm
Forum: C++ Development
Topic: wxSocketBase: Exiting after reading data
Replies: 19
Views: 1129

Re: wxSocketBase: Exiting after reading data

4. In response to Socket read event I just call the method we have been discussing. If you are responding to a wxSOCKET_INPUT event, then you can simply use Read(buffer, len) to read all available bytes and return. I am pretty sure that Read is guaranteed to get something if a wxSOCKET_INPUT event ...
by iwbnwif
Fri Jun 07, 2019 11:26 am
Forum: C++ Development
Topic: wxSocketBase: Exiting after reading data
Replies: 19
Views: 1129

Re: wxSocketBase: Exiting after reading data

adding the flag causes it read only once and never hit the end of the loop. So the problem is even bigger now :) Check the program flow mentioned by Kvaz1r. I think that you need both the flag and to adjust the 'if' condition. I know very little about sockets, but isn't a socket connection like a p...
by iwbnwif
Fri Jun 07, 2019 10:40 am
Forum: C++ Development
Topic: wxSocketBase: Exiting after reading data
Replies: 19
Views: 1129

Re: wxSocketBase: Exiting after reading data

Code: Select all

//flags for notify in case they are necessary
SetNotify(wxSOCKET_INPUT_FLAG | wxSOCKET_LOST_FLAG | wxSOCKET_CONNECTION_FLAG);
That is all I have set.
You may need to set:

Code: Select all

SetFlags(wxSOCKET_NOWAIT)
For Read() not to wait for data and for LastReadCount() to return 0.
by iwbnwif
Fri Jun 07, 2019 10:00 am
Forum: C++ Development
Topic: wxSocketBase: Exiting after reading data
Replies: 19
Views: 1129

Re: wxSocketBase: Exiting after reading data

What flags do you have set with SetFlags() ? This will change the behavior of Read(). Also, out of interest, why are you subclassing wxSocketClient? I think this isn't necessary for a simple transfer. Finally, I found some good examples of simple socket use here: http://cool-emerald.blogspot.com/201...
by iwbnwif
Mon Jun 03, 2019 7:38 pm
Forum: The Code Dump
Topic: wxSimpleJSON - JSON Library
Replies: 8
Views: 1589

Re: wxSimpleJSON - JSON Library

There was old discussion about it and was rejected as part of wxWidgets. But I have been using it and it have simplified our life. Please meed wxSimpleJSON, CJSON Warapper written by Eran Ifrah with some updated I think that this library is a good idea and wish it had been accepted as part of wxWid...
by iwbnwif
Fri May 24, 2019 1:29 pm
Forum: Compiler / Linking / IDE Related
Topic: Cross compiling from Linux PC for ARM: what am i doing wrong?
Replies: 3
Views: 862

Re: Cross compiling from Linux PC for ARM: what am i doing wrong?

The article that Doublemax links does illustrate how to do this. Please look also at the updated version of the article (it is linked in the original, but just in case). http://yasriady.blogspot.com/2016/01/raspberry-pi-toolchain.html I have to say that the process is quite hard work, especially the...
by iwbnwif
Fri Mar 15, 2019 10:25 am
Forum: C++ Development
Topic: How to create such a layout?
Replies: 23
Views: 1376

Re: How to create such a layout?

The only problem is that the horizontal scrollbar will cover the whole width of the control, including the the row label area. Which looks kind of weird. True, but presumably it is possible to use ShowScrollbars to hide the horizontal one and then add a wxScrollBar of the right width below the grid...
by iwbnwif
Fri Mar 15, 2019 7:58 am
Forum: C++ Development
Topic: How to create such a layout?
Replies: 23
Views: 1376

Re: How to create such a layout?

Can't you derive from wxGridRowHeaderRenderer and draw row headers without a border or background?
by iwbnwif
Wed Jul 18, 2018 1:15 pm
Forum: C++ Development
Topic: 2D-Plots
Replies: 44
Views: 5451

Re: 2D-Plots

@mill-j I haven't used wxQT before but I will try to take a look at it at some point. I too am not a fan of the ./configure build generator (Autotools?) but the popular alternative (CMake) doesn't seem much better. I guess I will have to bite the bullet at some point and learn one or the other prope...
by iwbnwif
Tue Jul 17, 2018 11:02 am
Forum: C++ Development
Topic: 2D-Plots
Replies: 44
Views: 5451

Re: 2D-Plots

wxChartPanel is subclassed from wxScrolledWindow, aka wxScrolled<wxPanel> in recent versions of wxWidgets. So the behavior will be the same as for wxScrolledWindow in this respect. I always use sizers so haven't tried with fixed positioning, however if you are adding the wxChartPanel to a sizer then...
by iwbnwif
Mon Jul 16, 2018 5:49 pm
Forum: C++ Development
Topic: 2D-Plots
Replies: 44
Views: 5451

Re: 2D-Plots

Hi, I have been away from the forum for a few weeks and missed this topic before now. Sadly, I haven't been able to work on any updates to wxFreeChart for quite a while, but I really hope that will change later in the year and I can again spend some time on the project. Please do raise an issue for ...
by iwbnwif
Sun Apr 22, 2018 8:09 am
Forum: C++ Development
Topic: wxRibbon Office 2010 / Metro ArtProvider
Replies: 5
Views: 2137

Re: wxRibbon Office 2010 / Metro ArtProvider

Did you see my other post here:

viewtopic.php?f=21&t=37348

There is a flat 'office' look version class at the end you can look at.