Search found 164 matches

by rsb
Tue Sep 08, 2020 1:26 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

m_scaleX and m_scaleY are both equal to 1.0.
by rsb
Mon Sep 07, 2020 10:13 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

This is better, the rectangles display but they are offset down and to the left slightly. See second picture.

Also, In another design, we are displaying in color and the color turns to black and white at some point.
Looks like something is switching it off.

ScreenRR.PNG
Screen Display
ScreenRR.PNG (9.09 KiB) Viewed 251 times
wxPDF_RR.PNG
Adobe PDF from WxPdfDocument
wxPDF_RR.PNG (10.47 KiB) Viewed 251 times
Thanks.
by rsb
Mon Sep 07, 2020 2:16 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

I'm sorry Utelle, I got the PPI wrong. The screen DC returns 96, the wxPdfDC returns 1200.
GetSize() returns x: 13,200 and y: 10,200
by rsb
Sat Sep 05, 2020 9:59 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

The origin is specified in display units. I'm seeing values of x: 6591 and y: 5946 and the rotation is in radians (5.49778). The origin is the center of the rectangle. mat.Translate(origin_position.x_coord, origin_position.y_coord); mat.Rotate(radians) ; The PPI is 96 in the x and y direction, using...
by rsb
Fri Sep 04, 2020 11:34 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

We're using wxMM_TEXT.

Thanks.
by rsb
Fri Sep 04, 2020 6:50 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

Okay, I've added a screen shot of two rectangles, one rotated and one not as well
as two PDF files. One output from our GDI routines (TEST_GDI.pdf) and the other
from the wxPdfDoc library (TEST_PDF.pdf). Maybe it will shed some light on what is wrong.
Thanks.
by rsb
Fri Sep 04, 2020 4:11 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

Hi, I was using wxWidgets 3.1.0, then upgraded to 3.1.4 but still don't see anything. I'm running in debug and stepped into the wxpdfdoc code and I do see the new functions you added. It looks fine on a wxWidgets panel so I assume the pen and brush are set correctly. I also added wxUSE_DC_TRANSFORM_...
by rsb
Thu Sep 03, 2020 7:37 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

Re: wxPdfDocument: Plotting a Rotated Rectangle

Hi Utelle, Thanks for updating, but does not seem to be working unless I'm doing something wrong. I see the new functions so I believe I built it correctly but no output at all. Rounded rectangles at 0 degree rotation display correctly. Below is the code I'm using. Thanks. wxAffineMatrix2D mat = dc-...
by rsb
Tue Jul 14, 2020 3:45 pm
Forum: wxCode
Topic: wxPdfDocument: Plotting a Rotated Rectangle
Replies: 20
Views: 872

wxPdfDocument: Plotting a Rotated Rectangle

Hello, In wxWidgets, we're using the wxAffineMatrix2D class to display a rotated rectangle. Below is a small sample of the code we use. This code works great on a panel but when we use the wxPdfDC class, the rectangle disappears. Is this the correct way to display a rotated rectangle in this library...
by rsb
Wed Jul 08, 2020 6:06 pm
Forum: Platform Related Issues
Topic: MSW: Migration from 3.0.4 to 3.1.3 slows down (freezes) layout in wxScrolledWindow
Replies: 31
Views: 1402

Re: MSW: Migration from 3.0.4 to 3.1.3 slows down (freezes) layout in wxScrolledWindow

Hi ONEEYEMAN.

I tried something similar to what hneubauer posted on May 18, but it didn't help. It looks like he has
created a new class that inherits from wxScrolledWindow and creates/manages his own scroll bars so
it would be hard to recreate what he has exactly.

Thanks.
by rsb
Wed Jul 08, 2020 3:29 pm
Forum: Platform Related Issues
Topic: MSW: Migration from 3.0.4 to 3.1.3 slows down (freezes) layout in wxScrolledWindow
Replies: 31
Views: 1402

Re: MSW: Migration from 3.0.4 to 3.1.3 slows down (freezes) layout in wxScrolledWindow

We have a similar problem using wxScrolledWindow. Scroll up and down, then move the dialog around and the dialog freezes for about 30-40 seconds. We build the application using wxWidgets version 3.1.0, Compiler MSVC 14 on Windows 10, Version 1909. We found that when running the application on Window...
by rsb
Mon May 18, 2020 2:13 pm
Forum: Platform Related Issues
Topic: X button in upper right corner of modal dialog
Replies: 8
Views: 465

Re: X button in upper right corner of modal dialog

From the diff, it looks like your just replacing ShowModal with Show but we really don't want to do this.

I didn't see anything on GitHub that helped. There were references to wxID_CLOSE but none of the cases referenced this issue
that I could find.

Thanks.
by rsb
Fri May 15, 2020 7:54 pm
Forum: Platform Related Issues
Topic: X button in upper right corner of modal dialog
Replies: 8
Views: 465

Re: X button in upper right corner of modal dialog

Not really sure how to determine the GTK+ version.

Tried this: rpm -qa | grep -i gtk

Came back with this: gtk2-2.24.32-4.el8.x86_64

-----

Yes, the X button in our Modeless dialogs work.
by rsb
Fri May 15, 2020 6:05 pm
Forum: Platform Related Issues
Topic: X button in upper right corner of modal dialog
Replies: 8
Views: 465

X button in upper right corner of modal dialog

Hello, I'm using wxWidgets version 3.1.0 on RHEL8 Linux. // Output of uname -a Linux Freeman 4.18.0-147.5.1.el8_1.x86_64 #1 SMP Tue Jan 14 15:50:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux After invoking a modal dialog, the X button in the upper right corner is visible but pressing it does nothing. W...
by rsb
Thu Feb 06, 2020 5:59 pm
Forum: Platform Related Issues
Topic: OpenGL Compile Errors
Replies: 3
Views: 366

Re: OpenGL Compile Errors

Hello, Yes the libraries were built on the virtual machine. wxWidgets was built: ../configure --with-gtk --without-gnomeprint --enable-debug make Also tried the --with-opengl argument but this did not make any difference. The samples work fine so I'm looking to see what is different between them and...