|
| [WM 20] Changing Window Height by programming |
| Iniciado por guest, 04,jul. 2017 01:17 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 04,julio 2017 - 01:17 |
Hey Guys,
im facing some problems changing the height of my window in my app. I have a window where I create controls in number of changing data so I don't have a static height i need to show all controls. Now I would like to adapt the window height to this, so it will scroll when it's too big for the screen. My simple idea was setting it with just Win_Test..Height = value When I look at this value it even changes during debugging, but the Window still has the height I set in the Description Wizard of the Window. And its an maximized Window.
best regards Patrick |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,julio 2017 - 12:57 |
When you maximize a window its height is controlled by Windows itself you cannot change that.
You can change height and width of windows that are not maximized. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,julio 2017 - 13:39 |
Hi Patrick
to complete the previous answer, you can change the status of your window to non maximized with the Restore(WIN_your window) instruction, THEN change its size...
HOWEVER, what you are trying to achieve is generally done by putting all the controls inside a supercontrol. You then can change the size fo the supercontrol if needed and it WILL do the scrolling, without changing the window itself.
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|