Search found 135 matches

by rsb
Thu Jun 13, 2019 5:23 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 135

Re: Foreground color ignored using wxGraphicsContext

Yes, if I change the brush style to filled and skip the call to SetStipple, it does draw with the correct color.

If the bitmap overrides the color, why does it work using the wxClientDC.

I'll try to come up with a small program.

Thanks very much.
by rsb
Thu Jun 13, 2019 4:53 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 135

Re: Foreground color ignored using wxGraphicsContext

Yes, there is.

dc->SetPen(pen);
dc->SetBrush(brush);
by rsb
Thu Jun 13, 2019 4:49 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 135

Re: Foreground color ignored using wxGraphicsContext

Inside this routine, graphics__set_foreground_color(window_attribute_p,dc,window_attribute_p->active_color_index); The brush is set as follows: wxBrush brush = dc->GetBrush(); brush.SetColour( foregroundColour ); // Green brush.SetStyle( wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE ); brush.SetStipple( *pWX_bit...
by rsb
Thu Jun 13, 2019 3:42 pm
Forum: C++ Development
Topic: Foreground color ignored using wxGraphicsContext
Replies: 7
Views: 135

Foreground color ignored using wxGraphicsContext

Hello, We're trying to improve our drawing code using wxGraphicsContext. The problem is that when drawing filled objects using stippled patterns, the foreground color is ignored and comes out white. Using a wxClientDC object, the color is correct. Any idea what would cause this? Thanks very much. RS...
by rsb
Tue Mar 26, 2019 9:17 pm
Forum: C++ Development
Topic: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor
Replies: 7
Views: 213

Re: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor

I built the Grid sample application and it works the way you describe. Our wxPerl application is quite large so converting to C++ will take a long time. We would like to convert it but we don't have the time right now. I may just have to convert the check boxes to choice boxes with values of true an...
by rsb
Tue Mar 26, 2019 7:23 pm
Forum: C++ Development
Topic: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor
Replies: 7
Views: 213

Re: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor

Scenario 1: (Selected) Select the cell once -> I see a (bold) rectangle around the cell. I select it again and the checkbox moves slightly to the left. I select it a third time and the check is visible. Many times when I select somewhere else after the third click, the check disappears. Scenario 2: ...
by rsb
Tue Mar 26, 2019 6:36 pm
Forum: C++ Development
Topic: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor
Replies: 7
Views: 213

Re: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor

Thanks Doublemax.

I tried the EnableCellEditControl and EnableEditing methods for the grid but it made no difference.

Also, It doesn't matter where I click or how fast, I get the same result.

RSB
by rsb
Tue Mar 26, 2019 5:03 pm
Forum: C++ Development
Topic: Problem with wxPerl GridCellAttr Set to GridCellBoolEditor
Replies: 7
Views: 213

Problem with wxPerl GridCellAttr Set to GridCellBoolEditor

Hello, We have a wxPerl application that uses a grid and some of the fields are check boxes. When you click in the checkbox cell, sometimes it selects but most times It doesn't. I noticed another entry in this forum that described the same problem but I didn't see a solution. https://forums.wxwidget...
by rsb
Thu Jan 10, 2019 1:59 am
Forum: C++ Development
Topic: Page Setup dialog Switches to ISO_B3 from A0
Replies: 4
Views: 185

Re: Page Setup dialog Switches to ISO_B3 from A0

What do you mean by unmodified printing sample? The sample I'm using is directly from the wxWidgets archive. I didn't change
anything.
by rsb
Wed Jan 09, 2019 8:46 pm
Forum: C++ Development
Topic: Page Setup dialog Switches to ISO_B3 from A0
Replies: 4
Views: 185

Page Setup dialog Switches to ISO_B3 from A0

Hello, I invoked the Page Setup dialog from the Printer sample program and set the Paper Size to "A0", then OK'd the dialog. I then printed to our Adobe Acrobat Reader DC viewer and the page size was listed as 13.90 x 19.68 in. I then invoked the dialog a second time and the Paper Size was set to "I...
by rsb
Mon Jan 07, 2019 5:31 pm
Forum: wxCode
Topic: Black lines and text come out gray
Replies: 3
Views: 565

Re: Black lines and text come out gray

Looks like it was in our code after all. The ROP setting was different between our printer and our pdf.

Sorry for bringing this up.
by rsb
Mon Jan 07, 2019 5:04 pm
Forum: wxCode
Topic: Black lines and text come out gray
Replies: 3
Views: 565

Re: Black lines and text come out gray

I can't provide the full code, it would be too much. I did include the lines of code I'm using
to set the wxPdfDC in the original post.

The same code works correctly using the wxPrinterDC class. i.e. lines and text are black.
by rsb
Mon Jan 07, 2019 3:06 pm
Forum: wxCode
Topic: Black lines and text come out gray
Replies: 3
Views: 565

Black lines and text come out gray

Hello, When plotting using wxPDFDocument, we set the wxPen and wxBrush color to black as well as the text background color, but when we plot the color is a light gray. Is this by design or is there something I need to do to make sure the plot color is a true black? Thanks, Regards, Bob Bachman wxCol...
by rsb
Fri Nov 02, 2018 9:26 pm
Forum: wxCode
Topic: Problem Printing From Adobe
Replies: 1
Views: 411

Problem Printing From Adobe

Hello, We have a PDF file, attached, that was created from version 0.96 of wxPdfDocument using wxWidgets 3.1.0 on Windows 10. Compiler is Visual Studio VS14. When we try to print to an HP printer we get a message box with a message "Flattening". It times out after some time with a message that it ca...