virtual void SetVirtualSizeHints( int minW, int minH)
which is how it's used in the code.
One error message I got (or was it an article I read) suggested I use FitInside instead, but when I tried that, it told me there was no FitInside(int, int). I reconfigured wxWindows to add --enable-compat28 and I am not getting the error any more, just the deprecation warning. I figure while I am working on the code if there are small things like this I can clean up I might try them, but this one is a dead end, at least in my state of ignorance.
I'm guessing that I need to find the wxWindow whose size I was trying to use, or make a fake one or something.
Here's the original code in my project that calls this:
https://github.com/HolyCityAudio/sooper ... ck_box.cpp
Line 92:
Code: Select all
int w,h;
GetTextExtent(_label_str, &w, &h);
SetVirtualSizeHints (6 + _boxsize + w, max(_boxsize, h));
SetVirtualSize (6 + _boxsize + w, max(_boxsize, h));
https://wx-users.wxwidgets.narkive.com/ ... d-in-2-9-1
https://docs.wxwidgets.org/3.0/classwx_ ... cb0aea5669
https://docs.wxwidgets.org/3.0/classwx_ ... f89ba2e38d