how to get maximized form?

Forums for specific tips, techniques and example code
Jay
Posts: 25
Joined: Mon Jul 23, 2018 10:15 am

how to get maximized form?

Postby Jay » Thu Aug 09, 2018 4:30 pm

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.

Kevin
Posts: 29
Joined: Wed Oct 14, 2009 9:03 am
Location: Christchurch

Re: how to get maximized form?

Postby Kevin » Fri Aug 10, 2018 9:23 am

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).


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 16 guests