Search found 282 matches

by iwbnwif
Thu Aug 31, 2017 1:52 pm
Forum: C++ Development
Topic: Taking and saving screenshots
Replies: 33
Views: 7995

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
Replies: 3
Views: 1722

Re: current preferred method of executing async sub-processes

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
Replies: 4
Views: 1729

Re: Error: trying to encode undefined Unicode character

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
Replies: 4
Views: 1729

Re: Error: trying to encode undefined Unicode character

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
Replies: 4
Views: 1729

Error: trying to encode undefined Unicode character

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: 3064

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: 2231

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: 27795

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: 2231

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: 27795

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.
by iwbnwif
Sat May 20, 2017 7:47 pm
Forum: C++ Development
Topic: is there Outlook style Vertical menu Control with wxWidgets?
Replies: 9
Views: 3510

Re: is there Outlook style Vertical menu Control with wxWidgets?

It's an old code and seems to be throw away by author.
https://github.com/NewPagodi/wxAccordion

The author is regularly on this forum.
by iwbnwif
Fri May 19, 2017 1:38 pm
Forum: C++ Development
Topic: is there Outlook style Vertical menu Control with wxWidgets?
Replies: 9
Views: 3510

Re: is there Outlook style Vertical menu Control with wxWidgets?

Do you mean an accordion control like the one here?

(Please scroll down on that link, there are some pictures in the Readme.md).
by iwbnwif
Mon May 01, 2017 7:46 am
Forum: C++ Development
Topic: Remove selection ring from the grid
Replies: 1
Views: 641

Re: Remove selection ring from the grid

I think that I have done this before using wxGrid::SetCellHighlightPenWidth with a value of zero.

It is worth noting the difference between cell selection and cell highlight in this case.
by iwbnwif
Sat Apr 29, 2017 9:26 pm
Forum: wxCode
Topic: wxFreeChart - Request for Opinions
Replies: 11
Views: 13745

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 wxEv...
by iwbnwif
Sat Apr 29, 2017 9:21 pm
Forum: wxCode
Topic: wxFreeChart - Request for Opinions
Replies: 11
Views: 13745

Re: wxFreeChart - Request for Opinions

Nice chart! Also a "nice labels" kind of thing should be there as an option. I have implemented a 'nice' label numbering (as per the algorithm in this discussion http://stackoverflow.com/questions/8506881/nice-label-algorithm-for-charts-with-minimum-ticks), but not sure if this is what you...