Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 1 Monat, 1 Woche
Letzter Beitrag:
vor 3 Wochen, 1 Tag
Beteiligte Autoren:
Fabrice Harari, Patrick Schwarz, patrick s, Yogi Yang

[WM 20] Changing Window Height by programming

Startbeitrag von Patrick Schwarz am 03.07.2017 23: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

Antworten:

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.

von Yogi Yang - am 04.07.2017 10:57
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

von Fabrice Harari - am 04.07.2017 11:39
Hi,

i tried it with the supercontrol. The Problem with a supercontrol or a internal window is that the ..usefulheight is not available in android. So I still facing the same problem, with no possible scrolling.

regards
Patrick

von patrick s - am 25.07.2017 13:08
Hi Patrick,

the ..usefullheight maybe, but the ..height is available, AFAIK, and it should give you the scrolling you are looking for.

You can of course also simply use a looper where each line contains a control.

Best regards

von Fabrice Harari - am 25.07.2017 18:40
With the normal ..height property it's not working.
And the problem with loopers is the multiselection they provide is completely buggy. So you select a row on a screen but the looper selects/deselects a complete different one. This why I started trying something different.

regards
Patrick

von Patrick Schwarz - am 25.07.2017 19:06
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.