Maximizing the size of the form [message #1820708] |
Mon, 27 January 2020 13:01 |
Krzysztof Leja Messages: 55 Registered: April 2019 |
Member |
|
|
Hi,
Is it possible to maximize the form so that it occupies the full area of the application desktop?
For example, I found the following methods in the AbstractForm class, whose names suggest they may relate to what I'm looking for:
- setMaximized(true)
- setMaximizeEnabled(true)
I used them during form initialization, but without any visible effect in the appearance of the form. So what are they for?
Same question to similar methods:
- setMinimized(true)
- setMinimizeEnabled(true)
[Updated on: Mon, 27 January 2020 13:02] Report message to a moderator
|
|
|
Re: Maximizing the size of the form [message #1820739 is a reply to message #1820708] |
Tue, 28 January 2020 08:14 |
|
Hi Krzysztof
It seems these methods are relics from the time when Scout was a rich client application. Since Scout moved to the web, these methods are no longer supported. I will mark them as deprecated in Scout 10 and we will remove them with Scout 11.
What exactly is your use case? Is your Form a view or a dialog?
You could try to hide the navigation tree on the left, when your Form (displayHint=view) is activated. Call setNavigationVisible(false) on the Desktop instance.
You could also use the "bench mode" of the Desktop and set displayStyle=DISPLAY_STYLE_BENCH, which removes the header and the navigation part, but I'm not sure if that works when you switch the style dynamically.
Cheers,
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
Powered by
FUDForum. Page generated in 0.03343 seconds