Search found 122 matches

by FireMail
Wed Feb 18, 2009 11:54 am
Forum: C++ Development
Topic: special print preview
Replies: 6
Views: 1509

I'm currently trying to use the printing facility that wx provides, but i'm facing a problem: when i want to change the document size. i use this: MyPrintout::MyPrintout() :wxPrintout( "Test" ) { wxPrintout::SetPageSizeMM(10,10); } but the document size doesnt get affected at all. any idea...
by FireMail
Tue Feb 17, 2009 3:46 pm
Forum: C++ Development
Topic: special print preview
Replies: 6
Views: 1509

we dont allow printing, we just need a preview for our cutting hardware. thats diffrent to a printer - we dont have endpoints here ;)

how do you mean a layer? a layer supporting to convert our data to what? which class?
by FireMail
Tue Feb 17, 2009 8:17 am
Forum: C++ Development
Topic: special print preview
Replies: 6
Views: 1509

instead of drawing everything on our own, we simply would want to pass the data (line from, line to) to some object that produces the output. Do you have an example of that output? not really. we only grab data from vectorized files (AI, EPS, PS ...) and store it in our own structures struct sPoint...
by FireMail
Tue Feb 17, 2009 7:30 am
Forum: C++ Development
Topic: special print preview
Replies: 6
Views: 1509

special print preview

hi there, i'm working on a project to communicate with cutting plotters for cutting out vectorized data. we now would want to integrate a printing / cutting preview. instead of drawing everything on our own, we simply would want to pass the data (line from, line to) to some object that produces the ...
by FireMail
Mon Nov 03, 2008 9:42 am
Forum: C++ Development
Topic: wxSocket: wxYield called recursively
Replies: 5
Views: 2472

can you show me some code (Thread creation, thread code itself, flags of the socket)
by FireMail
Thu Oct 16, 2008 7:12 am
Forum: C++ Development
Topic: wxPROTO_NETERR
Replies: 0
Views: 525

wxPROTO_NETERR

hi, we try to determine the current version of the used program with the following code fragments: wxHTTP get; get.SetHeader( "Content-type", "text/html; charset=utf-8" ); get.SetTimeout(60); while( !get.Connect("www.test.com") ) Sleep(5); wxInputStream *httpStream = ge...
by FireMail
Wed Oct 08, 2008 12:07 pm
Forum: C++ Development
Topic: Problem with portability
Replies: 8
Views: 1775

it is not allowed and supported to distribute programs that are compiled in debug mode. this "application configuration..." stuff is from winSXS. winSXS handles different library versions and does not support debug libraries. so when you want to distribute your software compile every singl...
by FireMail
Sat Oct 04, 2008 10:27 am
Forum: C++ Development
Topic: painting with alpha into dc
Replies: 6
Views: 2926

thanks i fixed it.
had to change the creation of the DC to be dynamic and not static and then to delete the dc bevore adding the mask.

thank you both for your ideas, works great, looks good :)
by FireMail
Sat Oct 04, 2008 10:07 am
Forum: C++ Development
Topic: painting with alpha into dc
Replies: 6
Views: 2926

Maybe I don't understand what you want to do, but maybe you could get away with using the last argument of void DrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool transparent) So I'm guessing you should be able to do something like this: wxMemoryDC pdc( *m_pkBmpPreview ); //clear bac...
by FireMail
Fri Oct 03, 2008 5:37 pm
Forum: C++ Development
Topic: painting with alpha into dc
Replies: 6
Views: 2926

it would be ok for me if i need to do raw bitmap access, if i can set the background to transparent.
do you have any references for me how to do that?
by FireMail
Fri Oct 03, 2008 3:44 pm
Forum: C++ Development
Topic: painting with alpha into dc
Replies: 6
Views: 2926

painting with alpha into dc

hi there, i'm currently rendering graphics with cairo into a dc of a panel. with cairo I can set rgba values for everything. because I have multiple graphics I need to render, I create a wxMemoryDC connected with a bitmap: wxMemoryDC pdc( *m_pkBmpPreview ); and draw into that MemoryDC after renderin...
by FireMail
Fri Oct 03, 2008 3:43 pm
Forum: C++ Development
Topic: My process running after the exit!
Replies: 3
Views: 1000

when you close the wxFrame thats set to SetTopWindow, every instance will close too. One time it happened to me that i forgot to set this window as parent in c'tor of another frame. that was the reason why it still ran on.
by FireMail
Fri Oct 03, 2008 3:39 pm
Forum: C++ Development
Topic: Antialiasing
Replies: 3
Views: 1257

you can use cairo for drawings. cairo also supports more logical modes and that stuff.
you can easily get a dc from e.g. a wxPanel and pass it over to cairo
by FireMail
Tue Sep 30, 2008 1:40 pm
Forum: C++ Development
Topic: Zooming
Replies: 7
Views: 2475

its relatively easy. the way how to zoom by using SetUserScale is known (link above), also moving inside a zoomed image (drag and drop event, SetDeviceOrigin). To calculate backwars what position a click originally had i came to this conclusion: eventPoint = event.GetPosition(); eventPoint.x *= m_fZ...
by FireMail
Tue Sep 30, 2008 7:12 am
Forum: C++ Development
Topic: Zooming
Replies: 7
Views: 2475

got it