Subject Re: Modal Form
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Fri, 13 Nov 2020 21:38:14 -0800
Newsgroups dbase.getting-started

On 11/13/2020 9:12 PM, Don wrote:
>
> Why Doesn't This Code Open a Modal Form?
>
> Local f
> f = New Form2()
> f.mdi = false
> f.readmodal()
>
>
> Class Form2 of Form                   //
> This.Width            = 25
> This.Height           = 25
> This.Text             = "Form2"
> This.MDI              = false
> This.OnOpen           = Class::FormOnOpen
> ? "Form2 "
>
> Function FormOnOpen
> ?
> ? "Form2 Open"
> *Form.WindowState        = 0
> Return
> EndClass

Are there any controls on the form? If not, there is nothing to get
focus, and therefore the form cannot open. There must be a control that
can gain focus, an entryfield, a pushbutton, anything ...

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm