Search found 11576 matches

by doublemax
Sun Jan 21, 2018 9:59 pm
Forum: C++ Development
Topic: Limiting resize for (scrolled) image display
Replies: 6
Views: 45

Re: Limiting resize for (scrolled) image display

You need to calculate and set a maximum size for the frame. Setting it for the scrolled window does not limit the size of the frame. Alternatively, if only the redraw issue is the problem, make sure that the paint event handler also draws something onto the area that's not covered by the bitmap. Fro...
by doublemax
Sun Jan 21, 2018 9:52 am
Forum: C++ Development
Topic: How to put in wxListCtrl item a wxPanel?
Replies: 4
Views: 37

Re: How to put in wxListCtrl item a wxPanel?

dkaip, can you explain what you want to achieve? If you only have a small number of panels, you could put them all in a vertical boxsizer.
by doublemax
Sat Jan 20, 2018 12:37 am
Forum: C++ Development
Topic: wxGrid - retrieve all cell combo box values [SOLVED]
Replies: 8
Views: 39

Re: wxGrid - retrieve all cell combo box values [SOLVED]

The actual controls of grid editors have a short lifetime. They are only created when you start editing a cell and destroyed immediately afterwards. For a wxGridCellChoiceEditor you can set the list with SetParameters(), but there is no way to read it. For the functionality you're describing, you'll...
by doublemax
Thu Jan 18, 2018 8:43 pm
Forum: C++ Development
Topic: Is this a potential bug in wxEventLoop
Replies: 3
Views: 766

Re: Is this a potential bug in wxEventLoop

If you're still using wx 2.8.x, please try again with wx 3.0.3 or the latest development version. There will be no fixes for 2.8.x.

If it also happens in 3.x, please provide a minimal compilable sample to reproduce the issue.
by doublemax
Tue Jan 16, 2018 10:51 pm
Forum: C++ Development
Topic: Collapsable wxGrid
Replies: 3
Views: 63

Re: Collapsable wxGrid

wxGrid doesn't support this and i can't think of an easy way to fake it. Look into wxDataViewCtrl.
by doublemax
Tue Jan 16, 2018 10:48 pm
Forum: C++ Development
Topic: Force wxImage::Rotate to produce white background [SOLVED]
Replies: 8
Views: 153

Re: Force wxImage::Rotate to produce white background [SOLVED]

I think the issue was what happens when you save the rotated image. In one case you will get the rotated image with the "new" parts transparent. But if you want the whole image to be opaque with a white background, you need the other method.
by doublemax
Tue Jan 16, 2018 8:18 pm
Forum: C++ Development
Topic: Force wxImage::Rotate to produce white background [SOLVED]
Replies: 8
Views: 153

Re: Force wxImage::Rotate to produce white background [SOLVED]

I don't think the interpolating parameter is relevant here. If the image is rotated, the target image is bigger than the original one, and the empty corners need to be filled with something. By default this is black and the mask color is the only way to change this.
by doublemax
Tue Jan 16, 2018 6:41 pm
Forum: C++ Development
Topic: How to catch a wxHtmlLinkEvent from wxHtmlHelpController? [SOLVED]
Replies: 11
Views: 190

Re: How to catch a wxHtmlLinkEvent from wxHtmlHelpController? [SOLVED]

I think the help window will only be created on demand, i suspect that "help->GetHelpWindow()" will return NULL at this point.

I think there really is no easy way to do this.
by doublemax
Tue Jan 16, 2018 5:28 pm
Forum: C++ Development
Topic: Force wxImage::Rotate to produce white background [SOLVED]
Replies: 8
Views: 153

Re: Force wxImage::Rotate to produce white background [SOLVED]

Use SetMaskColor( 255,255,255 ) before rotating and SetMask(false) before saving and you should get the correct result. Tested with this: ::wxInitAllImageHandlers(); const double halfC = M_PI / 180; wxImage img("d:\\_test.jpg", wxBITMAP_TYPE_JPEG ); img.SetMaskColour(255,255,255); wxImage ...
by doublemax
Tue Jan 16, 2018 6:49 am
Forum: C++ Development
Topic: set user data for ribbonbuttonbar event
Replies: 3
Views: 53

Re: set user data for ribbonbuttonbar event

The documentation for userData says: userData Optional data to be associated with the event table entry. wxWidgets will take ownership of this pointer, i.e. it will be destroyed when the event handler is disconnected or at the program termination. This pointer can be retrieved using wxEvent::GetEven...
by doublemax
Thu Jan 11, 2018 4:12 pm
Forum: C++ Development
Topic: while in wxwidgets
Replies: 2
Views: 77

Re: while in wxwidgets

The quick-and-dirty solution is to call ::wxYield() inside the while loop once in a while so that the event loop gets the opportunity to do its job and e.g. redraw controls. A better solution is to move the calculations into a worker thread (-> wxThread). But you're not allowed to make GUI updates f...
by doublemax
Tue Jan 09, 2018 6:29 am
Forum: C++ Development
Topic: wxFileConfig::DeleteGroup() Not Working
Replies: 2
Views: 62

Re: wxFileConfig::DeleteGroup() Not Working

I haven't tried the code, but i guess it should look like this:

Code: Select all

File->SetPath( "/Q/bjt/" );
result = File->DeleteGroup( "Textbook" );


Alternatively, try using an absolute path:

Code: Select all

result = File->DeleteGroup( "/Q/bjt/Textbook" );
by doublemax
Sun Jan 07, 2018 1:49 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error: wx/setup.h: No such file [SOLVED]
Replies: 6
Views: 30376

Re: fatal error: wx/setup.h: No such file [SOLVED]

Hello Im new in this but for me the solution was to replace the instruction #include "wx/setup.h" by this other #include "wx/msw/setup.h" in the platform.h file because I did install the 3.1.0 version of wxWidgets and the setup.h file need by the gcc compiler (MinGW) was in this...
by doublemax
Sat Jan 06, 2018 10:41 am
Forum: wxCode
Topic: wxPDFView folder/file not exists
Replies: 4
Views: 114

Re: wxPDFView folder/file not exists

Sorry, you're right. The last changes in wxPDFView were made 2 years ago, i guess pdfium changed its directory structure since. Try changing the include command so that it matches the new file location.
by doublemax
Fri Jan 05, 2018 11:35 pm
Forum: wxCode
Topic: wxPDFView folder/file not exists
Replies: 4
Views: 114

Re: wxPDFView folder/file not exists

fpdf_doc.h there is only in ./pdfium/public/ dir.
That's correct, the file will be included from there. Did you set all include paths correctly?

Go to advanced search