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: 27
Joined: Sat Oct 12, 2019 4:57 pm

program truncated on small screen

Post by paddle » Tue Mar 03, 2020 2:21 pm

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: 2478
Joined: Sun Jan 03, 2010 5:45 pm

Re: program truncated on small screen

Post by PB » Tue Mar 03, 2020 2:24 pm

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: 4264
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: program truncated on small screen

Post by ONEEYEMAN » Tue Mar 03, 2020 3:28 pm

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