Search found 905 matches

by utelle
Fri Jan 10, 2020 4:53 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 441

Re: Problems with Blit

The approach you recommended is what we were doing, it looks good in PDF but not good when drawing to the screen using a wxDC which is why we were looking for a new solution. It's really hard to get the end caps (half circles) to line up with the arc endpoints. Yes, due to the integer coordinate sy...
by utelle
Tue Jan 07, 2020 6:34 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 441

Re: Problems with Blit

I would recommend that you explicitly draw the outline of the requested arc. For this you will have to determine the start and end points for the inner and outer outline of the arc (depending on the path width of the arc) using an appropriate line width. DrawArc(startXouter, startYouter, endXouter, ...
by utelle
Mon Jan 06, 2020 8:50 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 441

Re: Problems with Blit

See attached file. Basically it draws a filled arc, then sets all pixels inside the arc outline to transparent. As said pixel operations won't work for wxPdfDC. I was able to get this to work by using DrawBitmap instead of Blit but it's very slow. I'll take a look. If I can come up with a feasible ...
by utelle
Mon Jan 06, 2020 6:30 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 441

Re: Problems with Blit

We're trying to draw the outline of the arc only as in the second picture with the internal pixels transparent. Is there an easy way to do this? In principle it should be possible to achieve this by using the wxDC::DrawArc method. Could you please provide some code how you currently produce the int...
by utelle
Sat Jan 04, 2020 8:41 am
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 441

Re: Problems with Blit

I'm using the wxPdfDC Blit method to print an arc outline. It works perfectly when I print to the screen using wxDC but when I print to a PDF using the wxPdfDC , it displays a black rectangle with the arc inside. Please keep in mind that PDF is a vector graphics format, while on screen you have a p...
by utelle
Fri Dec 20, 2019 2:38 pm
Forum: Database Related
Topic: complicated update replace part of field
Replies: 3
Views: 381

Re: complicated update replace part of field

To make it a bit clearer some more examples: Example two G5944, not finished yet The G5944 should not be there. Example Three G3456 this gets long G5746 really long G2434 really only the G5746 should not be there. So any apperance of any number from 5625 to 5944 with a " G" in front of it should be...
by utelle
Thu Dec 19, 2019 7:02 pm
Forum: Database Related
Topic: complicated update replace part of field
Replies: 3
Views: 381

Re: complicated update replace part of field

I look of a simple resolution (like one update/replace command) for the following problem, or will I have to write a programm. Inside one field of the database there are " G5625" to " G5944" standing inside the field, which simply must be deleted from the field. The task is formulated a bit poorly....
by utelle
Mon Nov 18, 2019 8:43 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

Just another thought, is it possible to link to an not yet existing page? Yes, in PDF documents it is possible to create forward references, that is, one can add links to the current page for which the destination page will be set later. See tutorial6 of the sample application. Meaining if I create...
by utelle
Fri Nov 15, 2019 8:33 am
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

Ok, I managed it, also for the normal pdf for printing everything is fine. For the pdf with colours, I have some problems, but decided to leave it for now. As it is anyway just for screen view. Where the programm not works. Nevertheless I'd like to know which kind of problems you experienced with c...
by utelle
Thu Nov 07, 2019 12:57 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

so managed to write a cell in the first line behind it a multicell (1 line with shorter length) then rest of multicell with normal line length. Together with your hint of only writing all lines except the last one, I guess it should be possible to get the position, as then the last line will be wri...
by utelle
Thu Nov 07, 2019 12:54 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

Does multicell justify just with the length of line or also the margin, whichever comes first? As it seams it only justifies the length of the line and ignoring the right margin all together and writes the one line length to it. It depends. If the width parameter of method MultiCell is set to 0, th...
by utelle
Thu Nov 07, 2019 11:02 am
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

Thanks for the tipp with the template. You are welcome. Is there a way to find the position where it stopped writing by multicell? The MultiCell method sets the current position to the beginning of the next line below. And this is the intended behaviour. In Cell there is the way ln Indicates where ...
by utelle
Wed Nov 06, 2019 10:03 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

Yes everything works correct now. Thanks for confirming. Would have some wxpdfdoc related questions: First is it somehow possible to add a created pdf page(index of a book) to the front of another created pdf file (the book)? With the current version of wxPdfDocument you could create the index as a...
by utelle
Tue Nov 05, 2019 2:12 pm
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

I will look into the issue within the next days. Most likely fixing it will require only minor adjustments to the build files. There were 2 issues in the wx_setup.props property file coming with wxPdfDocument : A superfluous backslash was added to the library output path The path suffix was not pro...
by utelle
Tue Nov 05, 2019 10:07 am
Forum: wxCode
Topic: wxpdfdoc lib directory wrong
Replies: 18
Views: 806

Re: wxpdfdoc lib directory wrong

Solved it by setting the additional lib directory to vc_x64_. Well, this is of course only a temporary workaround. Just for conformity it would be good if the directory would be vc_x64_lib. I will look into the issue within the next days. Most likely fixing it will require only minor adjustments to...