Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 6 Monaten
Letzter Beitrag:
vor 6 Monaten
Beteiligte Autoren:
Fabrice Harari, Christine Wagner

[WD21/WD22] Zooming with maximized MDI windows

Startbeitrag von Christine Wagner am 17.07.2017 07:40

Our customer wants the option to zoom into our windows. As we have a lot of windows, I was very happy discovering the "..Zoom" property of the window. It works wonderful, as long as the windows are not maximized.

I've got two buttons (Zoom100 and Zoom140) and a global variable with the actual zoom. in the Init of the window I'm setting MyWindow..Zoom = gnCurZoom. In the button itself I'm setting the global variable and the zoom value of all open windows. If the form on the window is too high for the main window, I'm getting a scrollbar on the right, so I can look at the whole form.

If this window is maximized (which is possible in our application) and I'm zooming in to 140 %, I am NOT getting a scrollbar and the form values (Edit fields and static fields) continue below the visible part of the window.

My question now:
Is this behaviour fixed in WD 22?
Is there some way to get this missing scrollbar?

Thank you for your input.

Kind regards,


Hi Christine,

I would say that one way would be to prevent the windows from being maximized.
And to do that and still KEEP the maximized behavior, you would have to FAKE the maximize state.

I would think about trying to INTERCEPT the maximizing action (replace the standard maximize button by yours in the window model, by example) and in the code, instead of maximizing the window, just give it the size and position it would have had when maximized, while still keeping its internal status the same.

Now, I have just seen that you are talking about MDI windows, so that may not be possible, considering that MDI is an old an abandoned technology.

Best regards

von Fabrice Harari - am 17.07.2017 12:07
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.