If an "in top level" .scx form is set as Modeless at design-time, I've found it can be opened with DO FORM xxx, and then if you set its .Visible property to .F., you can change its WindowType to Modal and then call its Show() method to re-display it (if you just run the form and then call its Hide(), then try to make it Modal, you'll get an error message saying something like a "visible form" window type can't be changed--even though Hide(), one would expect, would set the form's .Visible to .F..)

I haven't tried starting a form as Modal and then making it Modeless; obviously you could only do that from a mechanism inside the form, which might be do-able.

I seem to recall that an "in top level" .vcx form's WindowType property can be set via a parm passed to Init() when you run it without a problem.

Ken Dibble
www.stic-cil.org

I have a set of forms that sometimes I want to be modal (when the form passing parameters to and from other forms) and other times I want to be modeless.

Anyone got a solution without duplicating the for in Modal and modeless copies?

I've tried the Form.Show(1) or form.show(2) in the init() of the form but it totally screws up the ReadEvents of VFP and crashes the system

Dave




--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to