Search found 257 matches

by iwbnwif
Sat Sep 23, 2017 8:03 pm
Forum: C++ Development
Topic: i only want to have horicontal lines in my grid
Replies: 5
Views: 156

Re: i only want to have horicontal lines in my grid

You need to subclass wxGrid (as I think you have done with MidiGrid) and override the function as suggested by Doublemax. In the overridden function, you just need to return a null pen, e.g. midigrid.h could look something like this: #include <wx/grid.h> // Base class: wxGrid #include <wx/pen.h> cla...
by iwbnwif
Sun Sep 10, 2017 8:41 am
Forum: General Development
Topic: wxFreeChart realtime plot
Replies: 7
Views: 297

Re: wxFreeChart realtime plot

Hmm, interesting. I didn't find that version before.

I may have a look at it, but at the moment the priority for me is to improve the documentation and implement zooming and panning - sorry.
by iwbnwif
Fri Sep 08, 2017 10:10 pm
Forum: General Development
Topic: wxFreeChart realtime plot
Replies: 7
Views: 297

Re: wxFreeChart realtime plot

If it is a smooth scrolling display that you are trying to achieve, then I think it would be quite hard to do with the current wxFreeChart. That is because it is basically designed to draw multipurpose charts similar to Microsoft Excel. To achieve smooth scrolling, then the whole chart area needs to...
by iwbnwif
Fri Sep 08, 2017 7:27 pm
Forum: General Development
Topic: wxFreeChart realtime plot
Replies: 7
Views: 297

Re: wxFreeChart realtime plot

Hi, I don't think it is possible for wxFreeChart to update at this rate because of the underlying way in which it works. Also, it is single threaded currently. The best option is for you to capture your data points into your own buffer and then update the chart at a much slower speed (if you want to...
by iwbnwif
Thu Aug 31, 2017 6:21 pm
Forum: Component Writing
Topic: wxGraphicsContex Text Drawing
Replies: 8
Views: 415

Re: wxGraphicsContex Text Drawing

Since my problem is associated only with DrawText(), I've temporarily moved all my TextDrawing functionality to non-GraphicsContext drawing. Actually, I have found this to be a better solution. It is possible to draw using both a 'normal' wxDC and a wxGCDC onto the same DC. I found that the text lo...
by iwbnwif
Thu Aug 31, 2017 1:52 pm
Forum: C++ Development
Topic: Taking and saving screenshots
Replies: 33
Views: 835

Re: Taking and saving screenshots

[EDIT3:] I think it's safe to say, that the screenshot doesn't like transparency at all. See window frame in the second applied picture. I had similar problems as you can see in the YouTube video linked in this post: https://forums.wxwidgets.org/viewtopic.php?f=1&t=41448#p169981 I believe the s...
by iwbnwif
Thu Aug 31, 2017 12:47 pm
Forum: C++ Development
Topic: current preferred method of executing async sub-processes [SOLVED]
Replies: 3
Views: 186

Re: current preferred method of executing async sub-processes [SOLVED]

The following works for me on Windows 10 using the latest development version of wxWidgets from GitHub. wxShell("echo. 2> test.docx"); wxExecute("C:\\Program Files (x86)\\Microsoft Office\\root\\Office16\\WINWORD.EXE /t test.docx", wxEXEC_ASYNC); You might like to try these and s...
by iwbnwif
Thu Aug 31, 2017 9:40 am
Forum: C++ Development
Topic: Error: trying to encode undefined Unicode character [SOLVED]
Replies: 4
Views: 194

Re: Error: trying to encode undefined Unicode character [SOLVED]

Yes, that was it!

Of course, it is obvious now. This asserts:

Code: Select all

wxLogMessage ("but remains 100% compatible");


But this is fine:

Code: Select all

wxLogMessage ("but remains 100%% compatible");


Many thanks for your help =D> I only wish the assert message could be a little less cryptic!
by iwbnwif
Thu Aug 31, 2017 8:08 am
Forum: C++ Development
Topic: Error: trying to encode undefined Unicode character [SOLVED]
Replies: 4
Views: 194

Re: Error: trying to encode undefined Unicode character [SOLVED]

Good call DM! wxString doc = stream.GetString(); wxLogMessage ("%s", doc); Works as expected, whilst ... wxString doc = stream.GetString(); wxLogMessage (doc); ... doesn't (asserts as described in OP). It would have been interesting to see the content of a "bad" string. With one ...
by iwbnwif
Wed Aug 30, 2017 9:17 pm
Forum: C++ Development
Topic: Error: trying to encode undefined Unicode character [SOLVED]
Replies: 4
Views: 194

Error: trying to encode undefined Unicode character [SOLVED]

The subject text is an assert that happens in the wxLogMessage call of the following code: wxCurlHTTP get ("http://www.wxwidgets.org/"); wxStringOutputStream stream; if (get.Get (stream) && stream.IsOk()) { wxLogMessage (stream.GetString()); } Please leave aside the discussion abou...
by iwbnwif
Sun Jul 30, 2017 1:46 pm
Forum: General Development
Topic: any chart control for wxwidgets ?
Replies: 2
Views: 223

Re: any chart control for wxwidgets ?

Hi,

I have been trying to update the wxFreeChart component over the past few months. Currently though, summer activities have slowed progress.

You can see the current state of things here: https://github.com/iwbnwif/wxFreeChart.

Feel free to leave any comments / issues.
by iwbnwif
Wed Jul 12, 2017 2:57 pm
Forum: C++ Development
Topic: Re: How to make the lines smooth using wxDC
Replies: 3
Views: 302

Re: How to make the lines smooth using wxDC

Thanks, that is much clearer! In order to have aliased lines, you can simply create a wxGCDC from your wxWindowDC or wxMemoryDC as follows: wxGCDC gdc(dc); Then draw to gdc using exactly the same code as you do now. I have been working on a lot of updates to wxFreeChart here . I found that it is bes...
by iwbnwif
Tue Jul 11, 2017 4:04 pm
Forum: General Forum Issues
Topic: Serial posters who waste our time
Replies: 13
Views: 1115

Re: Serial posters who waste our time

So, my question to the forum is valid: have other people suffered from being ‘helped’ this way by any user, and what can we do about it? Some suggestions regarding your second question: 1. For a completely free, friendly response to your question that may be advice, suggestions, anecdotes or just c...
by iwbnwif
Tue Jul 11, 2017 12:55 pm
Forum: C++ Development
Topic: Re: How to make the lines smooth using wxDC
Replies: 3
Views: 302

Re: How to make the lines smooth using wxDC

Please could you provide a close up image to show the 'disturbances' that you mention. Also, have you drawn both graphs using wxDC - what exactly is the comparison that is being made with these two images? There seems to be a bit of difference in the anti-aliasing, but I am not sure if this is your ...
by iwbnwif
Mon Jul 10, 2017 10:12 pm
Forum: General Forum Issues
Topic: Serial posters who waste our time
Replies: 13
Views: 1115

Re: Serial posters who waste our time

I would also like to thank doublemax for his untiring patience and support on these forums.

Why anyone would seek to criticise someone who is trying to help them is beyond me.

Go to advanced search