Page 1 of 1

how to get maximized form?

Posted: Thu Aug 09, 2018 4:30 pm
by Jay
I tried to code on load Jade method like

var
loginForm : Form;

begin

create loginForm Transient;
loginForm.WindowState:=WindowsState.Maximized.
loginForm.ShowModal;

end


this is not perfect code, but I coded this way and it didn't work.
How can I maximize the windows as soon as the form is loaded.

Re: how to get maximized form?

Posted: Fri Aug 10, 2018 9:23 am
by Kevin
The initial window state can be pre-set in the painter when you're painting the form (via the properties dialog).

Alternatively, you could re-implement the Form::load to setup the form as required (which is invoked during show or showModal).