program truncated on small screen

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
paddle
Knows some wx things
Knows some wx things
Posts: 43
Joined: Sat Oct 12, 2019 4:57 pm

program truncated on small screen

Post by paddle »

Hey guys!
I made a program with a wide main panel. When it display on a big screen it's ok. But if I open the program on a small screen, then the right side is just truncated, no scroll bar out of the boxe. And the program window cannot be resized bigger than the screen width (on win7).
I tried to add wxVSCROLL and wxHSCROLL to my panel. Now the scroll bars appear, but they do nothing.

I think I'm missing something here.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: program truncated on small screen

Post by PB »

You should look into using wxScrolled, see e.g. examples here
viewtopic.php?t=42732#p173553
viewtopic.php?f=19&t=44435#p183153
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: program truncated on small screen

Post by ONEEYEMAN »

Hi,
What is your wx version?
What OS are you testing it on?
What do you mean by "bigger" and "smaller" screen? Are you using Hi-Res monitor vs, standard one? Or you have somethign like regular one vs. 4-6 inch monitor in embedded platform.

Thank you.
Post Reply