Search found 1045 matches

by utelle
Sat Sep 18, 2021 4:19 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

In the latest wxPdfDocument version on GitHub I adjusted the scaling applied to hatch patterns, so that it should work now as expected. Please give it a try, and report back the results. Thanks in advance.
by utelle
Sat Sep 18, 2021 4:02 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 243

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

Well that was odd, it worked, in fact I actually only had to include wxChartViewer.cpp for it to work, you can't fault me for not knowing that though, I don't understand why this file is a special case, I didn't have to add any of the other files logically... Well, only if you set up a project for ...
by utelle
Fri Sep 17, 2021 4:13 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

You will see that if you display the PDF document in a PDF viewer and set the magnification factor to 800%, for example. You will see that the rectangle is hatched as requested. Yes!!!! I did not think of zooming in, great! Sounds right that the resolution is probably the cause for this very dense ...
by utelle
Fri Sep 17, 2021 2:37 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

i am confused, so can I use wxDC::DrawRectangle or do I have to use wxPdfDocument::Rect ? The former would be easier, but it does not show wxBRUSHSTYLE_BDIAGONAL_HATCH yet. Well, of course you should be able to use wxDC::DrawRectangle. In my previous post I wrote that the problem seems to be a scal...
by utelle
Fri Sep 17, 2021 9:37 am
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

unfortunately I could not get it to work with the latest version. Well, all I can tell is that the patterns work in the samples coming with wxPdfDocument. So, most likely there is something wrong in your code. I attached both failures, one from the png pattern and one with wxPDF_PATTERNSTYLE_BDIAGO...
by utelle
Fri Sep 17, 2021 8:31 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 243

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

Ok, I got ChartDirector working, with some tweaking I got one of the samples working, creating a chart and outputting to it PNG, thank you. (By the way, since I have my target platform set to win32, it did not work until I linked the win32 lib instead of the 64 one). Well, in one of your first post...
by utelle
Wed Sep 15, 2021 8:39 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 243

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

Ok, I've been going through the folder for a while now, and I'm confused as to which files I should grab... At first glance, the folder structure may be a bit confusing. However, I closely followed the folder structure you find in the ChartDirector distribution. The reason for this approach is that...
by utelle
Wed Sep 15, 2021 7:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 243

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

I'm trying to make my own apps, you're telling it's as simple as just adding the source files to my project? Yes, in principle it is as simple as that. Of course, you need to add references to the ChartDirector library (header include path, link libraries etc). Inspect the Visual C++ project and so...
by utelle
Wed Sep 15, 2021 4:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 12
Views: 243

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

I already have wxWidgets up and running, I want to use ChartDirector with it, at the bottom of this (1) page it says ChartDirector is already included within wxChartDir (Well, the trial version is, but that's all I need) so I'll only need to install that, but I don't know how to approach this, the ...
by utelle
Wed Sep 15, 2021 7:19 am
Forum: Announcements and Discoveries
Topic: ANN: wxPdfDocument 1.0.0 released
Replies: 0
Views: 123

ANN: wxPdfDocument 1.0.0 released

Version 1.0.0 of wxPdfDocument has been released. This version is compatible with wxWidgets 3.0.x , and 3.1.x . Sample PDF files created with wxPdfDocument can be found here . Due to the removal of support for wxWidgets 2.8.x there is a change in the major version number this time. A major enhanceme...
by utelle
Tue Sep 14, 2021 10:16 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

i can confirm that it is not a blank page anymore, but there is no pattern using the code posted previously. I used the graphics pattern file you posted here, and it worked for me. No idea what went wrong in your application. However, it would be nice if you could provide the resulting PDF file (wi...
by utelle
Fri Sep 10, 2021 2:03 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

For templates it is required to list all resources they depend on. This is done for fonts and images, but unfortunately not for patterns. I will try to fix this issue. However, this may take a few days, because I have a rather tight schedule at the moment. The latest commit (as of today) in the wxP...
by utelle
Thu Sep 09, 2021 5:12 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

this is the basic level of creating the pdf, the actual drawing happens depp within printToDC [...] is there an easy way to get rid of these tabs when i insert code? i am tired of manually removing the spaces in each line when posting code. This is an issue of the forum software. Unfortunately, I h...
by utelle
Thu Sep 09, 2021 2:02 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

okay, thank you! i changed the code like this: wxImage img = SystemState::loadImage(wxT("images/pdfhatch.png")); pdfDcmt.AddPattern(wxS("bluehatch"), img, 2, 2); wxPdfArrayDouble dash2; wxPdfLineStyle style2(0.5, wxPDF_LINECAP_BUTT, wxPDF_LINEJOIN_MITER, dash2, 0., wxColour(255, 0, 0)); pdfDcmt.Set...
by utelle
Tue Sep 07, 2021 9:15 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 18
Views: 1256

Re: wxPDF wxBRUSHSTYLE substitude

thank you! i tried it but only get an empty page without any error message. what I am doing is this after successfully loading via wxImage::LoadFile(path) pdfDcmt.AddPattern(wxS("bluehatch"), img, 32, 32); ... pdfDcmt.SetFillPattern(wxS("bluehatch")); pdfDcmt.Rect(pnt.x, pnt.y, sz.GetWidth(), sz.Ge...