Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MODAL screen checkbox 1

Status
Not open for further replies.

JPGalea

Programmer
Apr 19, 2009
20
0
0
US
Is there a way to make the MODAL SCREEN checkbox in the PROGRAM->GENERATE Screen->More >> option the default? This box is normally unchecked.

Thanks,
Joe
 
Yes, but not as long as you're "generating" screen code individually.

Put the screen in a project, and set the "screen set" properties there. The project is where VFP remembers your build options.
 
I forgot. You can also add:

#READCLAUSES MODAL

to the setup code of your screen. That will subvert all settings in any project and make the screen generator add MODAL to your READ.

Search the help file for screen generator directives for more information.

I do not recommend this approach, but hey, people did it.

Dan
 
If you have screens that you always want to be modal you could add .T. MODAL in the "On Screen Exit (Valid)" code section of each screen(I'm using FPW 2.6). Then you don't have to click the modal button when you generate the screen. Actually, if you do click the modal button with this code in place, the screen will error out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top