dbTalk Databases Forums  

VFP6: Mixing Modal and Nonmodal Forms

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP6: Mixing Modal and Nonmodal Forms in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP6: Mixing Modal and Nonmodal Forms - 07-26-2005 , 12:56 PM






This is related to my recent posts regarding copy, cut, and paste
on a toolbar editbox.

The reason that I went this route was because my efforts with
forms did not work. Maybe, I overlooked something.

In my app, the forms are all modal. In this one case, I wanted a
non-modal form. In the invoicing program, when a new client is
displayed, if the client has an invoicing note, it is to be displayed
in a separate form. The invoicing note should be ignorable. It
should be possible to select the next client without interacting with
the client note form.

To me, it seemed that if I made the client note form non-modal,
that would do it. Unfortunately, I was unable to make the non-modal
setting have an effect. The form acted modal. After some time trying
to get around this problem, I gave up on it and went to a toolbar,
which has the problem that I covered in my recent post.

How does one make a new form non-modal when the other forms are
modal? Or, what am I missing about non-modal forms?

Sincerely,

Gene Wirchenko


Reply With Quote
  #2  
Old   
jamnut
 
Posts: n/a

Default Re: VFP6: Mixing Modal and Nonmodal Forms - 08-06-2005 , 12:55 PM






To make a form non-modal you set the forms windowType property to 0
modeless.
You can do this in the property sheet or in code:

thisform.windowtype = 0

or from another object code or form as long as the scope of the
object's reference provides it.

myformname.windowtype = 0

other properties that affect the form in alwaysOnTop, alwaysOnBottom,
autoCenter. these can give the appearance of modal non-modal

i'm currious whay all your forms are modal? modal is usually for
dialogs of screen that require completion before other interaction is
allowed.


Gene Wirchenko wrote:
Quote:
This is related to my recent posts regarding copy, cut, and paste
on a toolbar editbox.

The reason that I went this route was because my efforts with
forms did not work. Maybe, I overlooked something.

In my app, the forms are all modal. In this one case, I wanted a
non-modal form. In the invoicing program, when a new client is
displayed, if the client has an invoicing note, it is to be displayed
in a separate form. The invoicing note should be ignorable. It
should be possible to select the next client without interacting with
the client note form.

To me, it seemed that if I made the client note form non-modal,
that would do it. Unfortunately, I was unable to make the non-modal
setting have an effect. The form acted modal. After some time trying
to get around this problem, I gave up on it and went to a toolbar,
which has the problem that I covered in my recent post.

How does one make a new form non-modal when the other forms are
modal? Or, what am I missing about non-modal forms?

Sincerely,

Gene Wirchenko


Reply With Quote
  #3  
Old   
jamnut
 
Posts: n/a

Default Re: VFP6: Mixing Modal and Nonmodal Forms - 08-06-2005 , 12:58 PM



To make a form non-modal you set the forms windowType property to 0
modeless.
You can do this in the property sheet or in code:

thisform.windowtype = 0

or from another object code or form as long as the scope of the
object's reference provides it.

myformname.windowtype = 0

other properties that affect forms are alwaysOnTop, alwaysOnBottom,
autoCenter. these can give the appearance of modal or non-modal

i'm currious whay all your forms are modal? modal is usually for
dialogs or screens that require completion before other interaction is
allowed.

reg
ron o.
headjamnut (AT) jamnut (DOT) net


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.