Search found 2 matches

by R_Irudezu
Tue Sep 18, 2018 7:55 pm
Forum: C++ Development
Topic: How to Stretch Bitmap into Parent Panel (wxWidgets Custom)
Replies: 2
Views: 889

Re: How to Stretch Bitmap into Parent Panel (wxWidgets Custom)

I think there are several issues with your code, the main is that you are probably not redrawing the panel when needed (i.e., in its paint event handler) and then lose the bitmap. E.g., here is a simple unoptimized example of implementing a panel that has a bitmap filling it (without maintaining th...
by R_Irudezu
Mon Sep 17, 2018 4:07 pm
Forum: C++ Development
Topic: How to Stretch Bitmap into Parent Panel (wxWidgets Custom)
Replies: 2
Views: 889

How to Stretch Bitmap into Parent Panel (wxWidgets Custom)

Hi, I'm kinda new here, please warn me if i do something wrong. I set a wxButton and it loads bitmap,png formats to Panel at right. But image is overfitting. I want to stretc image to Panel when it's loaded by button. [img] qq.PNG [/img] Here is button's function, just in case: void rrFrame::testCli...