Hello,
I have a setting where the form can be maximized or normal windowstate at INIT.
The form is also resizable, and some controls are resized in the RESIZE() event of the form.
The resize event takes the form's width and height into account to resize the controls, but after changing the windowstate in the INIT() to maximized, the width and height properties of the form do not reflect the actual width and height, unless I change the Visible property to .T..
The code is as follows:
THIS.WindowState = 2
THIS.Visible = .T.
THIS.Resize()
But I usually don't want to change the form's visible property in the init. Is there are more elegant way to do this?
Christian Isberner
Software Consultant