Search found 22 matches

by psychegr
Sun Apr 30, 2017 10:46 am
Forum: wxCode
Topic: wxFreeChart - Request for Opinions
Replies: 8
Views: 1262

Re: wxFreeChart - Request for Opinions

Well stripping out the "Fire" code and "Observable" was rather easier than I was expecting. Also implementing some simple events is not to bad. What is harder is deciding a good way to propagate them. My current thoughts are that every object which can change is derived from wxE...
by psychegr
Fri Apr 28, 2017 3:59 pm
Forum: wxCode
Topic: wxFreeChart - Request for Opinions
Replies: 8
Views: 1262

Re: wxFreeChart - Request for Opinions

I have created a branch in Github https://github.com/iwbnwif/wxFreeChart/tree/remove_fire for getting rid of the Fire mechanism. The aim is to restore the functionality of the demos only using wxEvent. AFAIK that is only: ⋅ Dynamic data ⋅ Scrolling windows That is exactly what i...
by psychegr
Thu Apr 27, 2017 3:57 pm
Forum: wxCode
Topic: wxFreeChart - Request for Opinions
Replies: 8
Views: 1262

Re: wxFreeChart - Request for Opinions

As an experiment, I have deleted all the event code and it makes no difference to any of the demos with the exception of the dynamic XY demo. My thought is therefore to completely remove all the observable / observer code as well and implement just a "DatasetUpdated" -> "Redraw"...
by psychegr
Thu Apr 27, 2017 9:10 am
Forum: wxCode
Topic: wxFreeChart - Request for Opinions
Replies: 8
Views: 1262

Re: wxFreeChart - Request for Opinions

I am joining in as i would really like to participate in adding features and modernizing it. The "FIRE" events do really bother me and honestly i dont understand how they work or why they are there since wxWidgets offers a better event mechanism that we could implement there. As you know i...
by psychegr
Sat Feb 18, 2017 1:46 pm
Forum: Announcements and Discoveries
Topic: wxFreeChart project need contributors
Replies: 36
Views: 20810

Re: wxFreeChart project need contributors

I just saw that there seems to be some activity on the wxfreechart component. Back in 2010/2011 I made some additions to this component for my http://softsolutions.sedutec.de/audioanalyser.php project. These additions were: - LineTextMarker (for displaying a linemarker with some text, e.g. an measu...
by psychegr
Sun Jan 29, 2017 11:32 am
Forum: Announcements and Discoveries
Topic: wxFreeChart project need contributors
Replies: 36
Views: 20810

Re: wxFreeChart project need contributors

Further suggestions I recommend implementing an optional "nice labels" function... This can be tricky, because a general solution will have to cope with very small numbers and very large numbers, while the ends of the axes might only be a small proportion of these values or could be at ex...
by psychegr
Sat Jan 28, 2017 1:30 am
Forum: Announcements and Discoveries
Topic: wxFreeChart project need contributors
Replies: 36
Views: 20810

Re: wxFreeChart project need contributors

Further suggestions I recommend implementing an optional "nice labels" function, the charts look prettier/natural when used. It may not be obvious with sample data, but when you have a lot of varied natural data, the numbers chosen for tick label can look odd to an end user. On a similar ...
by psychegr
Fri Jan 27, 2017 7:37 pm
Forum: C++ Development
Topic: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]
Replies: 8
Views: 597

Re: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]

That's much more complicated than what i had in mind. You already had an event handler for wxGRID_CELL_CHANGED, so i had just sent that event. And pushing a new event handler shouldn't have been necessary. This is what i had in mind (untested though): Inside class derived from wxGridTableBase: wxGr...
by psychegr
Fri Jan 27, 2017 5:45 pm
Forum: C++ Development
Topic: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]
Replies: 8
Views: 597

Re: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]

I see two options: a) If you don't want to change too much to your current code, you could send a GRID_CELL_CHANGED event from the table to the grid when the model data changed. b) You move the gridChanged flag to the table and add a public method to your derived class that returns the value. Well ...
by psychegr
Fri Jan 27, 2017 2:27 pm
Forum: C++ Development
Topic: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]
Replies: 8
Views: 597

Re: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]

but there is one boolean flag "gridChanged = true" that triggers a whole bunch of other functions like saving the grid data Is that in the grid or the gridtable? It's hard to tell without more details, but it sounds like you have a bad separation of model and view. The grid just displays ...
by psychegr
Fri Jan 27, 2017 1:56 pm
Forum: C++ Development
Topic: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]
Replies: 8
Views: 597

Re: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]

That is not too much effort to implement but there is one boolean flag "gridChanged = true" that triggers a whole bunch of other functions like saving the grid data. My biggest concern is that flag which changes in the GRID_CELL_CHANGED event handler. If only there was a GRID_TABLE_CELL_CH...
by psychegr
Fri Jan 27, 2017 1:13 pm
Forum: C++ Development
Topic: wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]
Replies: 8
Views: 597

wxGridTableMessage trigger cell changed event in wxGrid [SOLVED]

Hi, on one of my latest projects i have the need to change the wxGrid cell values dynamically using a wxGridTable. So i have this code : wxGridTableMessage msg(m_table, wxGRIDTABLE_REQUEST_VIEW_GET_VALUES); m_table->GetView()->ProcessTableMessage(msg); which works ok but there is an issue that i am ...
by psychegr
Tue Jan 24, 2017 12:17 am
Forum: Announcements and Discoveries
Topic: wxFreeChart project need contributors
Replies: 36
Views: 20810

Re: wxFreeChart project need contributors

Hi, well i decided to start working on adding some mouse event handling on the xy plot line charts. Bellow you can see the mouse event handler but still it needs lots of work because it lags quite a bit when dragging the lines. void wxChartPanel::OnMouseEvents(wxMouseEvent &ev) { //wxClientDC dc...
by psychegr
Mon Jan 23, 2017 9:38 am
Forum: Announcements and Discoveries
Topic: wxFreeChart project need contributors
Replies: 36
Views: 20810

Re: wxFreeChart project need contributors

I'm just curious, where did you get version 1.7 from? AFAIK the last official (by Andrey) version available is 1.6? There is also a version where iwnbf and I made few cosmetic changes at github . From what I remember 1.6 had some code related to events but I do not think it was ever finished/functi...
by psychegr
Mon Jan 23, 2017 12:38 am
Forum: Announcements and Discoveries
Topic: wxFreeChart project need contributors
Replies: 36
Views: 20810

Re: wxFreeChart project need contributors

Hi, anyone knows how i can use mouse events on a chart panel? I would like to be able to drag a data point up and down(y axis) and also zoom/pan. I have the wxFreeChart 1.7 compiled with wxWidgets 3.0.2 on win10 machine. Any help would be highly appreciated because i am looking at the source files a...

Go to advanced search