Search found 14 matches

by andrewc
Thu May 23, 2019 2:48 pm
Forum: C++ Development
Topic: Window layout question
Replies: 5
Views: 862

Re: Window layout question

Thanks doublemax, thanks T-Rex.
by andrewc
Thu May 23, 2019 8:47 am
Forum: C++ Development
Topic: Window layout question
Replies: 5
Views: 862

Re: Window layout question

OK, thanks. Pity, it would have looked great. I'm not keen on trying to split it, as I can imagine it would be a nightmare keeping the bits together in all situations.

Andrew
by andrewc
Thu May 23, 2019 7:01 am
Forum: C++ Development
Topic: Window layout question
Replies: 5
Views: 862

Window layout question

All, I currently have a main window which looks like this: p1.png I would like to add a logo in the top right, thus: p2.png The idea is to occupy both unused toolbar space and unused notebook space. I'm guessing it's not possible to do this with sizers. I have tried creating the logo window as a chi...
by andrewc
Mon Jul 16, 2018 8:43 am
Forum: C++ Development
Topic: wxGrid scrolling refresh problem with merged cells
Replies: 8
Views: 1757

Re: wxGrid scrolling refresh problem with merged cells

Returning wxGridCellAttr objects with zero / negative sizes for the covered cells did the trick. All works OK now.

Andrew
by andrewc
Sun Jul 15, 2018 7:14 am
Forum: C++ Development
Topic: wxGrid scrolling refresh problem with merged cells
Replies: 8
Views: 1757

Re: wxGrid scrolling refresh problem with merged cells

So, having gone and read the source code for wxGrid::SetCellSize , wxGrid::DrawGridCellArea and wxGridCellAttr::SetSize it would seem that this comment in the last of those three functions may hold the key: If this cell is larger (2,2) then this is the top left cell the other cells that will be cove...
by andrewc
Sun Jul 15, 2018 6:28 am
Forum: C++ Development
Topic: wxGrid scrolling refresh problem with merged cells
Replies: 8
Views: 1757

Re: wxGrid scrolling refresh problem with merged cells

Not sure which specific "two things" you are referring to there, but never mind. Thanks for your time.
by andrewc
Fri Jul 13, 2018 9:41 pm
Forum: C++ Development
Topic: wxGrid scrolling refresh problem with merged cells
Replies: 8
Views: 1757

Re: wxGrid scrolling refresh problem with merged cells

It's a redraw issue. Fixes itself if I minimize and maximize the window. Should have mentioned that, sorry. The point really is that it was fine but slow with my original method, which suggests there ought to be some way to make it work with the more efficient approach.

Andrew
by andrewc
Fri Jul 13, 2018 6:32 pm
Forum: C++ Development
Topic: wxGrid scrolling refresh problem with merged cells
Replies: 8
Views: 1757

Re: wxGrid scrolling refresh problem with merged cells

Hi doublemax Could you elaborate a bit, please? I know the cell size is part of wxGridCellAttr as I am setting it. How might it "get lost" between initial display—which is just fine—and scrolling, when other features such as the background colour and alignment survive just fine? The cell s...
by andrewc
Fri Jul 13, 2018 11:18 am
Forum: C++ Development
Topic: wxGrid scrolling refresh problem with merged cells
Replies: 8
Views: 1757

wxGrid scrolling refresh problem with merged cells

Hi all, I'm using wxWidgets 3.0.2 on Windows 7. I have a C++ application that has a potentially very large spreadsheet-style grid. I'm in the process of recoding the handling of attributes as I was having serious performance issues when the 18-column grid held several thousand rows—it was taking up ...
by andrewc
Fri Oct 17, 2014 8:56 am
Forum: C++ Development
Topic: "Save As" lowers document window
Replies: 3
Views: 1071

Re: "Save As" lowers document window

Thanks doublemax, bug report submitted
by andrewc
Thu Oct 16, 2014 4:07 pm
Forum: C++ Development
Topic: "Save As" lowers document window
Replies: 3
Views: 1071

Re: "Save As" lowers document window

Version 3.0.1, by the way.
by andrewc
Thu Oct 16, 2014 3:51 pm
Forum: C++ Development
Topic: "Save As" lowers document window
Replies: 3
Views: 1071

"Save As" lowers document window

I'm having a problem with my MDI wxWidgets application (under development in Visual Studio 2013 on Windows 7), which I have found to be simple to reproduce in the docview sample. Specifically, if you open two documents, say a.txt and b.txt, then "Save As..." b.txt to a different path, the ...
by andrewc
Sun Sep 14, 2014 7:35 pm
Forum: C++ Development
Topic: wxGraphicsContext::DisableOffset
Replies: 3
Views: 826

Re: wxGraphicsContext::DisableOffset

Hi doublemax, My code works with double coordinates. I probably didn't explain very well that I'd understood already what the problem was, but I really don't want wxGraphicsContext to attempt to automatically apply the half-pixel offsets when stroking a path. I expect to have full control over that ...
by andrewc
Sun Sep 14, 2014 5:50 pm
Forum: C++ Development
Topic: wxGraphicsContext::DisableOffset
Replies: 3
Views: 826

wxGraphicsContext::DisableOffset

Hello all, In my first ever wxWidgets project, I'm creating a standalone desktop application from a browser-based prototype. A lot of the work involves porting JavaScript code for drawing on an HTML Canvas to C++ code drawing on a wxGraphicsContext. Today I spent several hours trying to figure out w...